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爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          欧美日韩在线播放三区| 香蕉乱码成人久久天堂爱免费| 欧美精品乱码久久久久久按摩| 亚洲一区二区在线播放| 一区二区三区在线高清| 欧美日韩视频在线一区二区观看视频 | 亚洲精品久久| 国产一区二区三区四区五区美女| 欧美精品在线免费观看| 久久久www| 亚洲欧美综合v| 亚洲人精品午夜在线观看| 国产视频综合在线| 国产精品久久二区| 欧美日韩dvd在线观看| 久久久久久亚洲精品杨幂换脸 | 麻豆国产精品va在线观看不卡| 亚洲伊人观看| 99一区二区| 亚洲精品乱码久久久久久蜜桃麻豆| 国产亚洲在线观看| 国产精品日日摸夜夜摸av| 欧美激情2020午夜免费观看| 久久人人97超碰国产公开结果| 午夜亚洲福利| 午夜宅男欧美| 欧美一进一出视频| 午夜日韩福利| 欧美在线视频全部完| 欧美一区二区三区精品| 亚洲综合电影| 亚洲欧美另类在线观看| 亚洲综合色噜噜狠狠| 亚洲欧美一区二区三区久久| 亚洲男女毛片无遮挡| 亚洲欧美日韩国产一区二区三区| 亚洲综合清纯丝袜自拍| 亚洲欧美日韩精品在线| 欧美在线免费| 久久久999精品免费| 久久久国产亚洲精品| 久久亚洲电影| 欧美精品日韩三级| 欧美日一区二区在线观看 | 亚洲毛片在线看| 99国产精品| 亚洲欧美国产va在线影院| 翔田千里一区二区| 久久国产精品免费一区| 欧美+亚洲+精品+三区| 欧美成人dvd在线视频| 欧美网站在线| 国产一区二区三区久久精品| 亚洲高清不卡av| 一本久道久久综合中文字幕| 欧美一区二区大片| 美国十次成人| 欧美午夜片欧美片在线观看| 国产欧美日韩一区| 在线免费观看日本一区| 亚洲香蕉在线观看| 久久久久久久网| 欧美日韩另类综合| 国产真实乱偷精品视频免| 亚洲人精品午夜在线观看| 亚洲午夜免费福利视频| 久久婷婷综合激情| 国产精品普通话对白| 亚洲国产精品一区| 欧美一区二区在线免费观看| 欧美国产一区二区在线观看 | 亚洲欧美日韩在线一区| 嫩模写真一区二区三区三州| 国产精品视频网址| 亚洲精品九九| 久久国产精品99久久久久久老狼| 欧美日韩国产999| 国产主播一区二区三区四区| 亚洲亚洲精品在线观看 | 狠狠色香婷婷久久亚洲精品| 亚洲视频一起| 欧美日产国产成人免费图片| 在线精品一区| 久久精选视频| 国产欧美日韩综合| 亚洲一区二区免费在线| 欧美极品色图| 亚洲韩国青草视频| 噜噜噜在线观看免费视频日韩| 国产精品视频| 亚洲欧美国产一区二区三区| 欧美天天在线| 99国产精品一区| 欧美精品在线观看91| 亚洲国产欧美一区| 美腿丝袜亚洲色图| 亚洲国产精品日韩| 能在线观看的日韩av| 又紧又大又爽精品一区二区| 久久久精品一区二区三区| 国产一区视频在线看| 欧美一区二区三区日韩视频| 国产日韩精品视频一区二区三区| 亚洲欧美日本国产有色| 国产欧美日韩91| 欧美中文在线观看| 精品51国产黑色丝袜高跟鞋| 久久久久女教师免费一区| 永久免费毛片在线播放不卡| 麻豆精品精华液| 91久久在线视频| 欧美日韩国产在线| 亚洲女同性videos| 国产色产综合产在线视频| 久久精品国产久精国产爱| 在线看国产日韩| 欧美人与禽猛交乱配视频| 在线综合亚洲欧美在线视频| 国产精品青草综合久久久久99| 久久精品99无色码中文字幕 | 久久久av毛片精品| 亚洲清纯自拍| 国产精品自拍视频| 免费日韩成人| 在线视频你懂得一区二区三区| 国产精品日韩| 美脚丝袜一区二区三区在线观看 | 一区二区欧美精品| 国产美女一区| 欧美激情综合| 午夜精品久久一牛影视| 亚洲激情女人| 国产伦理精品不卡| 女同一区二区| 亚洲欧美在线另类| 亚洲精品欧美日韩专区| 国产日韩欧美精品一区| 欧美成人日本| 久久精品一二三| 中国av一区| 亚洲品质自拍| 国际精品欧美精品| 欧美揉bbbbb揉bbbbb| 久久久久久电影| 亚洲免费伊人电影在线观看av| 亚洲国产成人不卡| 国产九色精品成人porny| 欧美精品一区二区三区视频| 久久精品动漫| 亚洲欧美激情视频| 亚洲少妇在线| 亚洲欧洲久久| 亚洲国产天堂网精品网站| 国产日韩欧美制服另类| 欧美日韩另类综合| 欧美日本一道本| 麻豆久久久9性大片| 久久久久久综合| 亚洲欧美综合网| 在线一区二区三区做爰视频网站| 亚洲精品日韩久久| 亚洲国产一区二区三区高清| 尤物精品在线| 影音先锋亚洲视频| 在线观看精品| 亚洲高清毛片| 亚洲国产视频直播| 亚洲国产一区二区精品专区| 亚洲国产精品嫩草影院| 好吊视频一区二区三区四区| 国产情侣一区| 国产精品视频午夜| 国产欧美在线观看| 国产亚洲精品久久久久动| 国产一区白浆| 国产一级一区二区| 在线精品视频免费观看| 亚洲国产高清在线| 亚洲精品你懂的| 99精品99| 亚洲欧美国产日韩天堂区| 午夜视频一区二区| 久久久欧美一区二区| 玖玖在线精品| 欧美日韩国产综合网| 国产精品大片wwwwww| 国产午夜精品一区理论片飘花| 韩日视频一区| 亚洲精品国产无天堂网2021| 亚洲视频在线播放| 午夜视黄欧洲亚洲| 久久久久久久精| 欧美激情第三页| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ入口 | 欧美黑人多人双交| 欧美日韩视频免费播放| 国产欧美一区二区精品婷婷| 亚洲大片在线| 亚洲欧美日韩天堂一区二区| 久久婷婷国产综合尤物精品 |