国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產(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)信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強度疲勞振動
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務(wù)平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網(wǎng)頁版入口 破天一劍 目錄網(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在线免费观看
    日韩在线综合网| 懂色av粉嫩av蜜臀av| 久久综合久久久| 久久久精品久久久久| 国产精品成人一区二区三区| 一区二区在线不卡| 日韩偷拍一区二区| 国产美女精品久久久| 久久精品国产sm调教网站演员 | 久久亚洲精品视频| 亚洲精蜜桃久在线| 奇米精品一区二区三区| 精品视频一区二区| 欧美久久久久久久久久久久久久| 国产精品入口日韩视频大尺度| 日韩人妻精品一区二区三区| 欧美精品在线第一页| 亚洲一区免费网站| 久久久女人电视剧免费播放下载| 国产精品电影网站| 韩国一区二区av| 久久久999成人| 日韩精品视频一区二区在线观看| 国产成人极品视频| 五月婷婷一区| 久久久欧美精品| 亚洲国产精品久久久久婷蜜芽| 97精品在线观看| 午夜啪啪福利视频| 国产厕所精品在线观看| 日韩免费av片在线观看| 日韩天堂在线视频| 精品视频无码一区二区三区| 欧美xxxx18国产| 99中文视频在线| 色一情一乱一伦一区二区三区丨| 久久99热只有频精品91密拍| 欧美在线中文字幕| 国产精品美女久久久久久免费| 免费看欧美一级片| 欧美片一区二区三区| 成人免费在线小视频| 亚洲精品乱码久久久久久蜜桃91| 久久久www免费人成黑人精品| 日本福利视频网站| 国产精品免费入口| 国产精品尤物福利片在线观看| 亚洲va久久久噜噜噜久久天堂| 久久久久久一区| 国模无码视频一区二区三区| 亚洲一二三区精品| 久久久久亚洲精品成人网小说| 欧美 日韩 激情| 伊人久久大香线蕉午夜av| 国产成人亚洲综合无码| 欧美精品一区二区三区四区五区| 国产精品丝袜视频| 国产精品一区二区三区免费视频| 午夜精品美女自拍福到在线| 国产精品情侣自拍| 91高清免费在线观看| 欧美精品一区在线发布| 一本一本a久久| 久久久精品日本| 成人h视频在线| 欧美在线视频网| 一区不卡字幕| 久久久91精品| 久久久视频精品| 国产美女被下药99| 欧美日韩精品综合| 亚洲一区三区在线观看| 久久久av免费| 国产精华一区二区三区| 国内精品400部情侣激情| 五月天在线免费视频| 国产精品久久久久久久久久免费 | 亚洲激情一区二区三区| 国产精品视频99| 91国产高清在线| 国产区精品在线观看| 日本视频精品一区| 一本色道久久99精品综合| 国产精品区免费视频| 久久久午夜视频| 国产日韩一区二区三区| 欧美在线日韩在线| 欧美一区二区三区四区在线观看地址| 国产精品免费观看在线| 国产白丝袜美女久久久久| 成人亚洲综合色就1024| 欧美日韩在线播放一区二区| 欧美一区二区三区四区在线 | 日韩中文字幕在线观看| 91精品国产亚洲| 国产女人18毛片| 狠狠爱一区二区三区| 日本久久久久久久久| 亚洲制服中文| 精品国产一区二区三区在线| 久久久精品久久久久| 国产不卡在线观看| 91精品天堂| 风间由美久久久| 国产在线视频欧美| 欧美日韩精品免费观看| 日韩欧美激情一区二区| 中文字幕精品一区日韩| 国产精品激情自拍| 国产精品三级美女白浆呻吟| 国产成人亚洲欧美| 国产激情999| 国产精品91在线| 不卡一卡2卡3卡4卡精品在| 国产欧美综合一区| 国产偷人视频免费| 国内一区在线| 激情五月婷婷六月| 欧美中文字幕在线播放| 欧洲一区二区在线| 日韩视频第二页| 日本一级淫片演员| 正在播放国产精品| 国产aⅴ精品一区二区三区黄| 国产精品日韩欧美一区二区| 视频直播国产精品| 视频在线一区二区| 精品国产一区二区三区久久久 | 懂色av粉嫩av蜜臀av| 日韩在线xxx| 日本一区二区三区视频免费看| 午夜在线视频免费观看| 午夜一区二区三区| 日韩av影视| 日本不卡久久| 欧美一区二区在线视频观看| 欧美高清一区二区| 国产日韩欧美另类| 国产精品一区二区久久国产| 风间由美一区二区三区| 91精品久久久久久久久久久久久 | 日韩一区视频在线| 久久久久久久久网| 国产精品视频大全| 美女扒开尿口让男人操亚洲视频网站| 九九热精品视频国产| 亚洲最大成人在线| 午夜精品久久久久久久男人的天堂 | 欧美视频第一区| 久久久国产精品视频| 国产又粗又猛又爽又黄的网站| 欧美极品在线播放| 精品网站在线看| 亚洲一卡二卡三卡| 国产精品免费一区二区三区在线观看 | 国产精品久久久久久久一区探花| 黄色国产小视频| 久久国产日韩欧美| 久久精品国产96久久久香蕉| 另类色图亚洲色图| 中文字幕一区二区三区四区五区人| 亚洲精品久久久久久一区二区| 日韩.欧美.亚洲| 欧美精品一区二区三区免费播放| 麻豆一区区三区四区产品精品蜜桃| 国产欧美亚洲精品| 久久网站免费视频| 日韩中文在线视频| 久久91亚洲精品中文字幕| 亚洲国产精品一区在线观看不卡| 日本精品二区| 国产日韩精品一区二区| 国产盗摄视频在线观看| 久久夜色精品亚洲噜噜国产mv| 亚洲中文字幕无码中文字| 日av在线播放中文不卡| 国产三级中文字幕| 国产不卡在线观看| 欧美精品做受xxx性少妇| 欧美一级黄色影院| 国产日韩欧美大片| 久久精品aaaaaa毛片| 国产精品劲爆视频| 五月天综合网| 国产网站免费在线观看| 国产成年人在线观看| 欧美日韩国产va另类| 欧美又大粗又爽又黄大片视频| 国产精品一区=区| 久久国内精品一国内精品| 亚洲欧洲日韩精品| 美乳视频一区二区| 国产第一页视频| 久久久久成人精品| 欧美亚洲午夜视频在线观看| 91精品久久久久久久久青青| 国产精品久久久久久久久久尿| 亚洲一区三区在线观看| 欧美第一黄网| 久久久女女女女999久久 |