Question: Java Programming Remember the parking ticket from Lab01_Task04, let us revisit that idea and expand it a little. This time we would like the user

Java Programming

Remember the parking ticket from Lab01_Task04, let us revisit that idea and expand it a little. This time we would like the user to enter the following details: Car number plate, Cars color, arrival time and departure times (For simplicity time is entered as decimals i.e 8.50 to mean 8h30 and 16.25 to mean 16h15). Your program should then print out a receipt including a tax amount of 15% on the subtotal of the bill, the bill I charged at a flat rate of N$2.50 for every 30 minutes.

Sample run 1:

Enter a number plate: N 88 W

Enter vehicles color: Red

Enter start time and departure time: 8.50 9.75

Output:

+++++++++++++++++++++++

Vehicle Details

Reg: N 88 W

Color: Red

+++++++++++++++++++++++

Arrival: 08h30

Departure: 09h45

+++++++++++++++++++++++

Sub Total: N$6.25

VAT: N$0.94

Total Cost: N$7.19

+++++++++++++++++++++++

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!