
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.
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.
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).
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.
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
Output
Contains the five integers in one line separated by commas

Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 6 images

- C++ Programmingarrow_forwardDescriptive form Symbolic form Español ロ~ロ ロヘロ ロvロ (a) Ivan is not wearing sandals or it is not spring. ロ→ロ (b) It is false that "Ivan is wearing sandals or it is spring". (c) (Choose one) - p^qarrow_forwardData Management Functions - Name format. Python*a) Define a function nameFormat() with parameters first, middle, and last.-This function prints the first name, the middle initial and the last name using proper title format.-Call the function nameFormat with these positional arguments: john stu smith-Call the function nameFormat with these keyword arguments: last=‘kennedy’, first=‘john’, middle=‘fitzgerald’ Example Output John S. SmithJohn F. Kennedyarrow_forward
- Memory Management Programming Assignment Please if this can be coded in Java or C++ i would appreciate implement and test the GET-MEMORY algorithm This algorithm uses the Next-Fit(First-Fit-With-A-Roving-Pointer) technique. implement and test the FREE-MOMORY algorithm Implement the “GET_MEMORY” and “FREE_MEMORY” algorithms. Comprehensive testing must be done for each algorithm. Following are sample run results for each: GET_MEMORY IS RUNNING……… Initial FSB list FSB# Location Size 1 7 4 2 14 10 3 30 20 . . . . . . Rover is 14 ---------------------------------------------------------------------------- Allocation request for 5 words Allocation was successful Allocation was in location 14 FSB# Location Size 1 7 4 2 19 5 3 30 20 . . . . . . Rover is 30 ---------------------------------------------------------------------------- Allocation request for 150 words Allocation was not successful . . . __________________________________________________________ FREE_MEMORY…arrow_forwardProblem Statement The barcode used by the U.S. Postal System to route mail is defined as follows: Each decimal digit in the ZIP code is encoded using a sequence of three half-height and two full-height bars. The barcode starts and ends with a full-height bar (the guard rail) and includes a checksum digit (after the five-digit ZIP code or ZIP + 4), computed by summing up the original digits modulo 10. Define the following functions: Draw a half-height or full-height bar on stddraw. Given a digit, draw its sequence of bars. Compute the checksum digit. Also define global code that read in a five- (or nine-) digit ZIP code as the command-line argument and draws the corresponding postal barcode.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





