Widget Factory
Design a class for a widget manufacturing plant. The class should have a method whose argument is the number of widgets that must be produced. The class should have another method that calculates how many days it will take to produce the number of widgets. (Assume that 10 widgets can be produced each hour. The plant operates two shifts of eight hours each per day.)
Demonstrate the class by writing a separate program that creates an instance of the class. The program should pass a number of widgets to the object and call the object’s method that displays the number of days it will take to produce that many widgets.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.