日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

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

代寫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號線
  • 短信驗證碼 trae 豆包網頁版入口 目錄網 排行網

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

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

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        国内外成人免费视频| 亚洲自拍电影| 亚洲欧美伊人| 国产精品影片在线观看| 国产亚洲欧美日韩美女| 国产专区综合网| 欧美在线观看视频在线| 国产精品美女久久久久久2018| 国内精品视频在线观看| 美女亚洲精品| 国产日韩欧美麻豆| 亚洲精品久久7777| 亚洲乱码视频| 中文久久精品| 欧美日韩视频在线观看一区二区三区| 在线观看视频亚洲| 亚洲国产精品va在看黑人| 欧美日韩一区二区国产| 亚洲电影欧美电影有声小说| 亚洲免费在线观看| 国产精品久久99| 亚洲国产精品成人一区二区| a91a精品视频在线观看| 久久国产精品99国产精| 欧美顶级少妇做爰| 黄网动漫久久久| 国产精品99久久久久久久vr| 亚洲欧美在线看| 久久精品一区四区| aaa亚洲精品一二三区| 黄色综合网站| 欧美日韩的一区二区| 午夜欧美不卡精品aaaaa| 国产精品久久久久久av福利软件| 欧美日韩综合网| 亚洲精品国产精品乱码不99按摩| 蜜桃精品一区二区三区| 另类人畜视频在线| 欧美人与禽性xxxxx杂性| 久久久99国产精品免费| 亚洲国产日本| 日韩亚洲欧美综合| 亚洲美女在线国产| 国产精品qvod| 久久精品在线观看| 久久成人免费电影| 欧美午夜精品久久久久免费视| 日韩亚洲欧美成人| 亚洲欧美在线aaa| 国产人成精品一区二区三| 欧美不卡视频| 亚洲国产日韩欧美综合久久| 欧美大片国产精品| 亚洲级视频在线观看免费1级| 在线观看视频一区二区| 亚洲激情视频在线观看| 亚洲国产精品久久人人爱蜜臀| 欧美一区永久视频免费观看| 欧美美女视频| 欧美日韩综合不卡| 9色精品在线| 国产精品免费观看视频| 蘑菇福利视频一区播放| 新67194成人永久网站| 亚洲欧美国内爽妇网| 红桃视频欧美| 精品88久久久久88久久久| 国产精品美女久久久久久2018| 国产亚洲观看| 国产欧美日韩综合一区在线观看| 欧美日韩国产不卡在线看| 久久亚洲春色中文字幕久久久| 午夜精品久久久久久久白皮肤| 国产精品久久网站| 亚洲七七久久综合桃花剧情介绍| 99这里只有精品| 国产一区二区三区观看| 尤物yw午夜国产精品视频| 日韩一区二区电影网| 模特精品裸拍一区| 欧美精品日韩三级| 国产亚洲福利一区| 亚洲综合99| 午夜精品www| 亚洲精品久久久久久久久久久久久| 欧美系列精品| 欧美视频精品在线观看| 亚洲区中文字幕| 欧美在线|欧美| 国产欧美午夜| 久久一区二区三区四区| 国产精品第三页| 另类尿喷潮videofree| 久久久www成人免费毛片麻豆| 国产精品一国产精品k频道56| 国产精品久久久久久久午夜| 欧美一区影院| 一区二区三区福利| 狠狠色丁香婷婷综合久久片| 一区二区不卡在线视频 午夜欧美不卡在| 日韩一级不卡| 国产亚洲一区二区精品| 在线精品亚洲一区二区| 欧美精品麻豆| 新67194成人永久网站| 欧美视频中文在线看| 免费观看亚洲视频大全| 校园春色国产精品| 欧美xart系列在线观看| 亚洲欧美久久久| 欧美黑人在线播放| 亚洲精品激情| 麻豆九一精品爱看视频在线观看免费| 久久久久久久91| 久久精品视频va| 狠狠色伊人亚洲综合成人| 一区二区三区蜜桃网| 一本色道**综合亚洲精品蜜桃冫| 亚洲国产91| 狠狠色伊人亚洲综合成人| 永久91嫩草亚洲精品人人| 欧美激情久久久| 欧美极品一区| 欧美欧美天天天天操| 亚洲精品黄色| 国产美女精品视频免费观看| 亚洲精品视频在线| 亚洲日韩第九十九页| 狠狠88综合久久久久综合网| 在线亚洲精品福利网址导航| 黄色成人在线观看| 久久亚洲二区| 亚洲大胆女人| 久久久久久尹人网香蕉| 久久国产日本精品| 久久久亚洲成人| 国产精品欧美经典| 国产视频一区二区在线观看| 欧美一区二区三区啪啪| 亚洲一区制服诱惑| 亚洲一区在线视频| 性一交一乱一区二区洋洋av| 亚洲福利视频网站| 久久久精品免费视频| 欧美日韩国产在线一区| 国产精品福利片| 国产精品久久久对白| 精品99视频| 极品日韩久久| 伊人狠狠色丁香综合尤物| 亚洲免费影院| 亚洲视频在线一区观看| 欧美日韩国产综合视频在线| 久久九九国产精品| 亚洲经典一区| 91久久久久久| 欧美日韩精品综合在线| 亚洲一区二区视频在线| 欧美特黄一区| 欧美日韩二区三区| 久久国产黑丝| 欧美一区国产二区| 日韩午夜免费视频| 蜜桃视频一区|