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, 23.06.2019 06:30
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
Which argument is not a valid filter? does not equal this quarter filter by cell color all of these are valid filter arguments.
Answers: 2
question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
question
Computers and Technology, 23.06.2019 23:30
What are "open-loop" and "closed-loop" systems
Answers: 1
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, 08.09.2019 06:10
question
History, 08.09.2019 06:10
Questions on the website: 13722367