Question: Car Rental - Programming Language is in C _________________________________________________________________________________________________ In this assignment, take the user input, followed by an option tax, and then print out

Car Rental - Programming Language is in C

_________________________________________________________________________________________________

In this assignment, take the user input, followed by an option tax, and then print out the amount they will need to pay in words. Make sure you use a while loop so that the program only exits through the comand line using *control d* (depending on your computer settings)

_________________________________________________________________________________________________

Please make sure your program meets these conditions:::

TYPES ( S for student, T for teacher, and E for employee)

For student, they only pay a 9% tax on the car

For Teacher / Faculty Worker, they will pay 10% on the first $1000, followed by 20% on any additional amount over $1000.

Lastly, for an employee type, they will only pay 8%, plus a one time $100 fee add on.

If user enters an amount less than 0, exit program.

If user enters a letter type that is not S, T, or E, exit program.

Program will run using a while loop

_________________________________________________________________________________________________

*This Program Will Use The Following*

-Methods for each function(Such as Main method, Type Method, Amount Conversion Method, etc)

-While Loop For taking inputs

-If / Else Statements

-Switch Statemnts

-Arrays

***SEE EXAMPLES***

Car Rental - Programming Language is in C _________________________________________________________________________________________________ In this assignment,

Example 1: *Car Program* Enter Amount 12345.87 Type: S Answer: one thousand one hundred eleven dollars and twelve cents *Car Program* Enter Amount: 54321.12 Type: T Answer: ten thousand eight hundred forty four dollars and twenty two cents *Car Program* Enter Amount 20123.99 Type: E Answer: one thousand nine dollars and ninety one cents kcontrol D to exit Example 2: car Programk Enter Amount: 12345.87 Type: S Answer: one thousand one hundred eleven dollars and twelve cents *Car Program* Enter Amount-1 Please enter a number greater than 0. Try running again. Example 3: *Car Programk Enter Amount: 12345.87 Type: S Answer:one thousandone hundredeleven dollars and twelvecents kcar Programk Enter Amount: 20123.99 Type: X Wrong type was entered. Try running again

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!