Question: Write a java program called CarRental that computes the cost of renting a car for a day based on the size of the car: economy

Write a java program called CarRental that computes the cost of renting a car for a day based on the size of the car: economy 20$ a day, medium 35$ a day, or full-size 50$ a day. Include a constructor that requires the car size. Add a subclass (inheritance) called CarGPS to add the option of a car GPS. If a user chooses to have GPS then he/she will be charged extra 10$.Write a program called UseCarRentalAndGPS to use these classes. This assignment requires basic user input. Inputting if the car is economy, medium, or full-size. Also there must be userinput for if they want gps. Please do this assignment with as much simplicity as possible so i may understand what exactly you are doing.

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!