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

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

代寫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仿真分析服務-企業(yè)/產品研發(fā)/客戶要求/設計優(yōu)化
    有限元分析 CAE仿真分析服務-企業(yè)/產品研發(fā)
    急尋熱仿真分析?代做熱仿真服務+熱設計優(yōu)化
    急尋熱仿真分析?代做熱仿真服務+熱設計優(yōu)化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發(fā)動機性能
    挖掘機濾芯提升發(fā)動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

    91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区
    久久综合婷婷| 久色成人在线| 在线视频你懂得一区| 亚洲午夜精品17c| 久久中文精品| 久久国产精品99精品国产| 精品欧美一区二区三区精品久久 | 日韩一级在线| 国产精品污www在线观看| 久久国产精品一区二区三区| 欧美一a一片一级一片| 正在播放亚洲一区| 国产精品成人一区二区艾草| 日韩精品成人一区二区三区| 欧美韩国一区| 亚洲1区2区3区4区| 国产日韩影视精品| 久久久www| 欧美 日韩 国产精品免费观看| 一区二区三区在线观看网站| 777午夜精品视频在线播放| 亚洲欧美一级二级三级| 国产福利精品导航| 久久精品亚洲乱码伦伦中文| 国产亚洲一区二区在线观看| 国产拍欧美日韩视频二区| 1024成人网色www| 一区二区三区在线看| 美女在线一区二区| 国产成a人亚洲精| 国自产拍偷拍福利精品免费一| 国产欧美一区二区三区另类精品| 色综合久久久久综合| 欧美一级片免费看| 中文字幕一区不卡| 久久激情综合网| 99国产精品久久久久| 国产午夜精品一区二区三区欧美| 欧美在线播放高清精品| 久久久久久黄色| 亚洲综合另类小说| 国产精品99久久久| 亚洲东热激情| 欧美日韩情趣电影| 中文字幕亚洲一区二区av在线| 午夜精品福利一区二区三区av| 国产精品99久久久久| 日韩视频一区| 日韩精品专区在线影院重磅| 一区二区三区免费| 成人av在线资源网| 久久精品毛片| 国产欧美一区二区三区鸳鸯浴 | 欧美一级国产精品| 一区二区欧美在线观看| 国产91精品入口| 老鸭窝91久久精品色噜噜导演| 欧美成人一区二区| 日韩高清一区在线| 国产精品分类| 日韩一级高清毛片| 天堂成人免费av电影一区| 色综合久久中文字幕综合网| 91国产免费观看| 国产精品影视网| 国产日韩在线一区二区三区| 国产成人99久久亚洲综合精品| 国产专区欧美精品| 亚洲理伦在线| 久久久久久久综合日本| 经典三级一区二区| 欧美一级专区| 亚洲日本成人在线观看| 9l国产精品久久久久麻豆| 欧美日韩一级二级三级| 一区二区三区丝袜| 国产精品啊v在线| 精品欧美一区二区三区精品久久| 免费一区二区视频| 米奇777在线欧美播放| 亚洲国产激情av| 91在线国内视频| 日韩三级伦理片妻子的秘密按摩| 日韩精品视频网站| 亚洲欧美日韩另类精品一区二区三区 | 性久久久久久久久久久久| 欧美成人日韩| 久久人人超碰精品| 国产91在线看| 欧美一区二区三区日韩| 国产在线视频不卡二| 在线观看中文字幕不卡| 日韩精品成人一区二区三区| 亚洲精品少妇| 有坂深雪av一区二区精品| 国产一区二区三区无遮挡| 日本一二三不卡| 国产精品mm| 综合中文字幕亚洲| 国产精品二区在线观看| 国产精品国产精品国产专区不片| 欧美日本一区二区视频在线观看| 久久久国产午夜精品| 欧美不卡一卡二卡免费版| 中文字幕欧美日韩一区| 国产精品www.| 亚洲综合在线第一页| 蜜乳av另类精品一区二区| 五月激情综合色| 欧洲国内综合视频| 国产成人啪午夜精品网站男同| 7777精品伊人久久久大香线蕉 | 日韩电影一区二区三区四区| 一区二区三区四区五区视频 | 亚洲国产一区二区视频| 一区二区三区高清视频在线观看| 亚洲综合男人的天堂| 老**午夜毛片一区二区三区| 日韩av电影免费观看高清完整版| 在线观看日产精品| 国产69精品一区二区亚洲孕妇| 欧美xxxx在线观看| 亚洲图片欧洲图片日韩av| 亚洲人成7777| 在线亚洲精品福利网址导航| 国产一区在线视频| 亚洲视频1区2区| 裸体一区二区| 99国产精品久久久久| 久久国产精品第一页| 欧美日本亚洲| 亚洲国产精品久久久男人的天堂| 久久青青草综合| 成人美女视频在线看| 自拍偷拍欧美精品| 久久精品午夜| 成人免费观看男女羞羞视频| 欧美国产乱子伦| 色哟哟在线观看一区二区三区| 国产成人午夜电影网| 国产精品美女久久久久久久| 麻豆成人小视频| 成人午夜视频在线观看| 亚洲美女视频一区| 欧美喷潮久久久xxxxx| 狠狠88综合久久久久综合网| 奇米精品一区二区三区四区| 久久综合给合久久狠狠狠97色69| 99热精品在线观看| 日本va欧美va欧美va精品| 欧美日韩精品一区| 免费在线观看一区二区| 中文在线一区二区| 欧美日韩综合网| 麻豆国产精品官网| 国产精品国产三级国产| 欧美精品xxxxbbbb| 国产日韩精品视频一区二区三区| 韩国一区二区三区| 一区二区三区在线视频免费观看| 91精品国产综合久久香蕉麻豆| 国产一区二区高清| www.成人网.com| 美女爽到高潮91| 亚洲激情在线播放| 久久影音资源网| 欧美精品日韩精品| 久久精品一区二区国产| 国自产拍偷拍福利精品免费一 | 欧美另类亚洲| 狠狠综合久久av一区二区老牛| 噜噜噜噜噜久久久久久91| 欧美大肚乱孕交hd孕妇| 国产三级精品视频| 亚洲一区二区三区免费视频| 99re66热这里只有精品3直播 | 午夜精品亚洲一区二区三区嫩草| 91免费看片在线观看| 国内精品久久久久久久97牛牛| 欧美成va人片在线观看| 色综合色狠狠综合色| 奇米精品一区二区三区在线观看| 亚洲人成在线观看一区二区| 久久久精品2019中文字幕之3| 91精品国产综合久久福利软件 | 国产一区白浆| 伊人成人网在线看| 91免费小视频| 99久久er热在这里只有精品66| 国产主播一区二区三区| 美女一区二区三区在线观看| 五月天激情小说综合| 亚洲最新视频在线观看| 亚洲欧美激情在线| 亚洲欧美自拍偷拍| 国产精品伦理在线| 欧美国产日本韩| 国产欧美日韩在线视频| 久久中文娱乐网| 久久久99精品免费观看不卡|