Create a program that simulates purchasing items from an online store. The program must include the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a program that simulates purchasing items from an online store. The program must include the following. 1. Include comments with your name, the date, and the purpose of your program at the start of the program. 2. Include the name of your store and a greeting for your customer. 3. Prompt the user to select three items. 4. Display the price for each item. (You decide the prices for each item and code them into your program. For example, the first item would always be $3.50.) 5. Prompt the user to enter how many of each item they would like to buy. 6. Display each item's name and its total. 7. Display the grand total for the purchases, including tax. You may choose the tax rate. a. Tax can be calculated by adding up the items and multiplying the total by the tax rate. b. Total can be calculated by adding the tax to the total value of the items. To round the total to two decimal places, you may use the following calculation: Math.round(number*100)/ 100; Where number is a numerical value or a variable Example: let total = 35.505544; let roundedTotal = Math.round(total* 100) / 100; console.log(roundedTotal); Create a program that simulates purchasing items from an online store. The program must include the following. 1. Include comments with your name, the date, and the purpose of your program at the start of the program. 2. Include the name of your store and a greeting for your customer. 3. Prompt the user to select three items. 4. Display the price for each item. (You decide the prices for each item and code them into your program. For example, the first item would always be $3.50.) 5. Prompt the user to enter how many of each item they would like to buy. 6. Display each item's name and its total. 7. Display the grand total for the purchases, including tax. You may choose the tax rate. a. Tax can be calculated by adding up the items and multiplying the total by the tax rate. b. Total can be calculated by adding the tax to the total value of the items. To round the total to two decimal places, you may use the following calculation: Math.round(number*100)/ 100; Where number is a numerical value or a variable Example: let total = 35.505544; let roundedTotal = Math.round(total* 100) / 100; console.log(roundedTotal);
Expert Answer:
Related Book For
Posted Date:
Students also viewed these algorithms questions
-
In a Hopfield neural network configured as an associative memory, with all of its weights trained and fixed, what three possible behaviours may occur over time in configuration space as the net...
-
Consider the trigonometric series a0 2 + X r=1 (ar cos rx + br sin rx) where a0, a1, a2, . . . and b1, b2, . . . are constants and suppose that f(x) is a periodic function of x with period 2. (a)...
-
The first quarter of 2008 had not yet ended and Steve Savage already knew the company would surpass the projected $22 million in revenues for the year. He and the management team had doubled sales...
-
Draw the demand curve Q = 250 10P. Calculate the price elasticity of demand at prices of $5, $10, and $15 to show how it changes as you move along this linear demand curve.
-
Repeat Problem 11 using the same data, but assuming that the bond makes its coupon payments annually. Why are the yields you compute lower in this case?
-
Where is the place of UML in the process of software development?
-
The trial balance columns of the worksheet for Firmament Roofing, Ltd. at March 31, 2017, are as follows. Other data: 1. A physical count reveals only 550 of roofing supplies on hand. 2. Depreciation...
-
3. Suppose a local post office requires the following number of workers on the different days of the week. Day Number of Day workers Number of workers Mon 11 Fri 20 Tue 12 Sat Wed Thu 13 14 Sun 10 10...
-
Write a paper on Financial Risk Management in Mobile Phone Industry in UK
-
Explain a role you filled as a group or team member. How did you come to choose this field? answer should be base on supply chain field and currently working in manufacture.
-
On April 1 , Jiro Nozomi created a new travel agency, Adventure Travel. The following transactions occurred during the company s first month. April 2 Nozomi invested $ 4 1 , 0 0 0 cash and computer...
-
Maria Miller is a licensed CPA. During the first month of operations of her business, Maria Miller. Inc, the following events and transactions occurred. May 1 ?Stockholders invested $ 2 0 , 0 0 0...
-
A firm is employing 25 workers ( units of capital ( r = $20/hour). At these levels, the marginal product of labor ( W = $10/hour) and 5 MP ) is 25 and the marginal product of capital ( MP R) is 30....
-
7. A T-bill quote sheet has 90-day T-bill quotes with a 4.92% bid and a 4.86% ask. If the bill has a $10,000 face value, an investor could buy this bill for the following price is true or false?...
-
Play the role of this HR person at a university. List the issues you think should be addressed in a code of ethics. Other than a code of ethics, what other elements would you unclean ethics program?...
-
What are current assets and current liabilities? How are they different from non-current assets and non-current liabilities?
-
When you open a file for the purpose of saving a pickled object to it, what file access mode do you use?
-
Which built-in function can be used to read input that has been typed on the keyboard? a. Input() b. Get_input() c. Read_input() d. Keyboard()
-
The month of February normally has 28 days. But if it is a leap year, February has 29 days. Write a program that asks the user to enter a year. The program should then display the number of days in...
-
Christian Dior S.A. is a successful family business with its famous fashion and perfume brands. Its latest effort in growing the business involves opening a series of international outlets to...
-
A group of retired engineering professors from Singapore Polytechnic has decided to form a small manufacturing firm that will produce a full line of automation equipment. The investors have proposed...
-
Footwear, Inc. manufactures a complete line of mens and womens formal shoes for independent merchants. The average selling price of its finished product is \($85\) per pair. The variable cost for...
Study smarter with the SolutionInn App