(5) Your program must have a comment block that explains what it does and who you...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
(5) Your program must have a comment block that explains what it does and who you are. Also insert comments that explain what each block of statements do. 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. ind 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. name. 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 in your program and the output printed together. Number of pennies = 135 Number of nickels = 321 Number of dimes = 573 Number of quarters = 857 und mi com aq (The correct dollar value of this collection is $288.95.) IDEA (CHSS rolered) (5) Your program must have a comment block that explains what it does and who you are. Also insert comments that explain what each block of statements do. 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. ind 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. name. 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 in your program and the output printed together. Number of pennies = 135 Number of nickels = 321 Number of dimes = 573 Number of quarters = 857 und mi com aq (The correct dollar value of this collection is $288.95.) IDEA (CHSS rolered)
Expert Answer:
Answer rating: 100% (QA)
Heres a simple Python program that calculates the daily collection report for David Klein including ... View the full answer
Related Book For
Organizational Behaviour Concepts Controversies Applications
ISBN: 978-0132310314
6th Canadian Edition
Authors: Nancy Langton, Stephen P. Robbins, Timothy A. Judge, Katherine Breward
Posted Date:
Students also viewed these programming questions
-
The 75th uniform cellar door is held in place by the hinges at A and B and the tension in rope CD. Hinge B does not support any axial thrust. Find the reaction A. Point D is in the xy plane. Z Given:...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
T-bills currently yield 3.9 percent. Stock in Nina Manufacturing is currently selling for $63 per share. There is no possibility that the stock will be worth less than $61 per share in one year. a....
-
The uniform beam of weight W1 is supported by the rope which is attached to the end of the beam, wraps over the rough peg, and is then connected to the block of weight W2. If the coefficient of...
-
In the realm of process intensification, what are the key strategies for enhancing the efficiency of reactive distillation systems, particularly in the context of intricate chemical reaction networks...
-
Football and Brain Size A recent study examined the relationship of football and concussions on hippocampus volume in the brain. The study included three groups with $n=25$ in each group: heathy...
-
Budget Tax Service, Inc prepares tax returns for small businesses. The cost of preparing 800 tax returns in the prior year was: Direct labor ............ $320,000 Variable overhead ..............
-
Define moral hazard. Does it apply only to consumers? If your demand for health care services is more or less elastic, will there be more or less (potential) moral hazard effect for a given...
-
Largeco pension plan begins investing in VC funds in 2006. They commit to a few new funds every year. They compute returns to their VC portfolio by adding the cash flows they receive and the reported...
-
What does it mean to "harden" a machine? What is one of the first tasks you would automate after installing several new clients? why was this task selected? How can the motd be used to create and...
-
Find the Laplace transform of each periodic function whose definition in one period is given. \(h(t)=\left\{\begin{array}{lll}t & \text { if } & 0
-
Wei Min opens a retirement account that pays 8 percent/year/month. For the next 30 years, he deposits $300 per month into it, with all deposits occurring at the end of the month. On the day of the...
-
How much will $10,000 amount to after 5 years if interest is 10 percent per year compounded continuously?
-
Using real-word examples, discuss the Phillips curve in terms of the trade-off between inflation and unemployment.
-
Calculate using the interest formula the factor (P|F 11.5%,37). Compare that to the result using Excels PV function.
-
Consider a system with a two-level cache having the followingcharacteristics: L1 cache has an access time of 1 clock cycle withan average hit rate of 95%; L2 cache has an access time of 5 clockcycles...
-
Design and describe an application-level protocol to be used between an automatic teller machine and a bank's centralized computer. Your protocol should allow a user 's card and password to be...
-
What are the advantages and disadvantages of conflict?
-
How might managers use the grapevine for their benefit?
-
Compare and contrast Maslows hierarchy theory of needs with Herzberg's motivation-hygiene (two-factor) theory.
-
The pocket of hot air appears to be a pool of water because A. Light reflects at the boundary between the hot and cool air. B. Its density is close to that of water. C. Light refracts at the boundary...
-
Which of these changes would allow you to get closer to the mirage before it vanishes? A. Making the pocket of hot air nearer in temperature to the air above it B. Looking for the mirage on a windy...
-
If you could clearly see the image of an object that was reflected by a mirage, the image would appear A. Magnified. B. With up and down reversed. C. Farther away than the object. D. With right and...
The Great Gold Silver And Crypto Rush Of The 21st Century 1st Edition - ISBN: 1947588028 - Free Book
Study smarter with the SolutionInn App