subject

The machine should dispense ANY types of cheese, in half-pound packages. Your program will STILL do the following: A. List all the cheese types available and the prices B. Asks the user how many pounds of each type of cheese to purchase in 0.5 lb increments. C. Calculate Original Sub Total (price*amount of each cheese added together) D. Calculate discounts based on how many pounds for Humboldt Fog and Red Hawk cheeses the user entered, as well as the total purchase amount o See Discount Calculation below for details E. Ask the user if they would like to see a list of what they purchased o If yes, a list comes up showing how much of each type of cheese they bought and the cost of each cheese. Display only the cheese they actually bought o If no items are purchased, then display a message stating the same (see Sample Run 4) o If the user answers no, then no itemized information is displayed F. Display Original Sub Total, Specials and New Sub Total, Additional Discount and Final Total as shown in the Sample Runs below (see Discount Calculation below to see how these are calculated). Note, you must use printf to format your output [cf. Section 9.3 in zyBooks]. For instance, you will use the following print statement to print costs of individual items in your itemized list: System. out. printf("%.1f lb of %s @ $%.2f = $%.2f\n", amounts[i], names[i], prices[i], prices[i]*amounts[i]);

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:50
Before you enter an intersection on a green light make sure
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Which task uses a simple parameter?
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
The keyboard usually has six rows of keys. which of the following is not one of the key group categories? letter keys number keys control keys graphic keys
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
Match the following errors with their definitions. a. #name b. #value c. #ref d. 1. when a formula produces output that is too lengthy to fit in the spreadsheet cell 2. when you enter an invalid cell reference in a formula 3. when you type text in cells that accept numeric data 4. when you type in a cell reference that doesn’t exist
Answers: 1
You know the right answer?
The machine should dispense ANY types of cheese, in half-pound packages. Your program will STILL do...
Questions
question
Mathematics, 24.06.2019 12:00
Questions on the website: 13722360