Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started