Dominguez_week1_PA2

docx

School

Alamo Colleges *

*We aren’t endorsed by this school

Course

126

Subject

Health Science

Date

Oct 30, 2023

Type

docx

Pages

2

Uploaded by MagistrateGoldfinchMaster399

Report
1 [rmwesemnon ! Outpat “Plasse arter your heaght (ininches).” /":{m o Outputt “plessse erter your wi] / sghin pounds).” Oupt "Normad BML Betwoen 185and 249 . Ouprst "Overweight: Between 25 ad 295 . Ougrt "Obiese: Wor ressies™ . ( End ) 3 | Please enter your height(in inches). J | please enter your wileight(in pounds). l Your body mass index is7.97052154195011 I L J | BMI Values J7U \di i ML than 18.5 Inderweight: Less than 18. (e : 3 | Normal BMI: Between 18.5 and 24.9 fr——— Overweight: Between 25 and 29.5 5 | 2 |
(globals) v v Debug Dominguez_Week1_PAl.c Dominguez_ Week1_PAl.c Dominguez_Week1 _PAl.c Untitled5.cpp 1 #include <stdio.h> 2 3 int main() = 5 float weight, height, BMI; 6 7 printf("Please enter your height(in inches)"); 8 scanf("%f", &height); 9 10 printf("\nPlease enter your weight(in pounds): "); 11 scanf("%f", &weight); 12 BMI = (weight * 703) / (height * height) ; 13 printf("Your Body Mass Index is %.2f", BMI); 14 15 printf("\n\nBMI VALUES"); 16 printf("\nUnderweight: Less than 18.5"); 17 printf("\nNormal BMI: Between 18.5 and 24.9"); 18 printf("\nOverweight: Between 25 and 29.9"); 19 printf("\nObese: 3@ or greater"); 20 21 return @; 2R By Resources gl Compile Log «/ Debug [ Find Results Close Add wateh Nevt line o Nevt inctrctinn Send command to GDB: \break “C:/Users/18302/OneDri & C:\Users\18302\OneDrive\Doc X Please enter your height(in inches)13
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help

Browse Popular Homework Q&A