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, 21.06.2019 22:50
Before you enter an intersection on a green light make sure
Answers: 2
question
Computers and Technology, 22.06.2019 11:30
Hassan is writing his master’s thesis, which is a thirty-page document. he received some feedback from his professor in the form of comments, but does not see where the comments are. what is the fastest way for hassan to find the feedback?
Answers: 3
question
Computers and Technology, 22.06.2019 19:40
Solve the following javafx application: write a javafx application that analyzes a word. the user would type the word in a text field, and the application provides three buttons for the following: - one button, when clicked, displays the length of the word.- another button, when clicked, displays the number of vowels in the word.- another button, when clicked, displays the number of uppercase letters in the word(use the gridpane or hbox and vbox to organize the gui controls).
Answers: 1
question
Computers and Technology, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
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
Mathematics, 25.09.2019 03:10
Questions on the website: 13722367