Write a program that calculates mileage reimbursement

Assignment Help C/C++ Programming
Reference no: EM131198764

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:

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.

-----

Do not hard code numbers, use the #define directive for the rate per mile as a constant (which should be in all caps).

Also, use the scanf or scanf_s function to read from the user the beginning and ending odometer.

Reference no: EM131198764

Questions Cloud

What would be the new breakeven point : How many pitchers of each type must be sold to break even in 2011?- What would be the new breakeven point if managers switched to the new supplier?
Explore the need for waterfall and agile methodologies : Analyze the need for waterfall and agile methodologies. Explain the advantages of extreme programming (XP) and analyze the advantages of its application in high-budget short-time projects.
What is the average value of rate of change of temperature : If the thermocouple is mounted in a chemical reactor and the voltage is observed to go from 10.0mV to 13.6mV in 20s, what is the average value of the rate of change of temperature dT/dt, during the measurement period?
Analyze how the awareness of your learning patterns : Describe a specific time when you used each Pattern to accomplish a task. Each example should demonstrate how you Use First, Use as Needed, or Avoid the Pattern being described based on your results from the LCI. Your examples may be from your aca..
Write a program that calculates mileage reimbursement : 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.
Relationship between living abroad and creativity : What is the relationship between living abroad and creativity? How can organizations best apply lessons from this relationship to create the organizational components and to foster the management styles that will facilitate creativity? Why?
Business and a master in business administration : You are hired at a manufacturing plant in  Texas as an assistant plant manager.  You have over ten years of experience in manufacturing and have a Bachelors in Business and a Master in Business Administration.  The plant manager tells you on your ..
How organizations communicate with current customers : The use of digital media within organizations has transformed how organizations communicate with prospective and current customers. Digital media such as: web videos, have each shaped the communication strategies organizations employ to engage cu..
Estimate how much product is lost in thin-film evaporator : Estimate the feed flow rates of glycine and guaiacol that would be needed to produce 100 kg/day of the API.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Functionality in the application

When the application starts, it should display a message asking the user to enter either option d or v. The application should execute the following actions for the two options: d: The application should display the file extension of the stock det..

  Individual genes are substrings of a genome

Individual genes are substrings of a genome delineated by 3-element start and stop codons. Genes begin with the start codon ATG and end with one of the following 3 stop codons: TAG, TAA or TGA. Note that start codons can appear anywhere in the string..

  Setup a class to store a book

Setup a class to store a book. The data is to include title, author, year of publication, dewey number and age.

  What are the values of sum1 and sum2

If the operands in the expressions are evaluated right to left?

  Large number of files and folders

As part of her business activities, Sharon has created a large number of files and folders. Whenever she needs to view the details of the files stored in a folder, Sharon browses to the folder using Windows Explorer. However, she finds it cumberso..

  Atlanta home loan - control failureuse the nine-step case

atlanta home loan - control failureuse the nine-step case analysis method as instructed in the required.requiredyou are

  Event model for marketing purposes

Many web sites make vigorous (over) use of many of the events in the dynamic HTML event model for marketing purposes. In some cases, one URL call may open 10 or more other Windows.

  Implement a program for this machine

Implement a program for this machine - design a special ATM machine to be used by needy people.

  Design a class box that defines a box on a floor

Design a class box that defines a box on a floor. A box has a number and an (a,b) location where a and b are numbers between -5, and 5.

  Write and test a c function named flow that returns both

fluid following in a pipe flows in a smooth pattern knows as laminar flow or a turbulent pattern know as turbulent

  Suggest an application system which is able to perform some

suggest an application system which is able to perform some arithmetic computations like commission system encryption

  Save all employees entered on the keyboard

After the calculation of each employee payment is done, instead of printing all of the employee payments on screen save him or her information into a file called "Payments.dat".

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd