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

          欧美激情视频一区二区三区免费 | 亚洲永久在线| 国产热re99久久6国产精品| 性色一区二区三区| 99riav国产精品| 激情文学综合丁香| 国产精品久久久久久久久久尿| 久久永久免费| 欧美一区激情| 亚洲五月婷婷| 亚洲精品日本| 在线观看日韩一区| 国产亚洲一区二区三区| 欧美天堂亚洲电影院在线播放| 久久久美女艺术照精彩视频福利播放 | 国产精品美女主播| 欧美伦理影院| 美女视频一区免费观看| 欧美综合二区| 欧美一区中文字幕| 午夜亚洲视频| 西西人体一区二区| 亚洲欧美精品在线| 亚洲一区二区三区高清| 一区二区三区国产精品| 日韩视频一区二区在线观看| 亚洲欧洲精品一区二区精品久久久| 国产一区久久| 国内精品久久久久久| 国产农村妇女毛片精品久久麻豆 | 99在线热播精品免费99热| 亚洲国产精品视频一区| 亚洲激情午夜| 日韩视频免费在线| 亚洲图色在线| 欧美一级网站| 久久国产精品99精品国产| 亚洲欧美综合v| 欧美一区二区成人| 久久久久久久久久久成人| 久久精品国产免费看久久精品| 午夜欧美精品| 久久躁狠狠躁夜夜爽| 免费av成人在线| 欧美日韩另类丝袜其他| 国产精品高精视频免费| 国产午夜精品在线| 亚洲大胆视频| 在线亚洲一区二区| 香蕉成人伊视频在线观看| 久久人人精品| 欧美日韩国产三区| 国产麻豆精品视频| 亚洲国产高清在线| 亚洲深夜福利| 久久亚洲综合色| 欧美乱妇高清无乱码| 国产欧美精品va在线观看| 亚洲第一天堂av| 亚洲欧美日韩国产成人精品影院| 久久婷婷激情| 欧美午夜寂寞影院| 在线免费观看一区二区三区| 99这里有精品| 久久综合久久综合这里只有精品| 欧美精品免费播放| 国产综合自拍| 亚洲一区二区欧美| 免费日本视频一区| 国产日本欧美视频| 亚洲图片你懂的| 奶水喷射视频一区| 国产亚洲福利社区一区| 一本一本久久a久久精品牛牛影视| 久久国产婷婷国产香蕉| 欧美香蕉视频| 日韩午夜在线电影| 免费试看一区| 韩日精品在线| 亚洲欧美日韩系列| 欧美黑人在线观看| 亚洲国产一成人久久精品| 香蕉精品999视频一区二区| 欧美激情一区二区三区在线视频 | 国产精品免费一区豆花| 亚洲精品无人区| 欧美99在线视频观看| 韩国女主播一区| 性欧美大战久久久久久久免费观看| 欧美精品激情blacked18| 在线播放精品| 久久免费午夜影院| 黄色在线成人| 久久久久久久网站| 激情综合视频| 久久综合九色九九| 亚洲国产婷婷| 欧美片第1页综合| 日韩亚洲综合在线| 欧美精品免费在线观看| 亚洲国产一区二区三区在线播| 看欧美日韩国产| 亚洲国产精品久久久久| 免费在线观看精品| 亚洲国产精品一区在线观看不卡 | 国产亚洲精品久久久久婷婷瑜伽| 性视频1819p久久| 狠狠色丁香久久婷婷综合_中| 欧美在线一级va免费观看| 国产一区二区三区四区| 另类成人小视频在线| 亚洲欧洲一区二区天堂久久 | 亚洲精品国偷自产在线99热| 欧美福利影院| 亚洲一区二区欧美日韩| 国产日韩欧美亚洲一区| 久久视频精品在线| 一区二区三区不卡视频在线观看 | 一区二区免费在线观看| 国产精品美女久久久久aⅴ国产馆| 亚洲欧美日韩国产中文在线| 国外成人网址| 欧美日韩网址| 久久成人免费| 亚洲精品免费看| 国产精品欧美久久| 久久综合中文字幕| 日韩视频三区| 国产一区二区三区无遮挡| 美腿丝袜亚洲色图| 亚洲一本视频| 亚洲国产精品国自产拍av秋霞| 欧美三级午夜理伦三级中视频| 欧美在线视频一区二区| 亚洲免费观看| 精品99一区二区三区| 欧美日韩精品一区二区| 久久国产高清| 一区二区三区日韩欧美精品| 国产在线精品二区| 欧美四级剧情无删版影片| 久久久亚洲午夜电影| 亚洲一区日韩| 亚洲精品一区二区三区不| 国产综合色产| 国产精品美女999| 欧美日产国产成人免费图片| 久久久999| 欧美一区二区三区在线看| 日韩视频在线免费观看| 一区二区三区在线观看欧美 | 国产精品porn| 欧美黄免费看| 久久频这里精品99香蕉| 欧美在线高清| 欧美伊久线香蕉线新在线| 一本色道久久综合亚洲精品小说| 亚洲成人在线观看视频| 国产综合自拍| 国产专区欧美专区| 国产视频综合在线| 国产久一道中文一区| 国产精品毛片a∨一区二区三区|国 | 一区二区三区久久久| 亚洲精品视频一区| 亚洲黄一区二区| 亚洲黄色大片| 亚洲精品久久在线| 最新中文字幕亚洲| 亚洲国产成人porn| 亚洲国产日韩一级| 亚洲国产欧美日韩另类综合| 在线日韩电影| 亚洲人成7777| aa亚洲婷婷| 亚洲无吗在线| 午夜精品区一区二区三| 欧美自拍偷拍| 美女网站久久| 欧美精品亚洲精品| 欧美午夜精品理论片a级大开眼界| 欧美午夜一区二区| 国产精品伊人日日| 精品成人一区| 亚洲美女毛片| 午夜久久电影网| 久久久久久穴| 欧美日本久久| 国产精品视频999| 影音先锋中文字幕一区| 亚洲日本aⅴ片在线观看香蕉| 一区二区三区日韩精品| 欧美伊人久久久久久久久影院| 久久久久久穴| 欧美午夜精品理论片a级大开眼界 欧美午夜精品理论片a级按摩 | 狠狠色狠狠色综合| 艳女tv在线观看国产一区| 午夜精品免费| 欧美精品一区二区三区蜜臀| 欧美小视频在线观看|