Create an app that calculates the total amount based on the type of customer and subtotal...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create an app that calculates the total amount based on the type of customer and subtotal amount. • If the Customer type is R: • If the Subtotal is greater than or equal to 250, the Discount percent is 25%. . . . If the Subtotal is greater than or equal to 100 and less than 250, the Discount percent is 10%. • If the Subtotal is less than 100, the Discount percent is 0%. If the Customer type is C: • If the Subtotal is greater than or equal to 250, the Discount percent is 30%. • If the Subtotal is less than 250, the Discount percent is 20%. The program uses switch..case to chose the customer. • The program displays the discounted amount and the total. Allow the user to try again the application using a while loop. Here is a sample run: Sample: Enter customer type: R Enter subtotal: 150 Discount percent: 10% Discounted Amount: $15.00 Total: $135.00 Do you want to try again (yes/no): no Thanks for using the application... Create an app that calculates the total amount based on the type of customer and subtotal amount. • If the Customer type is R: • If the Subtotal is greater than or equal to 250, the Discount percent is 25%. . . . If the Subtotal is greater than or equal to 100 and less than 250, the Discount percent is 10%. • If the Subtotal is less than 100, the Discount percent is 0%. If the Customer type is C: • If the Subtotal is greater than or equal to 250, the Discount percent is 30%. • If the Subtotal is less than 250, the Discount percent is 20%. The program uses switch..case to chose the customer. • The program displays the discounted amount and the total. Allow the user to try again the application using a while loop. Here is a sample run: Sample: Enter customer type: R Enter subtotal: 150 Discount percent: 10% Discounted Amount: $15.00 Total: $135.00 Do you want to try again (yes/no): no Thanks for using the application...
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
(1) For the open-box structure below (a) find the shear flow in the webs and (b) draw the FBD showing the shear flow in the figure. (c) Find the shear center with respect to stringer #6. All the...
-
Modify the loop statement 1. Open the project named ch08_ex3_GuessingGame. 2. Open the Main class. Modify the loop that prompts the user for a number so that its an infinite while loop. When you do...
-
Googles ease of use and superior search results have propelled the search engine to its num- ber one status, ousting the early dominance of competitors such as WebCrawler and Infos- eek. Even later...
-
Why do joints tend to be evenly spaced rather than clustered?
-
An object is placed to the left of a concave mirror, beyond its focal point. In which direction will the image move when the object is moved farther to the left?
-
Target Corp. (TGT) operates retail stores throughout the United States and is a major competitor of Wal-Mart. The following data (in millions) were adapted from recent financial statements of Target....
-
Which of the following management theorists conducted the famous experiment at the Hawthorne Electric Plant in which employee productivity increased regardless of the type of intervention implemented...
-
Refer to the data in Exercise 8-29. Compute the costs of goods transferred out and the ending inventory using the weighted-average method.
-
Briefly describe and explain trend and seasonal variations in demand forecasting using examples
-
The Golden Oranges Nursery, which provides facilities for pre-school children on a commercial basis, is preparing its cash budget for next year. A profile of the estimated revenues and expenses for...
-
A 14.0 m length of wire consists of 7.0 m of copper followed by 7.0 m of aluminum, both of diameter 1.9 mm A voltage difference of 88 mV is placed across the composite wire. What is the total...
-
New Jersey Valve Company manufactured 7,800 units during January of a control valve used by milk processors in its Camden plant. Records indicated the following: Direct labor Direct material...
-
The statement from Jackson County Bank on December 31 showed a balance of $27,541. A comparison of the bank statement with the Cash account revealed the following facts. 1. The bank collected a note...
-
A man is running on a straight road perpendicular to a train track and away from the track at a speed of 11 m/s. The train is moving with a speed of 22 m/s with respect to the track. What is the...
-
Suppose the following information was taken from the 2025 financial statements of FedEx Corporation, a major global transportation/delivery company. (in millions) 2025 2024 Accounts receivable...
-
Kailina has a 150 pound box of red vines (68 kg) and Michelle wants them! One day, while over at Kailina's watching the Princess Collection on Disney+, when Kailina leaves the room to answer a phone...
-
approximate 2nd function [(1 + 1/3)^-3] using first four nonzero terms of the Maclaurin's series for g(x). calculate absolute error. [_ (x + 1) = (x)8 1
-
What is the amount of total interest dollars earned on a $5,000 deposit earning 6% for 20 years?
-
Purnell, Inc., has a semimonthly payroll of $53,900 on September 15. The total payroll is taxable under FICA TaxesHI; $50,400 is taxable under FICA TaxesOASDI; and $7,300 is taxable under FUTA and...
-
In Philadelphia, Pennsylvania, most workers are subject to three income taxes upon their earnings-federal, state, and city. Should an employer in Philadelphia record the liability for the withholding...
-
What is the purpose of Title XII advances?
-
If there are far fewer sugar growers than sugar consumers, a. the growers are likely to be more informed and influential on policy than voters. b. the consumers are likely to be more informed and...
-
Which of the following would tend to raise voter turnout? a. a blizzard or heavy rainstorm on election day b. an election that is expected to be a landslide c. the longer the wait is expected to be...
-
_________ and _________ account for roughly half of state and local government expenditures.
Study smarter with the SolutionInn App