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 10:00
Which of the following is true of operations within a spreadsheet program’s built-in functions? a. operations within parentheses, then multiplication and division, and then addition and subtraction are computed. b. operations within parentheses, then addition and subtraction, and then multiplication and division are computed. c. multiplication and division, then addition and subtraction, and then operations within parentheses are computed. d. addition and subtraction, then multiplication and division, and then operations within parentheses are computed
Answers: 2
question
Computers and Technology, 22.06.2019 22:50
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
question
Computers and Technology, 23.06.2019 22:20
Read “suburban homes construction project” at the end of chapters 8 and 9 (in the textbook) and then develop a wbs (work breakdown structure) in microsoft excel or in microsoft word (using tables)
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
Match the sentence fragment in the first column with the appropriate ending in the second column. a little per favore?
Answers: 1
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, 16.07.2019 17:00
Questions on the website: 13722359