Page 1 of 1

3. A truck rental company charges a flat rate of $19.95 per day plus $0.79 per mile driven. If the price is over $100, t

Posted: Fri Jul 08, 2022 7:28 am
by answerhappygod
3 A Truck Rental Company Charges A Flat Rate Of 19 95 Per Day Plus 0 79 Per Mile Driven If The Price Is Over 100 T 1
3 A Truck Rental Company Charges A Flat Rate Of 19 95 Per Day Plus 0 79 Per Mile Driven If The Price Is Over 100 T 1 (38.07 KiB) Viewed 66 times
3. A truck rental company charges a flat rate of $19.95 per day plus $0.79 per mile driven. If the price is over $100, the company provides a $10 discount. Write a program for the truck rental company that does the following: a. Ask the customer how many miles they expect to drive, and store their answer in a variable **Hint: You need to cast the user's input into something that can be calculated. b. Using their answer, compute how much the customer will owe based on the pricing explained above. C. If their rental price is over $100, apply the discount by subtracting $10 from their price. d. Print out how much the customer's rental will cost with a $ in front of it. **Hint: You will need to concatenate 'S' with the rental price cast to a string