Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

LAB TEST 2 (CSC1511) A car parking company needs to efficiently issue receipts to customers based on their vehicle type and amount of time parked.

image text in transcribed
image text in transcribed
LAB TEST 2 (CSC1511) A car parking company needs to efficiently issue receipts to customers based on their vehicle type and amount of time parked. You have been hired to develop a simple Easy Car Park System that will enable the carpark company to issue receipts to the customers quickly. The carpark company allows parking for car, bus and truck. The charges are based on the vehicle type and also the amount of time parked. Table below shows all the necessary information with the carpark charges for the vehicles: - Vehicle Type Vehicle Car Bus Truck b t Rate RM 2 per hour, or part thereof RM 3 per hour, or part thereof RM 4 per hour, or part thereof *If other than the available vehicle type chosen, an appropriate Error Message should be displayed. Sample Output: Easy Car Park Ticketing System How many vehicles? 2 PARKING 1 Vehicle Type : (c)ar, (b)us, (t)ruck? b Time Entered Car Park: 10 30 Time Exited Car Park: 14 20 PARKING RECEIPT Vehicle Type : BUS => RM 3.00 per hour (or part thereof) Hours parked is 4 hours Please pay this amount > RM12.00 PARKING 2 Vehicle Type : Char, (b)us, (t)ruck?! Time Entered Car Park: 9 20 Time Exited Car Park: 16 40 PARKING RECEIPT Vehicle Type: TRUCK => RM 4.00 per hour (or part thereof) Hours parked is 6 hours Please pay this amount RM24.00 Total Revenue for the day RM36.00 Thank you and Have a Nice Day

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_2

Step: 3

blur-text-image_3

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

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions

Question

=+What is the procedure for labor relations in the workplace?

Answered: 1 week ago