Computers and Technology

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]);

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 18:30, dnjames01
Given the following code: if (n == 2) { k -= 2; } else if (n == 3) { k -= 3; } can be rewritten as: if (< condition > ) { < assignment statement > ; } assume that evaluating < condition > does not change the values stored in n and k. which of the following could be used as < assignment statement > ? k -= n; k -= 1; k -= 2; k += n; k = n - k;
Answers: 2
image
Computers and Technology, 22.06.2019 01:40, genyjoannerubiera
Kali, a python programmer, is using the turtle module to write the word β€œhello.” which code should she use to indicate the location to begin writing the word? a # pick up the turtle and move it to its starting location. b penup(-100, 200) goto() pendown() c penup() goto(-100, 200) pendown() d # pick up the turtle and move it to (-100, 200)
Answers: 2
image
Computers and Technology, 22.06.2019 11:00, Lacey9319
The editing of digital photos us about the same level of difficulty as editing an analog photo
Answers: 2
image
Computers and Technology, 22.06.2019 12:40, dkjfghdjk
In a response of approximately 50 words, explain why it would be essential for the successful a/v technician to participate in additional coursework, presentations and seminars offered by equipment manufacturers as well as annual conferences attended by colleagues in the industry.
Answers: 1
Do you know the correct answer?
The machine should dispense ANY types of cheese, in half-pound packages. Your program will STILL do...

Questions in other subjects:

Konu
Mathematics, 02.11.2020 06:20
Konu
Arts, 02.11.2020 06:30
Konu
Chemistry, 02.11.2020 06:30