A university wants to
aumomate the parking area present inside the premise. Students and faculty members are
required to buy passes in order to park their vehicals in the parking lot.
types of passes available are :
Weekly pass : 70 rs
Monthly pass : 280 Rs
pass : 3000 Rs
Weekly pass : 35 rs
Monthly pass : 140 Rs
Yearly pass : 1500 Rs
Further more there are discounts available for different types of parking customers :
Students : 0%
Faculty : 10%
Dean / Principle / Directors : 50%
Design an implement the
parking lot automation system while keeping the following scenarios in mind .
customer tries to park the vehical if his pass has expired then he should not be allowed
If a customer tries to park the vehical if his pass is expiring in 10 days then he
should be notified that the pass is getting expired and he should renew it
A customer can
have multiple vehicals so proper pass should be used for parking
A sample interection of
the system in the main method should look like :
== Menu ==
1. Register a customer
3. park car
Register a vehical for a customer
3. Issue a pass for the customer
4. Print details of
the customer (containing details of the vehicals registered with him with passes )
PLEASE SUGGEST ME WHAT ALL CLASSES I HAVE TO MAKE(according to opps concept) TO MAKE THIS PROGRAMME. THIS IS A TEST FOR ME ...AND I HAVE TO SUBMIT IT ON MONDAY SO PLEASE REPLY SOON.
my idea is that there should be :
1) parking form class - which store details of customer as well as his vichle also.
2) pass class- which store all methods for issuing pass.