Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

class RentalCarBill ­­main() // Declarations ________ customerName ________ numb

ID: 3623451 • Letter: C

Question

class RentalCarBill
­­main()
// Declarations
________ customerName
________ numberOfDays
________ carType
________ tax
________ billSubtotal
________ totalBill
________ RENTAL_RATE = 35
________ 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 = ______________ * ______________
_________ = billSubtotal * TAX_RATE
totalBill = ________ + __________
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

Explanation / Answer

please rate - thanks

don't know how you learned this, hopefully what you need

class RentalCarBill
­­main()
// Declarations
__String______ customerName
___integer_____ numberOfDays
__String______ carType
__real______ tax
__real______ billSubtotal
___real_____ totalBill
__constant______ RENTAL_RATE = 35
__constant______ 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 = _____tax___ + ____billSubtotal______
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