Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Apr 2017 |
Last Sign in: | 5 Weeks Ago, 4 Days Ago |
Questions Answered: | 4870 |
Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
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 InstructionsPart 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:
Ensure that your writing is professional and consistent with the standards and conventions of the IT community.
Â
Submission Requirements
Â
Your completed assignment should include the following:
When complete, compress your C++ program into a ZIP archive
Â
Part 1: Write, Run, and Observe the ApplicationReviewHello World!, Variables and Basic IOand create an application that determines miles-per-gallon, if you know the number of miles driven and number of gallons of gas you put in thetank.Follow these steps to complete Part 1 of your assignment.1.Access the Toolwire desktop environment via the Toolwire resources in Unit 1.2.Launch Code::Blocks.3.Click the following:File, New, Project.Console Application.Go.Next.C++.Next.4.In the Project Title field, typecalcMileage.5.In Folder to create project in:, click…6.In Folder, clickMake New folder and typecalcMileage.7.Click thecalcMileagefolder.8.ClickOK.9.ClickNext.10. ClickFinish.11. Open the main.cpp file under Sources.12. In the editor, type the following calcMileage application, using this template.#include <iostream>using namespace std;int main(){int miles;int gallons;float mpg;
Attachments:-----------