Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

can u make sure that those codes are matches what required on the picture attach

ID: 3664780 • Letter: C

Question

can u make sure that those codes are matches what required on the picture attached?

the codes:

#include<stdio.h>int main(){float b,e;printf("Enter beginning odometer reading=>");scanf("%f",&b);printf(" Enter ending odometer reading=>");scanf("%f",&e);printf(" You traveled %.2f miles. At $0.35 per mile, your reimbursement is $ %.3f.",e-b,(e-b)*0.35);return 0;}

Comp1099 Lab 03 Write a program that calculates mileage reimbursement for a salesperson at a rate of $0.35 per mile. Your program should interact with the user in this manner eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee MILEAGE REIMBURSEMENT CALCULATOR Enter beginning odometer reading 13505.2 Enter ending odometer reading 13810.6 You traveled 305.4 miles. At $0.35 per mile, your reimbursement is $106.89. Oooooooooooooooooooooooooooo ease see is to be test to do it see a de

Explanation / Answer

//c program to reimburse travel amount based on odometer reading

#include<stdio.h>;

#include<conio.h>

using namespace std

void main()

{

double beg,end;

//enter the mentioned odometer reading at the beginning

printf("Enter beginning odometer reading=>");

scanf("%lf",&beg);

//enter the mentioned odometer reading at the end

printf(" Enter ending odometer reading=>");

scanf("%lf",&end);

//output result as shown in the screen

printf(" You traveled %.2lf miles. At $0.35 per mile, your reimbursement charges is $ %.3lf.",end-beg,(end-beg)*0.35);

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote