C++ Programming Make a source code using C++ Programming 11. Body Mass Index by CodeChum Admin Recall that according to the National Heart, Lung, and Blood Institute of the National Institutes of Health, body mass index (BMI) is a measure of body fat based on height and weight that applies to adult men and women. It is used to monitor one's health by determining whether one is underweight, overweight, has normal weight or is obese. It is computed based as follows (when using standard weight in pounds and height in inches):   BMI = 703 x (weight/(height2))   Furthermore, people with BMI scores that are less than 18.5 are said to be underweight. Those with scores between 18.5–24.9 (inclusive) are of normal weight. Those with scores between 25–29.9 (inclusive) are said to be overweight. And those with scores 30 or higher are obese. Input 1. Weight in pounds 2. Height in inches Output The first line will contain a message prompt to input the weight in pounds. The second line will contain a message prompt to input the height in inches. The last line will contain two values: the computed BMI with 1 decimal place and whether the score represents underweight, normal weight, overweight, or obese. Enter·the·weight·(pounds):·140 Enter·the·height·(inches):·65 The·BMI·is·23.3·(normal·weight)   12. Circular Pillars by CodeChum Admin The boss is planning to expand and is thinking of constructing a new building. In order to make sure that everything goes well, he has assigned each of us with a specific task. Lucky for you, you have the most important task of them all.   You have been tasked to measure the area of each circular pillar that will be constructed in the new building! Exciting isn’t it? I’m going to give you the pillar’s diameter and you’re going to take care of the rest. Oh, and in case you forgot, area of a circle = pi * r2 (assuming pi = 3.14) Input 1. Diameter of the circular pillar Output The first line will contain a message prompt to input the diameter. The second line will contain the area of the circular pillar rounded off and displayed with 2 decimal places. Enter·the·diameter:·4.5 Area·of·the·circular·pillar·=·15.90   13. Cody on Guinness? by CodeChum Admin After saving The Programmer and beating the Hydra, the Hydra shared how he had never been beaten that quickly before and it may be a new Guinness World Record. Excitedly, Cody and his friends scanned online and it was true, it is a new record.   For it to be official, they had to submit an official document of the time it took in hours, minutes, and seconds (00:00:00 format) but they only have the time recorded in seconds. Input the number of seconds the battle took and convert it to the hours, minutes, and seconds format. Input 1. The number of seconds Constraints The max possible value is 86,400. Output The first line will contain a message prompt to input the number of seconds. The second line will contain the time it took in hours, minutes, and seconds respectively (hh:mm:ss format). Enter·the·number·of·seconds:·7843 Total·time·in·the·new·format·=·02:10:43

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section4.5: A Case Study: Solving Quadratic Equations
Problem 7E
icon
Related questions
Question

C++ Programming

Make a source code using C++ Programming

11. Body Mass Index

by CodeChum Admin

Recall that according to the National Heart, Lung, and Blood Institute of the National Institutes of Health, body mass index (BMI) is a measure of body fat based on height and weight that applies to adult men and women. It is used to monitor one's health by determining whether one is underweight, overweight, has normal weight or is obese. It is computed based as follows (when using standard weight in pounds and height in inches):

 

BMI = 703 x (weight/(height2))

 

Furthermore, people with BMI scores that are less than 18.5 are said to be underweight. Those with scores between 18.5–24.9 (inclusive) are of normal weight. Those with scores between 25–29.9 (inclusive) are said to be overweight. And those with scores 30 or higher are obese.

Input

1. Weight in pounds

2. Height in inches

Output

The first line will contain a message prompt to input the weight in pounds. The second line will contain a message prompt to input the height in inches. The last line will contain two values: the computed BMI with 1 decimal place and whether the score represents underweight, normal weight, overweight, or obese.

Enter·the·weight·(pounds):·140 Enter·the·height·(inches):·65 The·BMI·is·23.3·(normal·weight)
 

12. Circular Pillars

by CodeChum Admin

The boss is planning to expand and is thinking of constructing a new building. In order to make sure that everything goes well, he has assigned each of us with a specific task. Lucky for you, you have the most important task of them all.

 

You have been tasked to measure the area of each circular pillar that will be constructed in the new building! Exciting isn’t it? I’m going to give you the pillar’s diameter and you’re going to take care of the rest. Oh, and in case you forgot, area of a circle = pi * r2 (assuming pi = 3.14)

Input

1. Diameter of the circular pillar

Output

The first line will contain a message prompt to input the diameter. The second line will contain the area of the circular pillar rounded off and displayed with 2 decimal places.

Enter·the·diameter:·4.5 Area·of·the·circular·pillar·=·15.90
 

13. Cody on Guinness?

by CodeChum Admin

After saving The Programmer and beating the Hydra, the Hydra shared how he had never been beaten that quickly before and it may be a new Guinness World Record. Excitedly, Cody and his friends scanned online and it was true, it is a new record.

 

For it to be official, they had to submit an official document of the time it took in hours, minutes, and seconds (00:00:00 format) but they only have the time recorded in seconds. Input the number of seconds the battle took and convert it to the hours, minutes, and seconds format.

Input

1. The number of seconds

Constraints

The max possible value is 86,400.

Output

The first line will contain a message prompt to input the number of seconds. The second line will contain the time it took in hours, minutes, and seconds respectively (hh:mm:ss format).

Enter·the·number·of·seconds:·7843 Total·time·in·the·new·format·=·02:10:43
 

14. Cody the Berserk

by CodeChum Admin

Cody had a hard time saving The Programmer from the Hydra, so he decided to call his friends to help him cut off the heads together. This was brilliant because then the number of heads he has to cut would be far less than if he was all alone. For example, if the Hydra had 10 heads and he called 5 friends then they would each cut 2 heads. This presented a problem, however, if the Hydra had 11 heads then that meant one of them had to cut 3 heads.

 

Input the number of friends Cody has to call and the number of heads the Hydra currently has and then print the minimum number of heads each one of them has to cut.

Input

1. Number of friends

2. Number of heads

Output

The first line will contain a message prompt to input the number of friends. The second line will contain a message prompt to input the number of heads. The last line will contain the minimum number of heads each one of them has to cut.

Enter·the·number·of·friends:·4 Enter·the·number·of·heads:·12 Minimum·heads·to·cut·per·friend·=·3
 

15. Cody's Circle

by CodeChum Admin

Cody has a circle of friends of 5 people. To show his appreciation of them, Cody wants to be able to know the height of all 5 of them. Input the height of his 5 friends then print them out. The height are all whole numbers.

Input

1. A series of five integers

Sample

90 80 85 80 75

Output

Contains the five integers in one line separated by commas

Enter·first·number:·90
Enter·second·number:·80
Enter·third·number:·85
Enter·fourth·number:·80
Enter·fifth·number:·75
 
Inputted·numbers:·90,80,85,80,75
 
 
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 6 images

Blurred answer
Knowledge Booster
Concept of Parenthesis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr