Question
In C please! Hi, can someone please explain to me what is wrong with my code. I keep getting errors and all of them must
In C please! Hi, can someone please explain to me what is wrong with my code. I keep getting errors and all of them must run under one file. Please and Thank you! It is supposed to come out like the first picture.
#include
printf("YY YY "); printf(" YY YY "); printf(" YY YY "); printf(" YY YY "); printf(" YY "); printf(" YY "); printf(" YY "); printf(" YY "); printf(" YY ");
int main(){ float begin, end, val; printf("MILEAGE REIMBURSEMENT CALCULATOR"); printf("Enter beginning odometer reading=> "); scanf("%f",&begin); printf("Enter end odometer reading=> "); scanf("%f",&end); val = end - begin; printf("You travelled %.1f miles. At $0.35 per mile,",val); printf("Your reimbursement is $%.2f.",(val*0.35)); return 0; }
name = input('Enter name: ', 's'); weight = input('Enter weight: '); height = input('Enter height: '); bmi = 703 * (weight / (height)^2); classification = ""; if bmi
#include
vol= 1.0/3.0 * 3.14159 * radius * radius * height; printf("The volume of the cone is %0.4f ",vol ); return 0; }
YY YY YY YY YY YY YYYY WWW YY YY YY YY YY Mileage Reimbursement Calculator Enter beginning odometer reading=> Enter ending odometer reading=> You traveled 30.0 miles. At $0.35 per mile, your reimbursement is $10.50 Enter the weight in pounds: Enter the total height in inches: BMI = 15.205 Enter the radius: Enter the height: The volume of the cone is 59166.6117 #includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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