subject
Computers and Technology, 23.09.2021 07:10 poohnia

Original Problem - Level O Compute BMI In order to compute the BMI, we need to get inputs from the user for weight (in pounds) and height (in feet). Subproblems - Level 1 Get Height Get Weight We also need to convert the height in feet to inches, calculate the BMI based on given user inputs, and display the BMI. Converting height in feet to inches is really a detailed subproblem of calculating the BMI, so it should be placed in level 2 of the chart. Subproblems - Level 1 Cont. Display BMI Calculate BMI Detailed subproblems - Level 2 Convert feet to inches The complete structure chart with data flow information is listed below: Compute BMI (1) (2) (3) +1 (4) (5) Get Weight Get Height Calculate BMI Display BMI (7) (6) Convert feet to Data flow: inches (1) Weight in pounds (2) Height in feet (3) Weight in pounds, Height in feet (4) BMI (5) BMI (6) Height in feet (7) Height in inches Problem Constant G 32.17 /* gravitational constant */ Problem Inputs double theta /* angle (radians) of elevation */ double distance /* distance (ft) to target */ double velocity /* projectile velocity (ft/sec) */ Problem Outputs double time /* time (sec) of flight */ double height /* height of impact */ Relevant Formulas time = (distance) / (velocity * cos(theta)) /* make sure to include math. h to use cos () and sin ( */ height = velocity * sin(theta) * time - ((G * time^2)/2) Define functions where appropriate. Recall, building a structure chart is a good way of determining appropriate functions for a problem. Your TA should help guide you with this! 3. Once again, for this problem create three files. Two .c files and one .h file. Write a program that first prompts the user for the scores received on two exams, two labs, and two projects. Note: you should only need to implement one function to get the scores from the user. However, this function will be called six times (once for each score needed). The program must then compute separate averages for the exams, labs, and projects. Note: you should only need to implement one function to compute the average. However, this function will be called three times (once for exams, once for labs, and once for projects). Next, your program must weight the averages according to the following: a. Each exam is worth 30%
b. Each lab is worth 5%
c. Each project is worth 15% Display the weighted average (out of 100%) to the screen. Define functions where appropriate!

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:30
What are the steps involved in accepting all the changes in a document? arrange these in order click edit. click accept or reject. click changes. click accept all.
Answers: 1
question
Computers and Technology, 22.06.2019 15:20
This os integrated the processing power of windows nt with the easy-to-use gui of windows 98. windows 2000 windows 3.11 windows for workgroups windowa millennium edition
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
In a compound condition, both conditions on either side of the logical operator and must be true for the overall condition to be true. a: true b: false
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
Kirk found a local community college with a two-year program and he is comparing the cost with that of an out-of-state two-year school. what is the expected total cost for one year at the local community college if kirk lives at home? what is the expected total cost for one year at the out-of-state school if kirk lives on campus?
Answers: 2
You know the right answer?
Original Problem - Level O Compute BMI In order to compute the BMI, we need to get inputs from the u...
Questions
question
English, 16.02.2021 19:50
question
Mathematics, 16.02.2021 19:50
question
Mathematics, 16.02.2021 19:50
question
Mathematics, 16.02.2021 19:50
question
Biology, 16.02.2021 19:50
question
Arts, 16.02.2021 19:50
Questions on the website: 13722363