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爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                自拍偷拍国产亚洲| 国产精品国产馆在线真实露脸| 激情综合色综合久久| 九九久久精品视频| 国产一区二区中文字幕| 一道本成人在线| 2024国产精品| 亚洲精品欧美专区| 日本欧美肥老太交大片| 成人深夜视频在线观看| 欧美日韩国产系列| 中文一区在线播放| 青青草国产成人99久久| eeuss鲁片一区二区三区在线观看| 亚洲制服丝袜一区| 国产成a人亚洲精品| 欧美日本在线观看| 亚洲在线成人精品| 成人网页在线观看| 国产日韩综合av| 国内一区二区在线| 欧美成人精品高清在线播放| 亚洲大片精品永久免费| 欧美亚洲动漫精品| 亚洲欧美另类小说| 日本福利一区二区| 91精品免费在线观看| 洋洋成人永久网站入口| 色婷婷av一区| 免费观看91视频大全| 91精品国产欧美一区二区成人 | 亚洲综合色视频| 久久久久久久久久久久久夜| 91免费国产在线观看| 亚洲高清久久久| 中文字幕免费在线观看视频一区| 欧美性极品少妇| 国产99久久久国产精品潘金| 五月激情六月综合| 亚洲人成在线播放网站岛国| 精品福利一区二区三区免费视频| 色香蕉久久蜜桃| 国产成人av一区二区三区在线 | 国产精品色哟哟| 日韩欧美中文字幕一区| 欧美性受xxxx| 色先锋资源久久综合| 97精品久久久午夜一区二区三区| 国产九九视频一区二区三区| 久久精品99国产精品| 日本女人一区二区三区| 日本午夜精品视频在线观看 | 国产91精品免费| 美腿丝袜一区二区三区| 美女精品一区二区| 免费美女久久99| 免费人成网站在线观看欧美高清| 欧美aⅴ一区二区三区视频| 日韩电影在线免费观看| 青草国产精品久久久久久| 亚洲精品乱码久久久久久| 亚洲精品国产成人久久av盗摄| 亚洲女子a中天字幕| 亚洲电影你懂得| 天天综合网天天综合色| 同产精品九九九| 秋霞午夜鲁丝一区二区老狼| 久久国产夜色精品鲁鲁99| 精品亚洲成a人| 国产成人精品免费视频网站| 成人午夜精品在线| 欧美综合视频在线观看| 欧美丰满美乳xxx高潮www| 日韩欧美国产一区在线观看| 久久精品一区二区三区av| 国产精品黄色在线观看| 一区二区国产视频| 美女国产一区二区三区| 国产成人高清视频| 色婷婷激情综合| 日韩欧美一区二区视频| 国产精品久久久久久户外露出| 一区二区在线观看不卡| 久久国产精品99精品国产 | 成人性生交大片免费看中文网站| 成人不卡免费av| 欧美日韩高清不卡| 久久蜜臀精品av| 亚洲精品五月天| 青青草伊人久久| 99热国产精品| 精品久久久久av影院| 自拍偷拍国产亚洲| 日本aⅴ免费视频一区二区三区| 国产mv日韩mv欧美| 欧美美女黄视频| 国产精品高潮呻吟| 国产精品久久久久久久久快鸭 | 亚洲精品少妇30p| 日本不卡的三区四区五区| 97久久精品人人做人人爽50路| 欧美一区欧美二区| 亚洲国产精品v| 九九视频精品免费| 欧美日韩午夜精品| 国产精品久久夜| 国产乱一区二区| 3751色影院一区二区三区| 国产精品日产欧美久久久久| 日本不卡1234视频| 欧美性色黄大片| 国产精品丝袜黑色高跟| 九九**精品视频免费播放| 欧美日韩一二三区| 一区二区三区免费网站| 91天堂素人约啪| 国产精品久久福利| 粉嫩高潮美女一区二区三区| 日韩精品一区二区在线观看| 一区二区三区精品视频在线| 成人深夜福利app| 中文字幕精品在线不卡| 国产成人av电影在线| 久久久久久免费网| 黄网站免费久久| 欧美xxxx老人做受| 久久精品国产亚洲aⅴ| 制服.丝袜.亚洲.另类.中文| 亚洲一二三区不卡| 欧美在线观看禁18| 亚洲一区二区三区小说| 在线日韩一区二区| 亚洲一区免费视频| 欧美天堂一区二区三区| 亚洲一区二区视频在线观看| 欧美三级视频在线观看| 亚洲成人综合在线| 欧美一区二区三区四区久久| 免费观看91视频大全| 精品国产免费视频| 国产乱国产乱300精品| 国产女同性恋一区二区| 99久久er热在这里只有精品15| 亚洲人亚洲人成电影网站色| 在线观看欧美日本| 丝袜美腿高跟呻吟高潮一区| 56国语精品自产拍在线观看| 精品一区二区三区在线播放 | 91在线视频播放| 亚洲最大色网站| 欧美一区二区三区不卡| 精品一区二区三区蜜桃| 中文av一区二区| 欧美精品在线视频| 国产一区二区三区日韩| 亚洲女同ⅹxx女同tv| 欧美一区二区在线不卡| 国产高清不卡一区二区| 亚洲国产乱码最新视频 | 亚洲午夜三级在线| 精品国产91九色蝌蚪| 成人av免费网站| 亚洲成人精品在线观看| 久久精品人人做人人综合| 色呦呦一区二区三区| 久久99精品国产.久久久久久| 国产精品理论片在线观看| 欧美精品乱人伦久久久久久| 成人教育av在线| 男女视频一区二区| 中文字幕中文字幕中文字幕亚洲无线| 欧美三级资源在线| 处破女av一区二区| 麻豆视频一区二区| 亚洲一区中文日韩| 中文字幕av不卡| 日韩免费高清视频| 日本福利一区二区| 国产91在线观看| 久久99国产精品久久| 一区二区在线免费| 国产精品国产三级国产专播品爱网 | 99re成人在线| 久久精品二区亚洲w码| 一区二区不卡在线播放| 国产精品久久久久婷婷| 日韩欧美资源站| 欧美日韩精品福利| 色综合久久88色综合天天| 顶级嫩模精品视频在线看| 免费人成在线不卡| 三级在线观看一区二区| 亚洲大尺度视频在线观看| 亚洲欧美在线观看| 亚洲欧洲日韩在线| 国产精品入口麻豆九色| 国产亚洲女人久久久久毛片| 精品国产91亚洲一区二区三区婷婷| 欧美精品在线观看播放| 欧美三级视频在线|