subject

You are tasked with creating a mileage calculator to calculate the amount of money that should be paid to employees. the mileage is computed as follows an amount of .25 for each mile up to 100 miles an amount of .15 for every mile above 100. so 115 miles would be (.25 * 100) + (.15 * 15) this can all be coded using a mathematical solution but i want you to use an if / else statement. here is how you are to implement it: if the total miles input is less than or equal to 100 then simply calculate the miles * .25 and output the amount otherwise compute the total amount for all miles mathematically. input: total number of miles process: dollar amount owed for miles driven output: amount of money due * note that you should simply do calculations within the if and else statements. this mean no cin or cout within if or else. do it afterward.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:30
The blank is type of decision-maker who over analyzes information
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
The place where the extended axis of the earth would touch the celestial sphere is called the celestial
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
The initial tableau of a linear programming problem is given. use the simplex method to solve it. x 1 x 2 x 3 s 1 s 2 z 1 2 4 1 0 0 8 3 4 1 0 1 0 10 minus3 minus12 1 0 0 1 0 the maximum is nothing when x 1equals nothing, x 2equals nothing, x 3equals nothing, s 1equals3, and s 2equals0. (be sure to simplify to lowest terms if necessary.)
Answers: 2
question
Computers and Technology, 24.06.2019 12:30
Select all that apply. what two keys listed below should you use to enter data in an excel worksheet? tab backspace enter right arrow
Answers: 2
You know the right answer?
You are tasked with creating a mileage calculator to calculate the amount of money that should be pa...
Questions
question
Mathematics, 03.07.2021 01:50
question
Mathematics, 03.07.2021 01:50
question
Chemistry, 03.07.2021 02:00