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

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

代寫CS170編程、代做Java程序設計

時間:2023-11-14  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯


CS170 – Computer Applications for Business

Fall 2023 • Assignment 8

Functions, Loops & Arrays

Due Date: Before 11:59 p.m. on Friday, November 10th

, 2023

Accept Until: Before 11:59 p.m. on Friday, November 17th, 2023

Evaluation: 25 points

Submit to Canvas: Assignment8.html file

Related Materials: JavaScript Reference Guide

Need help? TA office hours and Lab Support Schedule posted in Canvas

YOU ARE ON YOUR HONOR TO COMPLETE THIS ASSIGNMENT WITHOUT ASSISTANCE. You may

use your text and resources available to you through Canvas. You MAY NOT ask any human for

assistance, give assistance to anyone, or use any online tutoring service.

Use only the coding syntax taught to you during classes and recitations. The use of other

coding syntax may result in your work being marked for further review due to possible

unauthorized assistance.

Learning Objectives:

In general, this assignment is designed to practice JavaScript concepts from Chapters 17 top 20 of the

textbook. In particular, the following items will be useful for this assignment:

1. Creating functions

2. Calling functions

3. Creating and initializing arrays

4. Creating and using loops

5. Using Number() function to ensure values are treated as numbers and not strings

6. Using concatenation to add currency or percent symbols

7. Using toFixed(2) method to round to 2 decimal places

8. Reading and understanding the use of comments

To earn credit for this assignment:

1 You will create JavaScript code – embedded on an HTML file - according to the requirements listed

on the next pages.

2 Upload and submit a single html file (.html extension) containing the code required.

For your assignment to be graded, please include the following statement as a comment in the

<head> section of the program:

“ On my honor, I have neither received nor given any unauthorized assistance on this assignment.”

Page 1 of 6

PROBLEM DESCRIPTION

The Pet House provides pet boarding services. Pet owners can contract their services for a given number of

days while they are away on vacation or a business trip. As an option, the Pet House provides veterinarian

checkup. Their prices are as follows:

Pet Price per Day ($)

Dog 25

Cat 15

Hamster 10

Veterinarian Checkup (optional): $120 (fixed rate) regardless of the number of days contracted.

Sales Tax Rate: the Sales Tax for the program will be 7%.

You are required to implement the interface shown below which will use JavaScript to calculate the price for

each transaction. In addition, the program shall generate a report showing some statistical information.

A video of a sample run of this completed assignment is available on the assignment’s webpage on Canvas.

Note: See the illustration above and the sample video for examples of the inputs and

outputs required.

Page 2 of 6

Inputs needed:

 Pet Type: one of the following three: dog, cat, hamster.

 Number of Days: the number of boarding days contracted.

 Veterinarian Checkup: optional service.

Output required (produced by the Process button):

 Price: Number of Days x Price per Day (according to the table on this page) + Veterinarian Fee (if contracted).

 Final Price: Price + applicable Sales Tax.

 Note: Watch the Sample Video posted on Canvas (on the assignment 8 page)

 After all the inputs are processed, the “Process Statistics” button will be clicked on to generate a

report.

 The Report will be displayed on a separate webpage

 Note: See the Sample Report on the following page

 The Report will contain the following parts:

A Heading section with the following on separate lines:

 The Pet House (as heading)

 Statistics Report (as subheading)

 The Date/Time of the Invoice

Below the Heading, the transactions listed with the following on each line:

 Transaction: a sequential number starting with 1

 Pet

 Days

 Vet Checkup

 Transaction Price $

 Final Price $

Below the transactions:

 Total Transactions (before tax)

 Average Transaction (before tax)

 Total Days: total number of days contracted for all pets

 Average Number of Days: average number of days contracted for all pets

Additional Note:

 The document.write function should be used heavily to generate the report.

Requirements:

Arrays:

 Use four additional parallel array to hold the information that will be displayed on the report: pet type, days

contracted, veterinarian checkup choice, price per transaction.

Page 3 of 6

Functions

 Functions are required to:

 Initialize the four parallel arrays that will hold the transaction data: one array to hold pet types, another

one to hold days contracted, the next one to hold the veterinarian checkup choice and the last one to

hold the price of the transaction.

◦ Since some arrays will contain strings and some other arrays will contain numbers, two functions will be

required to initialize arrays: one to set element of array to empty strings and another to set elements of

an array to 0. In addition, a third function that adds up the elements of an array will be needed.

 Use loops to process the elements of the arrays.

SAMPLE TEST DATA and RESULTS

加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

掃一掃在手機打開當前頁
  • 上一篇:代寫Implementation of Graph Algorithms
  • 下一篇:代寫INFS 2042 Data Structures
  • 無相關信息
    合肥生活資訊

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

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

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

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

          9000px;">

                亚洲欧美日韩精品永久在线| 亚洲天堂视频一区| 久久久无码人妻精品无码| 精品久久久久久久久久久久久久久久久久 | 久久久久久久高清| 国产欧美久久久| 国产精品九九视频| 激情图片中文字幕| 可以直接看的无码av| 青草视频在线观看免费| 日本免费网站在线观看| 国产一级淫片a| 日韩黄色免费观看| 免费观看成人毛片| 好男人香蕉影院| 免费黄色一级网站| 日韩黄色片网站| 五月天婷婷激情视频| 西西大胆午夜视频| 亚洲精品久久久久久宅男| 91狠狠综合久久久久久| 国产wwwwxxxx| 久久成人国产精品入口| 免费在线观看av的网站| 日本黄色www| 欧美日韩综合在线观看| 日韩精品视频免费播放| 性一交一乱一色一视频麻豆| 这里只有精品免费视频| 亚洲欧美日韩中文字幕在线观看| wwwwww国产| 免费黄色一级大片| 伊人精品在线视频| 国产精品久久久久久亚洲色| 久久精品亚洲a| 日本中文字幕免费在线观看| 亚洲精品一区二区三区在线播放| www.av在线.com| 国产精品污视频| 日韩 欧美 精品| 亚洲精品20p| 国产人妻精品一区二区三区不卡| 妺妺窝人体色WWW精品| 午夜国产福利一区二区| 夜夜躁很很躁日日躁麻豆| 黄色一级a毛片| 色噜噜狠狠永久免费| 亚洲高清在线观看视频| 国产婷婷色一区二区在线观看| 色哟哟一一国产精品| 亚洲天堂精品一区| 卡通动漫亚洲综合| 91香蕉视频在线观看视频| 黄色av一级片| 午夜影院在线视频| 国产精品老女人| 日日噜噜夜夜狠狠| 国产美女三级无套内谢| 手机看片国产精品| 中文字幕 自拍| 久久一二三四区| 中文字幕一区二区人妻视频| 久久久久精彩视频| 亚洲精品字幕在线| 激情网站在线观看| 亚洲一二三av| 日本理论中文字幕| 国产伦子伦对白视频| 婷婷丁香综合网| 国产精品久久久视频| 五月花丁香婷婷| 韩国av永久免费| 91av视频免费观看| 日韩免费av网站| 九九精品免费视频| 一本岛在线视频| 呻吟揉丰满对白91乃国产区| 成人无码www在线看免费| 色婷婷视频在线| 精品人妻一区二区三区视频| 亚洲精品国产一区黑色丝袜| 美国精品一区二区| 国产精品熟女视频| 中文字幕在线视频免费| 日本少妇激情视频| 国产视频在线一区| 亚洲日本精品视频| 亚洲第一成人网站| 久久综合久久鬼| 国产99久久久| 亚洲三区在线播放| 天天干天天操天天拍| 好男人香蕉影院| a级在线免费观看| 日本一级免费视频| 色婷婷在线视频观看| 亚洲精品一区二区三区在线播放 | 午夜免费激情视频| 黄色一级视频免费| a v视频在线观看| 中文人妻熟女乱又乱精品| 欧美日韩亚洲自拍| 国产精品久久久久野外| 91视频在线网站| 一级做a爰片毛片| 欧美一级视频免费| 精品少妇一区二区三区免费观| www.久久久久久久久久久| 伊人网在线综合| 欧美图片一区二区| 国产xxx在线观看| 在线免费播放av| 日本女人性视频| 久久免费视频99| 国产又粗又猛又爽又黄视频| 爱情岛论坛成人| aaa在线视频| 999在线免费视频| 亚洲综合精品在线| 亚洲一区二区三区四区五区xx| 伊人色在线观看| 中文字幕av专区| 无码人妻aⅴ一区二区三区玉蒲团 无码人妻aⅴ一区二区三区有奶水 | 五月天综合激情| 久久久久久久久久久久91| 国产成人在线综合| 成人小视频在线播放| 99精品中文字幕| 亚洲天堂网av在线| 91久久免费视频| 97精品人妻一区二区三区香蕉| 亚洲欧美日韩一级| 91中文字幕永久在线| 中文字幕一区二区人妻| 国产视频在线观看视频| 爆乳熟妇一区二区三区霸乳| 亚洲精品在线视频播放| 日韩欧美三级在线观看| 国产一级久久久| 天天操天天射天天| www.久久综合| 国产欧美日韩成人| 内射一区二区三区| 五月天激情婷婷| 亚洲精品.www| 一道本在线免费视频| 自拍偷拍视频亚洲| 无码人妻一区二区三区一| 不用播放器的免费av| 欧美图片第一页| 亚洲v国产v欧美v久久久久久| 中文字幕日韩三级| 波多野结衣激情视频| 精品一区二区三区人妻| 天堂网一区二区三区| 亚洲天堂国产视频| 国产毛片久久久久| 日日噜噜噜噜久久久精品毛片| 伊人色综合久久久| 国产精品成人aaaa在线| 日韩精品――色哟哟| 亚洲无码久久久久| 久久发布国产伦子伦精品| 五月婷在线视频| 丰满少妇在线观看资源站| 免费在线观看av网址| 最近免费中文字幕大全免费版视频 | 受虐m奴xxx在线观看| 91精品一区二区三区蜜桃| 久草免费新视频| 在线a免费观看| 国产又黄又粗又硬| 五月天色婷婷丁香| 国产午夜在线一区二区三区| 天天操天天操天天操| 国产白嫩美女无套久久| 潘金莲一级淫片aaaaaaa| 一级黄色大片免费看| 美国精品一区二区| 91在线看视频| 日韩精品一区三区| 国产精品视频久久久久久久| 天天爱天天干天天操| 国产乱淫a∨片免费观看| 午夜不卡久久精品无码免费| 国产精品久久777777换脸| 香港三日本三级少妇66| 国产又大又黄又粗又爽| 亚洲欧美日韩一二三区| 日本精品入口免费视频| 99热这里只有精| 天天舔天天干天天操| 精品国产999久久久免费| 中文字幕在线播放视频| 欧美色视频一区二区三区在线观看| 88久久精品无码一区二区毛片| 日本熟伦人妇xxxx| 精品人妻人人做人人爽夜夜爽| 亚洲精品综合在线观看| 日本特级黄色片|