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 20:30
Write 150 words on what kind of website would you like to make in the future? what sites would you like to model yours after?
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
When early motion pictures played in movie theaters, they were often accompanied by live organ or piano music. which of the following are the most likely reasons that this happened? (select all that apply). the music was provided to distract audience members from the loud sounds made when filmstrips were changed. the music accompanied the movies because the movies were silent and audiences were used to hearing music during plays in theaters. the music usually was played before, and sometimes after the movie, as an alternative form of entertainment. the music viewers to interpret the dramatic action in the films.
Answers: 2
question
Computers and Technology, 23.06.2019 10:50
Your friend kayla is starting her own business and asks you whether she should set it up as a p2p network or as a client-server network. list three questions you might ask to kayla decide which network to use and how her answers to those questions would affect your recommendation.
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
Biology, 07.04.2020 01:25
question
Social Studies, 07.04.2020 01:26
question
Mathematics, 07.04.2020 01:26