The Freemont Automobile Factory has set a goal that each worker will eventually produce 10,000 parts per month. The company has discovered that the longer a worker has been on the job, the more parts the worker can produce. Write an application called IncreasedProduction that prompts for the number of parts a worker currently produces. Then compute and display a worker’s anticipated output each month for 24 months, assuming the worker’s production increases by 6 percent each month. Also display a message that shows the month number in which production exceeds 10,000 parts (The month in which production exceeds 10000.0 is

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

 

The Freemont Automobile Factory has set a goal that each worker will eventually produce 10,000 parts per month. The company has discovered that the longer a worker has been on the job, the more parts the worker can produce.

Write an application called IncreasedProduction that prompts for the number of parts a worker currently produces. Then compute and display a worker’s anticipated output each month for 24 months, assuming the worker’s production increases by 6 percent each month. Also display a message that shows the month number in which production exceeds 10,000 parts (The month in which production exceeds 10000.0 is month #) or a message indicating that the worker will not reach the goal within 24 months (This worker will not reach 10000.0 in 24 months).

An example of the program is shown below:

Enter worker's current production level >> 973 Month 1 Predicted production is 1031.38 Month 2 Predicted production is 1093.2628000000002 Month 3 Predicted production is 1158.858568 Month 4 Predicted production is 1228.3900820800002 Month 5 Predicted production is 1302.0934870048002 Month 6 Predicted production is 1380.2190962250882 Month 7 Predicted production is 1463.0322419985935 Month 8 Predicted production is 1550.8141765185092 Month 9 Predicted production is 1643.8630271096197 Month 10 Predicted production is 1742.4948087361968 Month 11 Predicted production is 1847.0444972603686 Month 12 Predicted production is 1957.8671670959907 Month 13 Predicted production is 2075.33919712175 Month 14 Predicted production is 2199.8595489490554 Month 15 Predicted production is 2331.8511218859985 Month 16 Predicted production is 2471.7621891991585 Month 17 Predicted production is 2620.067920551108 Month 18 Predicted production is 2777.271995784174 Month 19 Predicted production is 2943.9083155312246 Month 20 Predicted production is 3120.5428144630982 Month 21 Predicted production is 3307.7753833308843 Month 22 Predicted production is 3506.2419063307375 Month 23 Predicted production is 3716.6164207105817 Month 24 Predicted production is 3939.6134059532164 This worker will not reach 10000.0 in 24 months

Task 01: Create the IncreasedProduction class.

Task 02: The IncreasedProduction program displays the production level for 24 months with a 6% month-over-month increase.

Task 03: The IncreasedProduction program determines the month where the production level exceed 10,000

 

 

Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Returning value from Function
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education