Question: C++ Write a program that asks for the users height, weight, and age, and then computes clothing sizes. 1.Ask the users height (inch), weight (pounds)
C++ Write a program that asks for the users height, weight, and age, and then computes clothing sizes. 1.Ask the users height (inch), weight (pounds) and age. 2.Write a function to take weight and height and calculate Hat size using below formula: Hat size = weight in pounds divided by height in inches and all that multiplied by 2.9. 3.Write a function to take weight and height and age calculate Jacket size using below formula: Jacket size (chest in inches) = height times weight divided by 288 and then adjusted by adding one-eighth of an inch for each 10 years over age 30. (Note that the adjustment only takes place after a full 10 years. So, there is no adjustment for ages 30 through 39, but one-eighth of an inch is added for age 40.) Hint: First, calculate (height times weight divided by 288) and store it in another variable, then use if statement to add the variable to adjustment.4.Write a function to take weight and age calculate Waist size using below formula: Waist in inches = weight divided by5.7 and then adjusted by adding one-tenth of an inch for each 2 years over age 28. (Note that the adjustment only takes place after a full 2 years. So, there is no adjustment for age 29, but one-tenth of an inch is added for age 30.) 5.Use functions for each calculation. Your program should allow the user to repeat this calculation as often as he or she wishes (Use Loop)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
