Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago