Question: 2 - The production process in a polyester factory is carried out separately on weekdays and weekends. Follow the instructions and write the flow chart

2- The production process in a polyester factory is carried out separately on weekdays and weekends. Follow the instructions and write the flow chart of a program that finds how many days the production lines will work according to the demand from the customer. (50 pts.)
There are three production lines in the factory, L1, L2, L3. The production capacity of L1, L2 and L3 bands is 100,200 and 300, respectively.
On the weekends, the production capacity of the production lines is halved (becomes half).
The order quantity of the product will be entered from the keyboard.
The production line will be selected by user. If the user enters a wrong line number, for example "L4", the program must throw an error.
When the calculation of the production day is finished, the user will be informed.
Here are some tips while you are creating your chart:
Specify min 4 variables (such as Qty, Total etc.)
Use modulus operation when calculating the total. (For the 6th and the 7th days.)
Do not forget to increase the day for each step.
Sample screen outputs are shown below.
\table[[Sample Screen for L1:,\table[[Enter the order quantity?: 1000],[Which band do you choose?:L1],[An order of 1000 pcs can be produced in 11 days]]],[Sample Screen for L2:,\table[[Enter the order quantity?: 1000],[Which band do you choose?:L2],[An order of 1000 pcs can be produced in 5 days]]],[Sample Screen for L3:,\table[[Enter the order quantity?: 1000],[Which band do you choose?:L3],[An order of 1800 pcs can be produced in 4 days]]]]
2 - The production process in a polyester factory

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!