Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 int main() { double radius,height,vol; printf("Enter the radius: "); scanf("%lf",&radius); printf("Enter the height: "); scanf("%lf",&height);

vol= 1.0/3.0 * 3.14159 * radius * radius * height; printf("The volume of the cone is %0.4f ",vol ); return 0; }

image text in transcribedimage text in transcribed

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 #include printf("YY YY "); printf(" YY YY "); printf(" YY YY "); printf(" YY YY "); printf(" YY "); printf(" YY "); printf(" YY "); printf(" YY "); printf(" YY "); Jint 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 $8.2f.", (val*0.35)); return 0; -) 'S'); name = input('Enter name: weight = input('Enter weight: '); height = input('Enter height: '); bmi = 703 * (weight / (height)^2); classification = ""; if bmi int main() double radius, height, vol; printf("Enter the radius: "); scanf("%f",&radius); printf("Enter the height: "); scanf("%f",&height); vol= 1.0/3.0 * 3.14159 * radius * radius * height; printf("The volume of the cone is $0.4f ",vol ); return 0; - }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Medical Image Databases

Authors: Stephen T.C. Wong

1st Edition

1461375398, 978-1461375395

More Books

Students also viewed these Databases questions

Question

What initiatives did I take?

Answered: 1 week ago

Question

Understand why customers are loyal to a particular service firm.

Answered: 1 week ago