Conveyor belt capacity check

Contents

Conveyor belt capacity check#

Problem#

https://upload.wikimedia.org/wikipedia/commons/5/5f/Belt-conveyor-handling2.jpg

Fig. 9 A conveyor belt
Public domain. By Chris_moden (talk) (Uploads). Source: Wikimedia Commons
#

You are going to help automation engineers in your company to determine whether a conveyor belt system can safely transport a collection of packages.

The system can be supported by any number of motors. Every motor is able to carry 5.6 kg of package weight.

Prompt the user for the number of motors by asking:

> How many motors are carrying the packages?

Then, prompt the user for the weight of packages:

How many kg of packages do we expect?

Do not forget to convert the input values to numeric types.

If the total package weight divided by the number of motors is less or equal than 5.6 (including), then print:

Yes! The conveyor belt can carry the packages.

Otherwise:

No. The conveyor belt cannot carry the packages.

Samples:

How many motors are carrying the packages? 3
How many kg of packages do we expect? 10
Yes! The conveyor belt can carry the packages.
How many motors are carrying the packages? 2
How many kg of packages do we expect? 20.4
No. The conveyor belt cannot carry the packages.

Activity 4

Draw a flowchart for this problem.

Steps:

  1. 1 min What is the input and output to/from our program? (Think 10 seconds and then discuss with your partner)

  2. We review

  3. 1 min Identify the operations and decisions you need to solve this problem. (ditto)

  4. We review

  5. 3 min Start drawing

  6. 2 min compare your result with your partner

Activity 5

Start sketching the program, but you are not expected to finish it. Rather answer the question: Which C# programming components can we use from our existing knowledge, what do we need to know?

Steps:

  1. 3 min work individually

You will later complete this problem.