1. Engineering
2. Mechanical Engineering
3. problem 1 6 points write a flow diagram for a...

# Question: problem 1 6 points write a flow diagram for a...

###### Question details

Problem 1 (6 Points) Write a flow diagram for a program that receives a number from a user and gives it a variable name. If the number is positive, subtract 1 from it. If the number is negative, add 1 to it. If the number is neither, then the number is 0 and remains the same.

Problem 2 (9 Points)

Body Mass Index (BMI) Calculator: Write a flow diagram for a program that receives a body weight (kg) and height (m) from the user then calculates the BMI with the following equation: 𝐵𝑀𝐼 = 𝑊 (𝑘𝑔) ℎ 2 (𝑚2) Then the program will take the calculated BMI and display one of the following outputs: Display Normal if 18.5 ≤ BMI < 25 Display Overweight if 25 ≤ BMI < 30 Display Obese if BMI ≥ 30

Problem 3 (12 Points)

A ball starts at a height h0 above the surface of the Earth with a vertical initial velocity v0. The position and velocity as a function of the time will be given by the equations: ℎ(𝑡) = 1 2 𝑔𝑡 2 + 𝑣0𝑡 + ℎ0 𝑣(𝑡) = 𝑔𝑡 + 𝑣0 Where g is the acceleration due to gravity (-9.81 m/s2 ), h is the height above the ground, and v is the vertical component of the velocity.

###### Solution by an expert tutor 