Prompts the user to enter the total amount of milk produced

Assignment Help C/C++ Programming
Reference no: EM131258076

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.

Reference no: EM131258076

Questions Cloud

Analyze the development of tort law from the concept : From the scenario, analyze the development of health care project management predicated on tort law. Ascertain the major ways in which tort law provides solutions to health care concerns, in light of the complexities of 21st Century health care ad..
Contrast the way in which syntax errors are treated : Contrast the way in which syntax errors are treated in compiled languages such as C++ and an interpreted language such as Java. Provide an example to support your response.
What is the break even quantity for the manual process : What is the break-even quantity for the manual process? -  What is the revenue at the break-even quantity for the manual process?
Examine the primary roles of progressive health care law : Analyze the transition of health care from the 18th Century leading up to the 21st Century. Evaluate the degree and quality of care established within 18th Century U.S. hospitals, as compared to the level of care seen in today's hospitals. Examine..
Prompts the user to enter the total amount of milk produced : Prompts the user to enter the total amount of milk produced in the morning. Outputs the number of milk cartons needed to hold milk. Outputs the cost of producing milk.
History of healthcare compliance : How has the history of healthcare compliance changed since its inception? Hint: Look at the ways in which penalties have increased in various ways.
Consider the role of technology : How would you handle the physical distribution of your product? Be sure to consider the role of technology in your discussion of 150-200 words
What is your break even point in dollars per month : What is your break-even point in dollars per month? - What is the expected number of meals each day if you are open 30 days a month?
Develop a finite difference scheme for solving this equation : Consider a third-order ODE of the form d3 y/dx3 = F(x, y, dy/dx). Develop a finite difference scheme for solving this equation if y = A at x = a; y = B at x = b; and dy/dx = C at x = a. Assume that F is a linear function in the dependent variable ..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd