Question: C++ question, please answer in the format of a beginner in order to make it easier to understand! Thank, explain very throughly 1) 30 points]

C++ question, please answer in the format of a beginner in order to make it easier to understand!

Thank, explain very throughly

C++ question, please answer in the format of a beginner in order

to make it easier to understand! Thank, explain very throughly 1) 30

1) 30 points] You've been hired by Milk Lovers Grocery Store to write software to calculate and display the cost to a customer of buying milk. Write a C+ program similar to Hwk03 to prompt for and read the following information from a clerk: Milk type (str -the type ofmilk purchased by the customer. The clerk only needs to enter a single-character code. You will need an if statement to determine which milk type the customer is buying. Use this table for the cost of each type: Milk code Milk type Cost per gallon Whole w or W $4.00 t or T $3.00 S or S Skim Number of gallons (int) the number of gallons of milk purchased by the customer. Output the following, one per line, with the label in one column and the value in another column: The two inputs (milk type should be spelled out The cost of a gallon ofmilk The cost of the milk nurchase (cost ner gallon k number of gallons)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!