Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
1.lu.edu/Louise/10320) assignments/29552 2 10337 > Assignments > Assignment 4 Assignment 4 Submit Assignment Due Thursday by 11:59pm Points 20 Submitting a text entry box or
1.lu.edu/Louise/10320) assignments/29552 2 10337 > Assignments > Assignment 4 Assignment 4 Submit Assignment Due Thursday by 11:59pm Points 20 Submitting a text entry box or a file upload In this assignment you are to write a C program that computes the user's body mass index (BMI) and prints the results to the screen. The user's BMI is computed as follows: BMI = 703.07"weight/(height)^2 Here weight is the user's weight in pounds and height is the user's height in inches. A person's BMI is used to classify them as shown in the table below: BMI 30 Obese Write a C program that welcomes the user, prompts the user for their weight in pounds and height in inches, calculates their BMI, and prints their BMI and classification. The program should include three user-defined functions as follows: 1. void Welcome This function prints a welcome message to the screen. 2. double BMI Calc(double weight, double height) This function takes as its input the weight in pounds and height in inches of the user and returns the BMI of the user. 3.void Output(double bmi) This function takes as its input the BMI of the user and prints it to the screen along with the classification of the user. Due by the end of the day Thursday, February 20
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started