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
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相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;">

                亚洲国产另类精品专区| 99国产精品国产精品毛片| 久久精品国产秦先生| 亚洲一区二区三区四区不卡| 久久97超碰色| 精品国产髙清在线看国产毛片| 国产精品二区一区二区aⅴ污介绍| 日韩影院免费视频| 91久久免费观看| 成人免费在线视频| 99国产精品久久久久久久久久| 久久色.com| 国产精品996| 国产午夜精品福利| 成人午夜av在线| 18成人在线观看| 日韩欧美不卡在线观看视频| 美女视频免费一区| 精品盗摄一区二区三区| 亚洲综合小说图片| 国产麻豆精品95视频| 久久久久国产免费免费| 亚洲国产精品影院| 91精品国产色综合久久久蜜香臀| 免费在线观看一区二区三区| 91精品国产综合久久久久| 日韩精品成人一区二区在线| 日韩午夜激情视频| 国产成a人亚洲精| 亚洲美女精品一区| 日韩亚洲电影在线| 成人免费va视频| 亚洲h动漫在线| 久久综合色8888| 色综合视频在线观看| 天天综合天天做天天综合| 欧美va亚洲va国产综合| 99久久精品情趣| 麻豆高清免费国产一区| 国产精品高清亚洲| 日韩一区国产二区欧美三区| 国产成人啪免费观看软件| 亚洲欧美激情一区二区| 欧美一级高清片在线观看| 国产成人丝袜美腿| 天天操天天色综合| ...xxx性欧美| 日韩欧美电影一二三| 91美女视频网站| 国产一区二区91| 日韩激情一二三区| 亚洲视频在线观看一区| 日韩欧美在线网站| 91麻豆免费看| 色综合天天狠狠| 国产成人av网站| 不卡一区二区在线| 韩国精品主播一区二区在线观看| 欧美一区二区三区系列电影| 久久国产生活片100| 国产精品午夜免费| 91麻豆精品国产91久久久更新时间 | 欧美一区二区观看视频| 成人av动漫网站| 国产福利一区二区| 久久国产精品99久久人人澡| 亚洲bt欧美bt精品777| 国产精品家庭影院| 国产精品视频你懂的| 久久久久久久综合日本| 在线精品视频一区二区| 96av麻豆蜜桃一区二区| av在线不卡观看免费观看| 成人视屏免费看| 成人午夜电影小说| 成人一级黄色片| 99精品久久只有精品| 99久久国产免费看| 日本乱人伦一区| 欧美日韩另类一区| 欧美一区二区三区四区五区| 91精品国产91久久久久久最新毛片| 欧美精品亚洲一区二区在线播放| 欧美精品亚洲一区二区在线播放| 91精品国产综合久久久蜜臀粉嫩| 日韩一区二区在线观看视频 | av爱爱亚洲一区| 不卡的av中国片| 色欧美片视频在线观看在线视频| 色综合夜色一区| 欧美日韩国产欧美日美国产精品| 欧美精品777| 精品日韩一区二区三区| 国产欧美日韩在线视频| 中文字幕亚洲一区二区va在线| 亚洲精品大片www| 日韩国产精品久久久久久亚洲| 麻豆成人av在线| 成人精品小蝌蚪| 8x8x8国产精品| 久久精品亚洲一区二区三区浴池| 国产精品成人一区二区艾草| 一区二区在线免费观看| 蜜桃视频在线观看一区二区| 国产精品1024| 欧美曰成人黄网| 久久综合久久鬼色中文字| 亚洲欧洲美洲综合色网| 天堂成人免费av电影一区| 国产在线不卡一区| 欧美亚一区二区| 精品国产凹凸成av人导航| 亚洲视频在线观看一区| 狠狠网亚洲精品| 91猫先生在线| 2欧美一区二区三区在线观看视频| 国产精品人成在线观看免费| 五月天激情综合网| av在线不卡电影| 欧美不卡一区二区三区四区| 国产精品不卡一区二区三区| 九色综合国产一区二区三区| 在线免费亚洲电影| 国产欧美一区二区精品性| 午夜av一区二区| 91蜜桃婷婷狠狠久久综合9色| 欧美精品一区二区三区蜜桃| 亚洲一区欧美一区| 99久久99久久精品免费看蜜桃| 精品理论电影在线观看| 午夜a成v人精品| 日本韩国欧美国产| 亚洲丝袜另类动漫二区| 国产成人免费在线视频| 亚洲精品一区在线观看| 日韩电影在线免费看| 欧美日韩一区小说| 亚洲精品成人悠悠色影视| 99精品久久99久久久久| 国产精品萝li| 97精品久久久午夜一区二区三区 | 国产乱码精品一区二区三区忘忧草| 日本电影亚洲天堂一区| 国产精品三级在线观看| 国产91精品久久久久久久网曝门 | 岛国精品一区二区| 久久久久国产一区二区三区四区 | 91国内精品野花午夜精品| 中文一区二区完整视频在线观看| 久久精品久久久精品美女| 91精品麻豆日日躁夜夜躁| 一区二区在线观看视频| 欧美一区二区三区视频在线观看| 婷婷夜色潮精品综合在线| 91网站视频在线观看| 天天色天天爱天天射综合| 欧美日韩1区2区| 成人深夜视频在线观看| 亚洲女女做受ⅹxx高潮| 欧美制服丝袜第一页| 婷婷夜色潮精品综合在线| 欧美一区二区三区爱爱| 激情综合网激情| 最新成人av在线| 欧美无砖专区一中文字| 日本亚洲一区二区| 久久久激情视频| 男男gaygay亚洲| 欧美日本精品一区二区三区| 亚洲激情一二三区| eeuss影院一区二区三区| 久久综合久久99| 国产大陆亚洲精品国产| 精品99999| 国产精品亚洲一区二区三区妖精 | 亚洲成人动漫精品| 青青草国产成人av片免费| 国产欧美日韩在线观看| 欧美日韩精品一区视频| 91麻豆免费在线观看| 蜜桃91丨九色丨蝌蚪91桃色| 亚洲视频一二区| 在线综合视频播放| 秋霞午夜av一区二区三区| 91蝌蚪porny| 一区二区三区欧美激情| 99国产欧美另类久久久精品| 综合婷婷亚洲小说| 欧美日韩中文字幕一区| 精品一区二区三区在线播放视频| 欧美国产日本韩| 在线播放视频一区| 大美女一区二区三区| 亚洲一区二区高清| 国产色综合一区| 中文字幕精品—区二区四季| 欧美日韩一区二区三区不卡| 在线这里只有精品| 成人在线综合网| 成人午夜在线播放|