need help with an assignment

Fluid flowing through a pipe can flow in a smooth, constant manner called laminar flow; in a chaotic manner called turbulent flow; or in an intermediate stage between smooth and turbulent called transitional flow. In practice, a value known as the Reynolds number can be used to determine the type of flow. For a Reynolds number below 2000, the flow is laminar, and for a Reynolds number above 3000, the flow is turbulent. For a Reynolds number between 2000 and 3000, the flow is transitional.

Write a C++ program that accepts a Reynolds number (data type integer) as user input and displays a message indicating the type of flow (laminar, turbulent, or transitional).
Implement the decision structure using an if-else chain.

Test each path through the decision structure by entering each of these values: 1855, 2239, and 3489.
Simple if statements, shouldn't take up to 10 lines of code. What are you given? What should the output be for a given input? Use the test values you are given and follow the decision structure.

What type of flow does the value 1855 correspond to?
What type of flow does the value 2239 correspond to?
...

After you answer this, then implement the code using the constraints given to arrive at a robust program.

if input is less than 2000, what kind of flow is this?
if input is greater than 3000, what kind of flow?
What about when it is between 2000 and 3000?
Topic archived. No new replies allowed.