日韩精品一区二区三区高清_久久国产热这里只有精品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
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    仿真分析咨詢外包服務-結構 / 熱 / CFD流體 / 電磁 / 光學CAE代做
    仿真分析咨詢外包服務-結構 / 熱 / CFD流體
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
  • 豆包網頁版入口 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>
        日韩三级视频在线| 国产成人精品999| 欧美日韩高清一区二区不卡| 国产农村妇女精品一二区| 欧美日韩三级视频| 亚洲午夜av| 日韩.欧美.亚洲| 刘玥91精选国产在线观看| 日韩精品视频在线看| 黄色资源在线观看| 91精品国产91久久久久久不卡| 中文字幕 亚洲视频| av三级在线观看| 五月天久久比比资源色| 国产一区深夜福利| 中文字幕乱码在线| 国内国产区免费视频| 日韩美女中文字幕| 91精品国产91久久久久久久久| 国产不卡在线观看视频| 精品国内自产拍在线视频| 亚洲乱码一区av黑人高潮| 亚洲免费福利视频| 中文字幕狠狠干| 久久视频在线免费观看| 亚洲高清视频一区| 欧美日韩国产在线看| 日韩精品在线第一页| 免费在线亚洲| 一本一道综合狠狠老| 欧美在线亚洲一区| 国产欧美日韩在线观看| 日韩精品在线免费看| 日本国产在线视频| 国产一级免费看| 国产裸体歌舞团一区二区| 欧美 日韩 国产 高清| 国产成人一二三区| 99久热re在线精彩视频| 日韩欧美高清在线视频| 最近中文av字幕在线中文| 日本啊v在线| 久本草在线中文字幕亚洲欧美| 国产高清精品在线观看| 欧美不卡一二三| 国产成人精品三级| 日韩在线观看a| 婷婷中文字幕在线观看| 日本亚洲欧美天堂免费| 欧美日韩国产影片| 日韩欧美不卡在线| 一本一道久久a久久精品综合蜜臀| 在线不卡日本| 欧美一级搡bbbb搡bbbb| 国产 欧美在线| 欧美日韩国产不卡在线看| 一区二区在线看| 久久精品免费在线观看| 精品一性一色一乱农村| 国产成人精品免费网站| 午夜私人影院在线观看| 欧美三级在线看| 精品一性一色一乱农村| 国产黄色片中文字幕| 欧美三级在线播放| a天堂中文在线官网在线| 中文字幕在线观看亚洲| 国产福利一区二区精品秒拍| 国产婷婷色一区二区三区在线| 色综合天天综合网国产成人综合天| av一区二区高清| 日韩精品中文在线观看| 国产福利在线导航| 亚洲一区中文在线| 欧美在线日韩在线| 日韩一级免费视频| 久久夜色精品国产欧美乱极品| 日韩欧美中文视频| 亚洲国产综合久久| 中文字幕一区免费| 日韩欧美中文字幕一区| 日韩亚洲不卡在线| 欧美日韩国产免费观看| 国产欧美久久久久久久久| 日韩精品一区二区三区视频播放| 欧美日韩中文字幕| 国产欧美日韩第一页| 不卡视频一区二区| 国产卡1卡2卡三卡在线| 亚洲欧美中文字幕| 日韩在线精品视频| 久久精品一级爱片| 交视频在线观看国产| 欧美日韩一区二区在线视频| 91精品国产自产在线观看永久∴| 日韩欧美国产综合| 日韩三级一区| 国产欧美日韩在线看| www中文字幕| aaa大片在线观看| 精品999视频| 亚洲综合在线视频| 91久久久精品国产| 亚洲.国产.中文慕字在线| 亚洲一卡二卡在线观看| 一级一片免费视频| 亚洲福利精品视频| 精品婷婷伊人一区三区三| 日韩精品国产欧美| 国产婷婷一区二区| 日韩影院二区| 欧美片网站免费| 国产小视频在线观看免费| 欧洲精品二区| 国产欧美日韩在线看| 中文字幕在线看视频国产欧美| 亚洲女人天堂色在线7777| 国产婷婷色一区二区三区在线| 精品国自产在线观看| 91精品婷婷国产综合久久| 精品色蜜蜜精品视频在线观看| 日韩不卡高清视频| 欧美日韩国产综合视频在线观看| 日本不卡免费高清视频| 色偷偷一区二区三区| 亚洲综合在线中文字幕| 国产三级视频网站| 又黄又www的网站| 国产传媒久久久| 国产成人综合精品| 一区二区三区在线播放视频| 本道综合精品| 久草视频观看| 亚洲综合在线不卡| 久久电影国产免费久久电影| 亚洲一级网站| 国产视频三级在线观看播放| 国产超级va在线视频| 亚洲大片精品永久免费| 日韩中文字幕视频在线观看| 中文字幕最新精品| 一区二区三区精品久久久| 亚洲区中文字幕| 国产亚洲欧美中文| 欧美日韩国产在线观看| 色偷偷一区二区三区| 国产卡1卡2卡三卡在线| 久久精品网站免费观看| 日本熟女一区二区| 亚洲第一网中文字幕| 国产欧美日韩视频在线| 99pao成人国产永久免费视频| 亚洲黄色片在线观看| 久久精品国产2020观看福利| 国产黄色网页| 91极品视频在线观看| 天堂在线一区二区三区| 中文字幕亚洲乱码| 中文字幕国产在线| 欧美日韩国产在线看| 中文精品电影| 欧美日韩乱国产| 黄色一区二区在线观看| 日韩av不卡在线观看|