Cost Is No Object is a car rental service that specializes in lending antique an
ID: 3628343 • Letter: C
Question
Cost Is No Object is a car rental service that specializes in lending antique and luxury cars to clients on a short-term basis. A typical customer might rent a vintage convertible to transport out-of-town clients to a business meeting, or rent a luxury car to transport a wedding party. The service currently has three employees and 10 vehicles that it rents. List the entities, attributes, and relationships needed to write a program that could simulate one dayExplanation / Answer
class RentalCarBill main() // Declarations String customerName Integer numberOfDays String carType Currency tax Currency billSubtotal Currency totalBill Currency RENTAL_RATE = 35 Currency TAX_RATE = 0.09 output “Enter the customer’s name >> ” input customerName output “What type of car does ”, customerName, “ wish to rent? >>” input carType output “How many days is the ”, carType, “ car needed? >>” input numberOfDays billSubtotal = numberOfDays * RENTAL_RATE tax = billSubtotal * TAX_RATE totalBill = billSubtotal + tax output “Name: ”, customerName output “Type of car: ”, carType output “Number of days: ”, numberOfDays output “Subtotal (before tax): ”, billSubtotal output “Tax due: ”, tax output “Total bill: ”, totalBill return endClass