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

        代寫CS170編程、代做Java程序設(shè)計

        時間:2023-11-14  來源:合肥網(wǎng)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

        掃一掃在手機(jī)打開當(dāng)前頁
      1. 上一篇:代寫Implementation of Graph Algorithms
      2. 下一篇:代寫INFS 2042 Data Structures
      3. 無相關(guān)信息
        合肥生活資訊

        合肥圖文信息
        出評 開團(tuán)工具
        出評 開團(tuán)工具
        挖掘機(jī)濾芯提升發(fā)動機(jī)性能
        挖掘機(jī)濾芯提升發(fā)動機(jī)性能
        戴納斯帝壁掛爐全國售后服務(wù)電話24小時官網(wǎng)400(全國服務(wù)熱線)
        戴納斯帝壁掛爐全國售后服務(wù)電話24小時官網(wǎng)
        菲斯曼壁掛爐全國統(tǒng)一400售后維修服務(wù)電話24小時服務(wù)熱線
        菲斯曼壁掛爐全國統(tǒng)一400售后維修服務(wù)電話2
        美的熱水器售后服務(wù)技術(shù)咨詢電話全國24小時客服熱線
        美的熱水器售后服務(wù)技術(shù)咨詢電話全國24小時
        海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
        海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
        合肥機(jī)場巴士4號線
        合肥機(jī)場巴士4號線
        合肥機(jī)場巴士3號線
        合肥機(jī)場巴士3號線
      4. 短信驗證碼 酒店vi設(shè)計

        国产亚洲精品免费| 无码国产精品一区二区免费| 国产福利电影一区二区三区久久久久成人精品综合 | 国产大片91精品免费观看男同| 97精品久久天干天天天按摩| 99热这里只/这里有精品| 亚洲国产精品无码专区在线观看| 成人区精品一区二区不卡| 西瓜精品国产自在现线| 久久国产日韩精华液的功效| 国产伦精品一区二区三区免.费| 国产精品99久久99久久久动漫| 99久久免费国产精品特黄| 国产精品久久永久免费| 亚洲精品国产成人| 67194老司机精品午夜| 久久九九精品99国产精品| 人妻少妇乱子伦精品| 无码日韩精品一区二区三区免费| 久久精品影院永久网址| 亚洲国产精品VA在线观看麻豆| 91精品国产综合久久精品| 久久久久成人精品无码| 国产精品亚洲mnbav网站| 国产69精品久久久久99尤物| www国产亚洲精品久久久日本 | 国产色无码精品视频免费| 国产亚洲色婷婷久久99精品91| 北条麻妃久久99精品| 国产在线精品福利大全| 日韩精品在线观看| 精品无人区麻豆乱码1区2区 | 91麻豆精品国产91久久久久久| 久久99国产综合精品女同| 99re6热视频精品免费观看| 精品无码一区二区三区亚洲桃色| 亚洲自偷精品视频自拍| 四虎国产精品永久在线播放| 青娱分类视频精品免费2| 久久精品国产亚洲AV| 欧洲精品码一区二区三区|