Question: /* Coding Problems (25 points) */ /* Please write the code for the two problems below. With C language. Write the code for both problems

/* Coding Problems (25 points) */

/*

Please write the code for the two problems below. With C language.

Write the code for both problems in the area designated inside of the main function. When completed, the main function should run the code for both problems.

1. Write code that calculates mileage reimbursement for a salesperson at a rate of $.48 per mile. Your program should get the mileage from the user in this manner: MILEAGE REIMBURSEMENT CALCULATOR Enter beginning odometer reading: 13505.2 Enter ending odometer reading: 13810.6 You traveled 305.4 miles. At $0.48 per mile, your reimbursement is $146.59.

2. Write code to convert a temperature in degrees Fahrenheit to degrees Celsius. Your program should get the temperature Fahrenheit from the user and print the result as: FAHRENHEIT TO CELSIUS CALCULATOR Enter temperature Fahrenheit: 100.0 100.0 degrees Fahrenheit is 37.78 degrees Celsius

*/

// Preprocessor directives

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!