ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 5 Weeks Ago, 4 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 23 May 2017 My Price 9.00

C++ application, called calcMileage.

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:

  • 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.

 

Submission Requirements

 

Your completed assignment should include the following:

  • Demonstrate the ability to apply math in a program.
  • Define the variables in an application.
  • Define the expressions in an application.
  • Explain the data types in an application.
  • Communicate effectively in a business environment.

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:

Answers

(11)
Status NEW Posted 23 May 2017 12:05 AM My Price 9.00

-----------

Attachments

file 1495499511-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)