Prompts the user to enter the total amount of milk produced


Assignment

Please submit each Assignment assignment with only two files for grading.

a .cpp file of your C++ program design (source code)
a .docx file of its program's successful execution output in Word format

Assignment 1:

A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one liter of milk is $0.38, and the profit of each carton of milk is $0.27.

Write a program that does the following:

a.Prompts the user to enter the total amount of milk produced in the morning.
b.Outputs the number of milk cartons needed to hold milk. (Round your answer to the nearest integer.)
c.Outputs the cost of producing milk.
d.Outputs the profit for producing milk

Assignment 2:

You found an exciting summer job for five weeks. It pays, say, $15.50 per hour. Suppose that the total tax you pay on your summer job income is 14%. After paying the taxes, you spend 10% of your net income to buy new clothes and other accessories for the next school year and 1% to buy school supplies. After buying clothes and school supplies, you use 25% of the remaining money to buy savings bonds. For each dollar you spend to buy savings bonds, your parents spend $0.50 to buy additional savings bonds for you.

Write a program that prompts the user to enter the pay rate for an hour and the number of hours you worked each week.

The program then outputs the following:

a.Your income before and after taxes from your summer job.
b.The money you spend on clothes and other accessories.
c.The money you spend on school supplies.
d.The money you spend to buy savings bonds.
e.The money your parents spend to buy additional savings bonds for you.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Prompts the user to enter the total amount of milk produced
Reference No:- TGS01660920

Now Priced at $30 (50% Discount)

Recommended (98%)

Rated (4.3/5)