Project 2.4.2. David Klein works for the City Office of Parking Services. His job is to collect the money from the parking meters in a section of the city, take a portion of it as his share, and turn in the rest to the Office of Parking Services. David's and the Office of Parking Services' shares of the collection are computed by using the following formula: 24% of the daily collection goes to David. 76% of the daily collection goes to the Office. Office of Parking Services requires David to submit a daily report with the following details: How many pennies, nickels, dimes and quarters were collected. How much the collection amounts to (floating point dollar value). How much money David gets (floating point dollars). How much money the Office of Parking Services gets. Adding up the values of the coins, doing the calculations by hand, and preparing the report every day seems to be a little too tedious to David, and he decides to use his personal system to do this part of the job everyday. He has asked you to write the necessary program to do the job. Your program should be written in such a way that David has only to execute your program everyday and when the system asks him to "Enter the number of pennies", to enter that number, and again when it asks him to "Enter the number of nickels", to enter that number and so on. The system should then write on the screen the information required to be in the report, in a clear readable format. Your program must contain sufficient explanatory comments, and your When the program works, use the following numbers as data and have the program prepare the report. Copy and paste the report to the end of the program and turn name. in your program and the output printed together. Number of pennies = 135 Number of nickels = 321 %3D Number of dimes = 573 Number of quarters = 857 %3D (The correct dollar value of this collection is $288.95.)

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter13: Decision Making Under Uncertainty
Section13.4: Decision Trees
Problem 5P
icon
Related questions
Question

Can someone answer this in c++ ( be as descriptive as possible)

 

Project 2.4.2. David Klein works for the City Office of Parking Services. His job is
to collect the money from the parking meters in a section of the city, take a portion of it
as his share, and turn in the rest to the Office of Parking Services. David's and the Office
of Parking Services' shares of the collection are computed by using the following
formula:
24% of the daily collection goes to David.
76% of the daily collection goes to the Office.
Office of Parking Services requires David to submit a daily report with the following
details:
How many pennies, nickels, dimes and quarters were collected.
How much the collection amounts to (floating point dollar value).
How much money David gets (floating point dollars).
How much money the Office of Parking Services gets.
Adding up the values of the coins, doing the calculations by hand, and preparing the
report every day seems to be a little too tedious to David, and he decides to use his
personal system to do this part of the job everyday. He has asked you to write the
necessary program to do the job.
Your program should be written in such a way that David has only to execute your
program everyday and when the system asks him to "Enter the number of pennies", to
enter that number, and again when it asks him to "Enter the number of nickels", to enter
that number and so on.
The system should then write on the screen the information
required to be in the report, in a clear readable format.
Your program must contain sufficient explanatory comments, and your
When the program works, use the following numbers as data and have the
program prepare the report. Copy and paste the report to the end of the program and turn
name.
in your program and the output printed together.
Number of pennies = 135
Number of nickels = 321
%3D
Number of dimes = 573
Number of quarters = 857
%3D
(The correct dollar value of this collection is $288.95.)
Transcribed Image Text:Project 2.4.2. David Klein works for the City Office of Parking Services. His job is to collect the money from the parking meters in a section of the city, take a portion of it as his share, and turn in the rest to the Office of Parking Services. David's and the Office of Parking Services' shares of the collection are computed by using the following formula: 24% of the daily collection goes to David. 76% of the daily collection goes to the Office. Office of Parking Services requires David to submit a daily report with the following details: How many pennies, nickels, dimes and quarters were collected. How much the collection amounts to (floating point dollar value). How much money David gets (floating point dollars). How much money the Office of Parking Services gets. Adding up the values of the coins, doing the calculations by hand, and preparing the report every day seems to be a little too tedious to David, and he decides to use his personal system to do this part of the job everyday. He has asked you to write the necessary program to do the job. Your program should be written in such a way that David has only to execute your program everyday and when the system asks him to "Enter the number of pennies", to enter that number, and again when it asks him to "Enter the number of nickels", to enter that number and so on. The system should then write on the screen the information required to be in the report, in a clear readable format. Your program must contain sufficient explanatory comments, and your When the program works, use the following numbers as data and have the program prepare the report. Copy and paste the report to the end of the program and turn name. in your program and the output printed together. Number of pennies = 135 Number of nickels = 321 %3D Number of dimes = 573 Number of quarters = 857 %3D (The correct dollar value of this collection is $288.95.)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Probability Problems
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole