Question
Write a well-documented program in C language that will be used by a rental car company to determine how much to charge its customers. You
Write a well-documented program in C language that will be used by a rental car company to determine how much to charge its customers. You should prompt the user to enter the number of days the car was rented and how many miles it was driven. A passenger car is rented for $15.00 per day plus $.40 per mile. However, the rate per mile goes down to $.35 if the car was driven 200 miles or more. Sales tax is 6% and the program should output a subtotal, tax amount, and total. - use an if...else statement with multiple conditions to evaluate input - perform calculations based on conditions
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started