99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代寫COMP 315、代做Java編程設計
代寫COMP 315、代做Java編程設計

時間:2025-03-18  來源:合肥網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

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

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          艳妇臀荡乳欲伦亚洲一区| 久久综合一区| 亚洲国产影院| 国产精品久久久久久久电影| 久久在线免费| 亚洲欧美999| 亚洲精品影院在线观看| 国产日韩精品一区二区三区在线| 欧美日本一道本| 久久综合九色九九| 亚洲欧美日韩精品久久奇米色影视 | 午夜精品福利在线观看| 亚洲电影视频在线| 国产中文一区二区| 国产精品永久免费视频| 欧美日韩国产精品一区二区亚洲 | 欧美在线观看网站| 亚洲婷婷国产精品电影人久久| 亚洲国产精品va在线观看黑人| 国产一区二区三区在线观看精品| 欧美性猛交xxxx乱大交蜜桃| 欧美日韩dvd在线观看| 欧美激情一区在线观看| 欧美成人一二三| 裸体丰满少妇做受久久99精品| 久久精品人人| 久久香蕉国产线看观看网| 久久久久久91香蕉国产| 久久精品国产99| 久久久成人网| 久久综合色天天久久综合图片| 久久久久久久综合狠狠综合| 久久久精品国产99久久精品芒果| 久久九九热re6这里有精品| 久久精品噜噜噜成人av农村| 久久久www| 蜜桃久久精品乱码一区二区| 欧美高清自拍一区| 欧美日韩国产区| 欧美午夜在线一二页| 国产精品毛片a∨一区二区三区| 国产精品乱码一区二三区小蝌蚪| 欧美小视频在线观看| 国产欧美视频一区二区| 极品裸体白嫩激情啪啪国产精品| 怡红院精品视频| 亚洲精品久久嫩草网站秘色| 亚洲一区二区在线看| 欧美尤物一区| 女主播福利一区| 欧美天堂亚洲电影院在线观看 | 亚洲在线网站| 久久精品国产亚洲一区二区三区| 女女同性精品视频| 欧美视频一区在线观看| 国产日韩综合一区二区性色av| 在线精品在线| 在线一区二区视频| 久久精品国产第一区二区三区最新章节| 久久久久久噜噜噜久久久精品 | 99riav国产精品| 久久av二区| 欧美日韩一二三四五区| 激情欧美日韩| 一本色道久久88综合亚洲精品ⅰ| 久久精品国产成人| 国产精品高潮粉嫩av| 136国产福利精品导航网址应用| 夜夜夜精品看看| 麻豆精品网站| 国产在线不卡视频| 宅男噜噜噜66一区二区| 欧美成人精品在线观看| 国产日韩精品在线播放| 日韩视频在线一区| 免费欧美视频| 精品福利免费观看| 性8sex亚洲区入口| 欧美日韩精品欧美日韩精品一| 亚洲盗摄视频| 久久久久亚洲综合| 国产精品午夜在线| 99热这里只有精品8| 美女爽到呻吟久久久久| 国产综合精品一区| 午夜亚洲福利| 国产精品视频免费在线观看| 正在播放亚洲一区| 欧美色一级片| 亚洲视频你懂的| 欧美视频一区二区在线观看 | 亚洲人体影院| 欧美国产日本| 亚洲精品视频在线观看免费| 欧美www在线| 日韩午夜在线电影| 欧美精品在线一区| 亚洲精品免费看| 欧美日韩一区视频| 亚洲自拍偷拍色片视频| 国产精品欧美日韩| 欧美一区二区黄色| 国产在线视频欧美一区二区三区| 久久精品一区二区三区中文字幕| 国内精品久久国产| 久久久久免费| 亚洲精品美女久久久久| 欧美精品在线免费观看| 亚洲天堂成人在线观看| 国产精品视频区| 欧美在线影院| 亚洲国产欧美另类丝袜| 欧美日韩国产综合一区二区| 亚洲欧美国内爽妇网| 国内成+人亚洲+欧美+综合在线| 久久免费的精品国产v∧| 亚洲国产日韩在线| 欧美天堂在线观看| 久久精品男女| 99国产精品久久久久久久成人热 | 国产精品qvod| 久久黄色级2电影| 亚洲国产一区在线| 国产精品裸体一区二区三区| 久久精品综合网| 日韩特黄影片| 国精品一区二区| 欧美日韩免费观看一区 | 狠狠狠色丁香婷婷综合激情| 欧美成人一区二区三区在线观看| 中文在线资源观看网站视频免费不卡| 国产精品亚洲美女av网站| 蜜臀久久久99精品久久久久久| 一区二区三区成人精品| 国模吧视频一区| 国产精品国产三级国产aⅴ浪潮 | 欧美成人午夜激情在线| 亚洲伊人伊色伊影伊综合网| 亚洲第一精品久久忘忧草社区| 欧美体内she精视频| 久久亚裔精品欧美| 午夜激情亚洲| 亚洲天堂第二页| 亚洲精品一区二区网址| 国色天香一区二区| 欧美视频不卡| 欧美日韩视频在线一区二区| 麻豆精品精品国产自在97香蕉| 亚洲欧美不卡| 中文有码久久| 亚洲日本中文字幕免费在线不卡| 国产最新精品精品你懂的| 国产精品第十页| 欧美三日本三级少妇三2023 | 欧美人体xx| 欧美黄色aa电影| 免费黄网站欧美| 六月婷婷久久| 裸体歌舞表演一区二区| 久久成人人人人精品欧| 亚洲欧美激情诱惑| 亚洲综合精品| 亚洲免费影院| 午夜精品久久久久久久99樱桃| 亚洲影视中文字幕| 亚洲少妇在线| 午夜精品视频| 欧美在线一区二区| 久久久久成人网| 另类亚洲自拍| 欧美金8天国| 欧美人成免费网站| 欧美性大战xxxxx久久久| 国产精品大全| 国产日韩欧美在线视频观看| 国内精品美女在线观看| 伊人久久大香线蕉综合热线 | 欧美大片一区二区三区| 欧美顶级大胆免费视频| 欧美区在线观看| 国产精品久久久久三级| 国产亚洲亚洲| 亚洲电影免费在线| 亚洲黑丝在线| 亚洲一区不卡| 久久久精品一品道一区| 男女av一区三区二区色多| 欧美日韩国产页| 国产日韩精品电影| 狠狠久久婷婷| 夜夜精品视频| 久久精品电影| 欧美日韩第一区| 国产精一区二区三区| 亚洲第一二三四五区| 亚洲视频香蕉人妖| 久久精品国产一区二区电影| 欧美国产一区二区在线观看 | 久久久久久一区| 欧美午夜性色大片在线观看|