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
Blurred Solution
This question has been solved
Subscribe to see this solution