加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

代寫COMP 315、代做Java編程設(shè)計
代寫COMP 315、代做Java編程設(shè)計

時間:2025-03-18  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯



Assignment 1: Javascript
COMP 315: Cloud Computing for E-Commerce
February 2025
1 Introduction
A common task when backend programming is data cleaning, which is the process of taking an initial data set
that may contain erroneous or incomplete data, and removing or fixing those elements. In this assignment, you
will be tested on your knowledge of JavaScript by implementing a set of functions that perform data cleaning
operations on a dataset.
2 Objectives
By the end of this assignment, you will:
• Gain proficiency in using JavaScript for data manipulation.
• Be able to implement various data cleaning procedures, and understand the significance of them.
• Have developed problem-solving skills through practical application.
3 Initial setup
On the canvas page for this assignment, there is a template file called Data P rocessing.js. Upload this template
file to Codegrade. Note that the function signatures and module export statements have been prepared for you.
Codegrade hosts a series of unit tests that will auto mark your code, and will present you with your final mark.
This allows for immediate feedback and removes any potential bias in marking. You have an unlimited number
of submissions to Codegrade. For this assignment you cannot import any additional libraries, as only the File
System (FS) library is allowed. The data you will be cleaning can be seen in Table 1.
Data name Note
id This is a unique integer identifier for each item.
name Each product has a name, which for this data set will just be the type of product followed
by a unique identifier integer.
price This is a real value representing the cost of the product.
category Each product has a general category such as Clothing or Electronics, and is saved as a
string.
type Each product’s type is a string that represents what sort of item it is.
quantity This is an integer value that shows how many of this item is currently in stock.
rating This is a real value that is a multiple of 0.5, starting from 0 and being capped at 5. This
value represents the number of stars users rate the item.
image link This is the link to the product in the database, and is saved in the format of “[cate gory]/[type]/[name].jpg”. Name is all in lowercase with the spaces replaced with under scores.
Table 1: The attributes that are stored for each product
1
Data name Note
category Each product has a general category such as Clothing or Electronics, and is saved as a
string.
type Each product’s type is a string that represents what sort of item it is.
min price This number represents the minimum price for this type of product.
max price This number represents the maximum price for this type of product.
Table 2: The attributes that are stored for pricing each type of product
4 Data cleaning
Add the following functionality to each of the functions. Do not modify the function signature or return
statement. The f ile name variable is the string that corresponds to a JSON file name without the ‘.json’
extension. For example if the file is called test.json then f ile name would have test stored. The entries
variable is an array of JSON objects corresponding to products. Each JSON object has the attributes listed in
Table 1. The products prices variable is an array of JSON objects corresponding to the minimum and maximum
price for each type of product. Each JSON object has the attributes listed in Table 2.
4.1 load JSON
This function should take the f ile name variable and load the corresponding JSON file. Note that the ‘.json’
file extension should be added. If the file cannot be found then an exception should be thrown that says
”‘[file name].json’ cannot be found”, where [file name] is replaced with the actual file name. The input text
should be converted to an array of JSON objects. If this process cannot be done, then it should throw the error
”‘[file name].json’ is not a valid JSON file” where again [file name] is replaced with the actual file name.
4.2 clean name
This function should iterate through each of the products, and replace null name values with the correct name.
If the name value is ‘null’ then the image link variable should be checked. If image link is not ‘null’ then
the name should be extracted from that. It should replace the underscores with spaces, and each word should
be capitalised. If image link is ‘null’ then the name should be taken from the ‘type’ variable. Each name is
unique, and is the type value with a unique integer identifier appended to it. This identifier corresponds to the
number of that type of product that have occurred up to that point. For example if the product type is ”Belt”,
and it is the third ”Belt” in the product list then it’s name should be ”Belt 3”.
4.3 clean price
This function takes in the entries variable, as well as the product prices variable. The price values should
always be non-negative number, and should first be changed to positive. The corresponding min price and
max price for this type of product should be found from product prices. If the price for the product is less
than the min price value for that type of product, then it should be set as the min price value. For example
if the price of Shoe4 is 1, and the min price value for Shoe is 3, then the price for Shoe4 should be set to 3. If
the price for the product is more than the max price value for that type of product, then it should be set as
the max price value.
4.4 clean category
This function should check if the category is ‘null’, then it should use the type value to fill in the missing data.
It should find other entries with the same type value, and then use this to fill in the corresponding category
value.
4.5 clean type
This function should check if the type is ‘null’, then it should check the name value. If the name is not ‘null’
then it should remove the unique number and use that value. If the name is ‘null’ then it should derive the
name from the image link.
2
4.6 clean quantity
The quantity of a product must be a non-negative value, so if the value is negative then it should be set to
positive. If the value is not an integer, then it should be rounded to the nearest integer using standard ‘rounding
half up’ rounding.
4.7 clean rating
If the rating for a product is set to ‘null’, then it should be set to 0. The rating of a product is given as a star
value between 0 and 5 stars. It is possible to give a product half a star, therefore the possible values are: 0, 0.5,
1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5. If a value does not correspond to one of these, then it should be rounded to the
nearest possible value.
4.8 clean image link
This function populates ‘null’ image link values using the other variables for the JSON object. This should be
in the format of “[category]/[type]/[name].jpg”. The category and type values are used as they are, however
the name value should all be in lowercase with spaces replaced with underscores. The ‘.jpg’ text should be
appended to the end.
5 Marking
The marking will be carried out automatically using the CodeGrade marking platform. A series of unit tests
will be ran, and the mark will correspond with how many of those unit tests were successfully executed. Your
work will be submitted to an automatic plagiarism/collusion detection system, and those exceeding a threshold

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

掃一掃在手機打開當(dāng)前頁
  • 上一篇:代做PROG2005、代寫C/C++,Python程序
  • 下一篇:代寫COP3503、代做Java程序設(shè)計
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)/客戶要求/設(shè)計優(yōu)化
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計優(yōu)化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發(fā)動機性能
    挖掘機濾芯提升發(fā)動機性能
    海信羅馬假日洗衣機亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    竹菊久久久久久久| 亚洲伦伦在线| 香蕉国产精品| 日韩av网址大全| 久久精品日产第一区二区| 国产美女一区| 欧美调教网站| 亚洲福利网站| 国产精品久久久久久久免费软件| 男人天堂欧美日韩| 婷婷激情久久| 一本一道久久a久久| 日本vs亚洲vs韩国一区三区二区| 蜜桃精品视频在线| 1024精品久久久久久久久| av不卡一区| 亚洲区小说区图片区qvod| 美女免费视频一区| 日韩欧美自拍| 蜜臀a∨国产成人精品| 亚洲精品成人| 久久久久久久久丰满| 免费看日产一区二区三区| 国产一区二区三区免费在线| 国产欧美一级| 日韩毛片在线| 超碰一区二区| 成人影院在线| 羞羞答答国产精品www一本| 激情欧美亚洲| 99精品视频在线| 青青久久av| 凹凸av导航大全精品| 午夜久久av| 久久久91麻豆精品国产一区| 国产探花在线精品| 99精品女人在线观看免费视频| 久久精品国产亚洲高清剧情介绍| 欧美日韩视频免费观看| 久久久男人天堂| 97精品国产福利一区二区三区| 国产美女精品| 亚洲一区激情| 亚洲男人影院| 蜜桃av综合| 免费观看久久久4p| 蜜臀av亚洲一区中文字幕| 视频一区视频二区在线观看| 老牛影视一区二区三区| 美女国产一区| 欧美中文日韩| 三级在线观看一区二区| 免费成人你懂的| 免费成人性网站| а√在线中文在线新版| 超碰国产一区| 欧美aa在线| 亚洲国产综合在线观看| 欧美成人一二区| 麻豆成人av在线| 国内揄拍国内精品久久| 欧美精品99| 日产国产高清一区二区三区| 一区二区在线视频观看| 老牛国内精品亚洲成av人片| 91精品啪在线观看国产18| 国产一区二区中文| 国产一区导航| 天堂av在线| 99精品国产福利在线观看免费 | 激情文学一区| 老司机一区二区三区| 国产精品国内免费一区二区三区| 免费毛片b在线观看| 国产精品综合色区在线观看| 国语精品视频| 亚洲精品观看| 成人av二区| 两个人看的在线视频www| 亚洲成人1区| 999久久久国产999久久久| 亚洲五码在线| 午夜av一区| 亚洲欧洲美洲av| 免费亚洲婷婷| 日韩av午夜在线观看| 99精品电影| 蜜臀va亚洲va欧美va天堂| 日韩三级成人| 西瓜成人精品人成网站| 999国产精品999久久久久久| 99亚洲一区二区| 亚洲www啪成人一区二区| 国内久久视频| 97久久综合区小说区图片区| 亚洲精品极品少妇16p| 成人av免费电影网站| 麻豆视频一区二区| 麻豆国产精品| 日韩午夜在线| 精品国模一区二区三区| 国产专区精品| 久久一本综合| 极品av在线| 你懂的亚洲视频| 久久久国产精品一区二区中文| av成人激情| 美女在线视频一区| 一区二区在线视频观看| 久久国产成人| 青青草精品视频| 国产乱人伦精品一区| 石原莉奈在线亚洲二区| 亚洲精品国产日韩| 少妇精品导航| 日韩大片在线播放| 日韩二区三区在线观看| 狠狠88综合久久久久综合网| 不卡亚洲精品| 午夜久久av| 国产精品成久久久久| 亚洲精品日韩久久| 99久久综合| 偷拍中文亚洲欧美动漫| 亚洲69av| 国产精品毛片一区二区三区| 美腿丝袜在线亚洲一区| 精品国产精品国产偷麻豆| 久久青草伊人| 国产情侣一区在线| av女在线播放| 亚洲区小说区| 色88久久久久高潮综合影院| 欧美激情日韩| 在线观看国产精品入口| 一区二区三区四区五区精品视频 | 日韩中文在线电影| 亚洲小说图片视频| 在线亚洲观看| 最新亚洲国产| 宅男噜噜噜66一区二区 | 激情视频网站在线播放色| 日韩成人一级| 极品在线视频| 99精品国产一区二区三区2021| 97人人精品| 一区二区三区免费在线看| 日韩欧美三级| 精品成av人一区二区三区| 蜜臀国产一区| 国产精东传媒成人av电影| 深夜视频一区二区| 久久久精品性| 亚久久调教视频| 99成人在线| 国产一区二区三区亚洲综合| 日韩中文字幕av电影| 精品视频一二| 欧美中文字幕精在线不卡| 加勒比色老久久爱综合网| 日日夜夜综合| 欧美精品一卡| 国产欧美日韩视频在线| 日产午夜精品一线二线三线| 综合久久成人| 欧美视频免费看| 激情欧美亚洲| 国产精品一在线观看| 国产伦理精品| 久久久亚洲一区| 日本欧美一区二区三区乱码| 国产农村妇女精品一二区| 日本成人精品| 国产成人免费精品| 中文一区二区| 精品成人18| 老司机精品视频一区二区三区| 久久亚洲不卡| 97se亚洲| 久久久久久毛片免费看| 日韩综合在线| 亚洲一级高清| 日韩电影在线免费观看| 欧美美女被草| 国产精品女主播一区二区三区| 日韩激情啪啪| 美女视频黄免费的久久| 免费成人美女在线观看.| 九九热播视频在线精品6| 国产精品视频一区二区三区| 亚洲国产成人二区| 天堂美国久久| 7777精品| 国产精品久久久久久av公交车| 国产一区二区主播在线| 在线视频精品| 天天躁日日躁狠狠躁欧美| 亚洲欧美成人vr| 亚洲国产99| 国产精品久久久久蜜臀|