HOPE THIS HELPS
PLEASE RATE THUMBSUP
ANSWER:
CODE:
CODE:
#include<stdio.h> // headert file
float height,weight; // required varaibles where values from user
should be stored
int age,ch;
main(){ // main function
do{
printf("Enter height of the person in pounds\n");
scanf("%f",&height); // getting user height
printf("Enter weight of the person in inches\n");
scanf("%f",&weight); // getting user weight
printf("Enter age of the person\n");
scanf("%d",&age); // getting user age
printf("\nMeasures of that person are: \n");
hat_size(); // calling required functions
jacket_size();
waist_size();
printf("\n\n Want to know measures of another person 1-YES,
2-N0\n");
scanf("%d",&ch); // asking user for another persion
measures
}while(ch==1); // if yes while will be true
}
hat_size(){ // function to calculate hat size
printf("Hat size: %f\n",(weight/height)*2.9);
}
jacket_size(){ // function to calculate jacket size
float a1=0.0; // variable for adding 1/8
int a=age;
while(a>=40){ // adding only if age > = 40 for every 10
years
a1=a1+((float)1/(float)8); // add 1/8 to variable a1
a=a-10; // untill age becomes 40 , mentioned in while
condition
}
printf("Jacket size: %f inches\n",(weight*height)/288+a1);
}
waist_size(){ // function to calculate waist size
float a1=0.0; // variable for adding 1/10
int a=age;
if(a>28 && a%2==0) // if age is above 28 and even
age
a1=((float)1/(float)10)*((a-28)/2); // add 1/10 for every 2 years
from 30
printf("Waist size: %f inches\n",(weight/5.7)+a1);
}
OUTPUT:
IN C++ PLEASE interest payment. Your program should use at least two function definitions and should...
Please write this code in C++ Object-Oriented Programming, specify which files are .h, and .cpp, and please add comments for the whole code. Include a class diagrams, and explain the approach you used for the project and how you implemented that, briefly in a few sentences. Please note the following: -Names chosen for classes, functions, and variables should effectively convey the purpose and meaning of the named entity. - Code duplication should be avoided by factoring out common code into...
Please use APA format and references please Ethical Reasoning Assignment You will use your analysis of the case study as a foundation for an ethical discussion. This discussion will provide you an opportunity to apply ethical reasoning to an ethical issue within the field of pediatric nursing: The use of growth hormones. You will also have an opportunity to demonstrate your writing skills. Your assignment should include a title and a reference page. Your assignment should be double spaced using...
C Programming write two functions, similar to what you see in the sample program. The first will ask the user to enter some information (I have included the type in parentheses) First Name (char[]) Last Name (char[]) Age (int) Height in Inches (double) Weight in Pounds (double) You will use pass-by-reference to modify the values of the arguments passed in from the main(). Remember that arrays require no special notation, as they are passed by reference automatically, but the other...
Will facebook be able to have a successful business model without invading privacy? explain your answer? could facebook take any measures to make this possible? BUSINESS PROBLEM-SOLVING CASE Facebook Privacy: Your Life for Sale Facebook has quickly morphed from a small, niche haps most obviously. Facebook allows you to keep in networking site for mostly Ivy League college stu- touch with your friends, relatives, local restaurants, dents into a publicly traded company with a market and, in short, just about...