Question: Directions Complete the following homework assignment using the description given in each section. Purpose .Perform basic VO operations using scanf and printf functions. - Use

 Directions Complete the following homework assignment using the description given in
each section. Purpose .Perform basic VO operations using scanf and printf functions.
- Use conditional statements. Perform simple mathematical calculations. . Use loops Submit
this assignment by following the instructions given below. SUBMIT ONLY the c
file (no a.out or executable file is required). Use the following submit
command. Eilename must be: sectionletter-hwl.c (Include your respective lab section) e.g. :
c-hw1.c S submit .g.: $ submit CS 1050 Hwlc-hwl.c You have been
asked to create a simple billing system for customers of Interpedia. Interpedia

Directions Complete the following homework assignment using the description given in each section. Purpose .Perform basic VO operations using scanf and printf functions. - Use conditional statements. Perform simple mathematical calculations. . Use loops Submit this assignment by following the instructions given below. SUBMIT ONLY the c file (no a.out or executable file is required). Use the following submit command. Eilename must be: sectionletter-hwl.c (Include your respective lab section) e.g. : c-hw1.c S submit .g.: $ submit CS 1050 Hwlc-hwl.c You have been asked to create a simple billing system for customers of Interpedia. Interpedia is a one-stop shop to find a rental car from a variety of companies. For the Columbia market, Interpedia offers 3 rental car companies (Hurts, Mavis, and International). Each rental car company offers cars in the Economy, Mid-Size, Full-Size, Luxury, SUV, and Minivan categories. Your job is to create a program that allows a customer of Interpedia to calculate the cost to rent their desired type of car from the company they select. The customer will want to enter a number corresponding to the rental company they prefer, and then enter another number corresponding to the type of car they desire. Finally, the customer will indicate how many days they will be renting the car. Your program will determine the cost per day and will then calculate the sub-total amount that will be owed by the customer DashboardCalendar To Do Notifications Inbox .ill MetroPCS 5:44 AM CS 1050-Homew a The following table details the daily rates for cach of the different types of cars and vendors. Mid-Size 31 30 75 79 SUV S0 Minivan 75 For example, if a customer wished to rent a Luxury car from Mavis for 3 days, the cost would be $98 per day times 3 days $294. After calculating the rental subtotal, your program should also compute an 8% rental car tax to be added to the subtotal for a final total. Tax should be computed in even cents, and then rounded to the nearest dollar (50 cents or more should round up). Use all integer math (no floating point variables). Example: $294 * 8%-$23.60-2.360 cents, so tax-S24 (rounded up because 60 cents is greater than or equal to 50 cents). Grand total in this case would be $294+ S24 S318 Finally, you should ask the user if they want to rent additional cars (keep going). Keep track of a running total owed for all cars rented, and print a grand total at the end. Hint: If you feel comfortable writing functions, you may certainly do that. However, we have not discussed functions in detail yet, so this assignment may be implanted with only main( you prefer Bonus: In addition to tracking the total due for all cars rented, also track the sub-total of all cars rented (prior to tax) and the total of all tax paid as well Dashboard Calendar To Do Notifications Inbox ill MetroPCS 5:44 AM CS 1050 - Homew... a Character in bold are inputs from the user Interpedia Car Rental System 1. Hurts 2. Mavis 3. International Please select a rental company (1-3) -1 1. Hurts 2. Mavis 3. International Please select a rental company (1-3): 8 1. Hurts 2. Mavis 3. International Please select a rental company (1-3): 7 1. Hurts 2. Mavis 3. International Please select a rental company (1-3): 1 1. Economy 2. Mid-Size 3. Full-Size 4. Luxury 5. SUV 6. Minivan Please select a car type (1-6): -1 1. Economy 2. Mid-Size 3. Full-Size Dashboard Calendar To Do Notifications Inbox ill MetroPCS 5:44 AM CS 1050-Homew a y 4. Luxury 5. SUV 6. Minivan Please select a car type (1-6):e 1. Economy 2. Mid-Size 3. Full-Size 4. Luxury 5. SUV 6. Minivan Please select a car type (1-6):7 1. Economy 2. Mid-Size 3. Full-Size 4. Luxury 5. SUV 6. Minivan Please select a car type (1-6): 6 Enter the number of days you will rent the car: 11 Daily rate $79 Sub-total $869 Tax-$78 Total $939 Keep going (1 to continue or 2 to quit)? 1 BONUS: Running sub-total $869 BONUS: Running tax- $7e Running total $939 1. Hurts 2. Mavis 3. International Dashboard Calendar To Do Notifications Inbox ill MetroPCS 5:44 AM CS 1050-Homew a y Please select a rental company (1-3): 3 1. Economy 2. Mid-Size 3. Full-Size 4. Luxury 5. SUV 6. Minivan Please select a car type (1-6): 4 Enter the number of days you will rent the car:3 Daily rate $89 Sub-total $267 Tax $21 Total $288 Keep going (1 to continue or 2 to quit)? 1 BONUS: Running sub-total $1136 BONUS: Running tax $91 Running total-$1227 1. Hurts 2. Mavis 3. International Please select a rental company (1-3): 1 1. Economy 2. Mid-Size 3. Full-Size .Luxury S. SUV Dashboard Calendar To Do Notifications Inbox ill MetroPCS 5:44 AM CS 1050-Homew a Enter the number of days you will rent the car: 3 Daily rate $89 Sub-total $267 Tax $21 Total $288 Keep going (1 to continue or 2 to quit)? 1 BONUS: Running sub-total $1136 BONUS: Running tax $91 Running total $1227 1. Hurts 2. Mavis 3. International Please select a rental company (1-3): 1 1. Economy 2. Mid-Size 3. Full-Size . Luxury 5. SUV 6. Minivan Please select a car type (1-6):4 Enter the number of days you will rent the car:1 Daily rate $97 Sub-total $97 Tax $8 Total $105 Keep going (1 to continue or 2 to quit)? 2 Dashboard Calendar To Do Notifications Inbox ll MetroPCS 5:44 AM

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!