91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区

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

代寫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

    91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区
    91亚洲男人天堂| 欧美国产精品v| 日本在线不卡视频| 日韩三级精品电影久久久| 国产乱码字幕精品高清av| 中国av一区二区三区| 亚洲一区三区视频在线观看 | 日韩美一区二区三区| 91免费看片在线观看| 精品一区二区三区在线播放| 欧美另类高清zo欧美| 不卡一区二区三区四区| 一区av在线播放| 亚洲精品中文在线影院| 欧美精品一区二| 欧美三级视频在线| 欧美视频自拍偷拍| 色婷婷香蕉在线一区二区| 先锋影音一区二区三区| 国产在线日韩| 欧美日韩国产综合网| 国产激情视频一区二区三区欧美| 一区二区三区四区激情| 久久久久免费观看| 欧美mv和日韩mv的网站| 欧美午夜在线观看| 美女诱惑一区| 欧美日韩在线直播| 欧美一区二区三区精品| 久久综合成人精品亚洲另类欧美| 91麻豆精品91久久久久同性| 欧美高清精品3d| 欧美一区二区免费视频| 日韩手机在线导航| 中文字幕成人av| 亚洲男同1069视频| 亚洲一卡二卡三卡四卡五卡| 亚洲电影你懂得| 国产风韵犹存在线视精品| 国产精品一区免费在线观看| 奇米精品一区二区三区四区| 精品制服美女丁香| 欧美一区综合| 亚洲欧美日本国产专区一区| 久久综合精品一区| 精品三级在线看| 三级影片在线观看欧美日韩一区二区| 精品一区二区三区视频| 激情文学综合插| 精品1区2区3区4区| 麻豆成人小视频| 鲁大师成人一区二区三区| 色av成人天堂桃色av| 精品国产乱子伦一区| 91成人在线精品| 成人午夜视频在线| 国产自产v一区二区三区c| 亚洲性图久久| 欧美乱妇15p| 国产欧美一区在线| 国产在线精品不卡| 亚洲一本视频| 久久久精品免费网站| 亚洲一区二区在线观看视频| 欧美亚洲不卡| 亚洲免费观看高清完整版在线观看熊| 97久久精品人人澡人人爽| 91精品国产乱| 91首页免费视频| 国产日产精品一区| 精品一区二区三区免费观看| 色婷婷av一区二区三区大白胸| 欧美激情中文不卡| 精品成人久久| 日韩美女久久久| 欧美人与禽猛交乱配视频| 欧美成人伊人久久综合网| 一区二区三区不卡在线观看 | 先锋亚洲精品| 亚洲一区免费观看| 欧美性色黄大片| 蜜桃传媒麻豆第一区在线观看| 亚洲自拍高清| 国产乱子轮精品视频| 4438x成人网最大色成网站| 国产成人自拍在线| 国产精品视频观看| 色婷婷综合久久久中文字幕| 水蜜桃久久夜色精品一区的特点 | 国产盗摄女厕一区二区三区| 日韩精品综合一本久道在线视频| 成人永久看片免费视频天堂| 久久久91精品国产一区二区精品| 综合久久久久久| 色国产综合视频| 91久久午夜| 国产在线精品一区二区夜色| 中文字幕日韩av资源站| 在线观看国产91| 99久久国产免费看| 中文字幕在线不卡视频| 久久亚洲色图| 国产精品扒开腿做爽爽爽软件| 亚洲另类春色国产| 欧美电影免费观看高清完整版| 亚洲精品九九| 久久精品国产亚洲高清剧情介绍 | 国产精品你懂的在线| 91久久免费观看| 国产精品欧美久久| 一区在线视频| 国产主播一区| 99re视频这里只有精品| 国产麻豆精品久久一二三| 日韩国产精品91| 国产人成亚洲第一网站在线播放| 欧美天堂亚洲电影院在线播放| 亚洲精品三级| 欧美视频日韩| 亚洲欧美影院| 93久久精品日日躁夜夜躁欧美| 精品在线你懂的| 国产成人夜色高潮福利影视| 亚洲第一二三四区| 亚洲综合区在线| 亚洲国产精品影院| 一区二区三区四区乱视频| 亚洲欧洲日本在线| 亚洲日韩欧美一区二区在线| 1024成人网色www| 亚洲欧美综合另类在线卡通| 国产欧美一区视频| 亚洲品质自拍视频| 久久久噜噜噜久久人人看| 久久久久亚洲蜜桃| 国产精品情趣视频| 天天色综合成人网| 麻豆国产精品一区二区三区| 成人性视频网站| 国产精品一区亚洲| 色8久久精品久久久久久蜜| 欧美日韩精品欧美日韩精品一综合| 91精品黄色片免费大全| 欧美久久久一区| 精品免费视频一区二区| 自拍偷拍亚洲综合| 国产mv日韩mv欧美| 91免费国产在线| 中国女人久久久| 日韩一卡二卡三卡国产欧美| 欧美变态口味重另类| 午夜av电影一区| 激情综合色播五月| 国产综合亚洲精品一区二| 久久久久久一区| 亚洲视频网在线直播| 成人永久aaa| 一本一道久久a久久精品综合蜜臀| 3d成人h动漫网站入口| 精品福利一二区| 美国欧美日韩国产在线播放| 99re热视频这里只精品| 在线综合亚洲欧美在线视频| 国产喷白浆一区二区三区| 美国精品在线观看| 99热在线精品观看| 欧美激情一区二区三区不卡| 国产一区二区三区视频在线播放| 亚洲一二三区在线| 日韩理论电影院| 91在线看国产| 久久精品在线观看| 久久99精品国产.久久久久久| 亚洲一本视频| 久久婷婷色综合| 欧美激情亚洲| 亚洲欧美另类小说| 国产精品v日韩精品v欧美精品网站| 亚洲精品一区二区三区蜜桃下载| 婷婷综合在线观看| 国产日韩亚洲| 午夜免费久久看| 欧美日韩dvd在线观看| 国产超碰在线一区| 欧美一卡2卡三卡4卡5免费| 全部av―极品视觉盛宴亚洲| 在线观看日韩av先锋影音电影院| 亚洲成av人片在线| 91精品1区2区| 成人app在线观看| 国产精品视频一二三区| 韩国一区二区三区在线观看| 一区二区理论电影在线观看| 在线播放豆国产99亚洲| 26uuu久久综合| 黄色精品一区| 亚洲自拍偷拍欧美| 国产精品视区| 日韩成人av影视| 久久久久久一级片|