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!
Answers: 3
Computers and Technology, 23.06.2019 04:31, caseypearson377
Acloud service provider uses the internet to deliver a computing environment for developing, running, and managing software applications. which cloud service model does the provider offer? a. iaas b. caas c. maas d. paas e. saas
Answers: 1
Computers and Technology, 23.06.2019 23:30, jamalchris9353
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
Computers and Technology, 24.06.2019 00:30, lovemusic4
Setting up a home network using wireless connections is creating a a. vpn b. lan c. wan d. mini-internet
Answers: 2
Computers and Technology, 24.06.2019 14:00, superstarsara5ouh83x
Fast answer i need for apex ! smartphones should be banned from the classroom in public schools so that students cannot cheat on test so easily? which is an example of a counter argument to the thesis above? a. the classroom is a place for learning not for making phone calls b. smartphones are useful learning tools in the modern classroom c. banning smartphones will not students pay attention to teachers any better d. banning smartphones would decreased incidents of theft
Answers: 2
Original Problem - Level O Compute BMI In order to compute the BMI, we need to get inputs from the u...
English, 31.10.2020 03:00
Physics, 31.10.2020 03:00
History, 31.10.2020 03:00
Social Studies, 31.10.2020 03:00
Chemistry, 31.10.2020 03:00
Social Studies, 31.10.2020 03:00
Mathematics, 31.10.2020 03:00