Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

C++ 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: (e)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 : (c)ar, (b)us, (t)ruck? ; Time Entered Car Park: 2 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

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

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions

Question

2. Whats involved in listening?

Answered: 1 week ago

Question

Discuss the techniques of job analysis.

Answered: 1 week ago

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

What is job description ? State the uses of job description.

Answered: 1 week ago

Question

What are the objectives of job evaluation ?

Answered: 1 week ago

Question

=+5 Does this case provide an example of the future for IHRM?

Answered: 1 week ago

Question

=+4 How did it affect HR?

Answered: 1 week ago