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

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

代寫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程序設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 寵物飼養 十大衛浴品牌排行 suno 豆包網頁版入口 wps 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    欧美不卡1区2区3区| 精品国偷自产在线| 欧美精品久久久久久久| 久久免费看毛片| 日韩免费高清在线观看| 欧美精品在线播放| 久久久久欧美| 国产精品伊人日日| 欧美午夜性视频| 亚洲国产精品久久久久爰色欲 | 日本高清一区| 欧美区在线播放| 久久精品国产清自在天天线| 97精品国产91久久久久久| 欧美日韩dvd| 熟妇人妻va精品中文字幕| 欧美大成色www永久网站婷| 久久免费一区| 国产精品夜间视频香蕉| 精品日产一区2区三区黄免费 | 日日摸日日碰夜夜爽无码| 国产精品久久久久久久久久久久 | 性日韩欧美在线视频| 国产精品久久久久久超碰| 久久全球大尺度高清视频| 国产老熟妇精品观看| 男人天堂成人在线| 日韩欧美视频一区二区三区四区| 亚洲制服中文| 国产精品久久..4399| 久久久久久久久久久av| 97久久天天综合色天天综合色hd| 国内精品久久久久| 色综合久久88色综合天天提莫| 欧美人与性动交a欧美精品| 国产精品女人久久久久久| 久久久久久久久网| 国产高清免费在线| av网址在线观看免费| 国产欧美一区二区视频| 黄色av网址在线播放| 日韩精品在在线一区二区中文| 亚洲va欧美va在线观看| 久久99久久99精品免观看粉嫩 | 亚洲成熟丰满熟妇高潮xxxxx| 精品国产乱码久久久久久108| 国产精品污www一区二区三区| 久久久久久久国产| 久久久久久久香蕉网| 久久久久久久久久久综合| 97精品国产97久久久久久| 国产精品一区久久久| 国产欧美精品在线播放| 精品视频一区二区| 精品视频免费在线播放| 国内精品视频在线| 欧美成人精品欧美一级乱| 明星裸体视频一区二区| 欧洲在线视频一区| 欧美自拍资源在线| 欧美久久久久久| 国内一区在线| 国产视频一区二区三区在线播放| 国产又黄又猛视频| 国产一区二区三区小说| 国产综合中文字幕| 国产欧美日韩综合精品| 国产区精品在线观看| 国产欧美日韩网站| 国产乱码一区| 97精品国产97久久久久久春色| 91九色单男在线观看| 久久伊人一区| 日韩在线播放av| 国产精品狼人色视频一区| 精品国产免费av| 亚洲免费视频播放| 日韩成人在线资源| 欧美亚洲免费在线| 国产一区二区三区高清| 国产乱码精品一区二区三区卡| 成人免费aaa| 国产二级片在线观看| 久久精品久久精品亚洲人| 国产精品美女久久久久久免费| 欧美xxxx18性欧美| 亚洲一区二区三区免费看| 性欧美亚洲xxxx乳在线观看| 欧洲久久久久久| 国产综合久久久久| 国产欧美精品日韩| 久久久人成影片一区二区三区观看| 久久99精品久久久久子伦| 国产精品乱码久久久久| 亚洲综合av影视| 日本免费一区二区三区视频观看| 欧美影视一区二区| 国产欧美在线观看| 久久久亚洲天堂| 国产精品久久久一区| 亚洲影院色在线观看免费| 日韩av电影在线网| 狠狠色综合色区| 91精品国产成人| 北条麻妃久久精品| 中国人体摄影一区二区三区| 日本精品一区二区三区视频| 美女精品国产| 7777在线视频| 国产精品久久久影院| 亚洲熟妇无码一区二区三区导航| 欧日韩在线观看| 99精品国产一区二区| 国产精品无码一区二区在线| 亚洲欧洲一二三| 黄色录像特级片| 国产精品18毛片一区二区| 不卡av电影院| 日韩无套无码精品| 成人久久一区二区三区| 久久久久久久久久久免费精品| 欧美激情一二三| 欧美成人精品免费| 国产激情片在线观看| 欧美大片欧美激情性色a∨久久| 日本女人高潮视频| 高清视频一区二区三区| 久久久精品免费视频| 亚洲精品欧美日韩专区| 国产尤物99| 久久视频在线看| 日韩欧美在线观看强乱免费| 国产精品一区二区久久国产| 精品国产依人香蕉在线精品| 无码人妻精品一区二区三区99v| 国产日韩精品久久| 久久精视频免费在线久久完整在线看| 亚洲精品第一区二区三区| 国产免费一区二区视频| 久久精品这里热有精品| 日日噜噜夜夜狠狠久久丁香五月| 国产精品永久免费| 国产精品高清在线| 欧美日韩一区二区三区免费| 久久精精品视频| 婷婷五月综合缴情在线视频 | 久久99精品久久久久久秒播放器| 欧美精品第一页在线播放| 欧美精品国产精品久久久| 久久亚洲国产精品日日av夜夜| 欧美精品激情视频| 国产免费一区二区三区香蕉精 | 成人国产一区二区| 欧美精品在线播放| 红桃一区二区三区| 久久久精品一区二区| 秋霞午夜一区二区| 久久久久久久成人| 日韩一级免费看| 国产成人精品免费久久久久 | 久久精品亚洲精品| 人人妻人人澡人人爽欧美一区 | 成人国产精品久久久| 精品国产三级a∨在线| 国产综合欧美在线看| 国产精品久久网| 免费一级特黄毛片| 国产精品美女午夜av| 精品日本一区二区| 国产精品无码人妻一区二区在线| 欧美中在线观看| 日韩在线视频导航| 人妻熟女一二三区夜夜爱| 久久99久久99精品蜜柚传媒| 日本黄网免费一区二区精品| 色妞欧美日韩在线| 欧美精品一区三区在线观看| 久久久久久久久久av| 欧美中文字幕在线视频| 久久久999国产| 狠狠色综合色区| 久久中文字幕在线| 国产美女精品免费电影| 久久久久久成人精品| 91精品在线观| 欧美一区二区视频17c| 国产成人精品a视频一区www| 欧美中文字幕视频| 国产精品久久..4399| 国产免费高清一区| 亚洲国产一区二区在线| 国产成人黄色片| 青青青国产在线观看| 国产精品涩涩涩视频网站| 国产一区二区自拍| 一级做a爰片久久| 国产成人黄色av| 蜜臀av无码一区二区三区| 中文字幕日韩精品无码内射 | 国产精品久久91|