Assignment Overview For this assignment, you will write your first C++ application, called calcMileage. The goal of this program is to determine miles-per-gallon based on the number of miles driven and the number of gallons of gas you put in the tank. Assignment Instructions
Part 1: Write, Run, and Test the Application Use the code attached to this posting to complete this part of your assignment. Be sure to test the application with a variety of values before you proceed to Part 2. The program produces accurate results with some numeric values but not with others. Note when the results are accurate and when they are not.
Part 2: Improve the Application Based on the material in the study, modify the code to fix the accuracy problem. Be sure to comment and format the code.
Part 3: Describe the Application After running your application and observing the results, write a 1– 2-page paper in which you complete the following: Define the variables in an application. Define the expressions in an application. Explain the data types in an application. Discuss the cause of the inaccuracy in the original code and the approach used to fix the problem. Ensure that your writing is professional and consistent with the standards and conventions of the IT community.
Get Free Quote!
376 Experts Online