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.

The different
types of passes available are :

Cars :

Weekly pass : 70 rs
Monthly pass : 280 Rs
Yearly
pass : 3000 Rs


2 wheelers

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 .

If a
customer tries to park the vehical if his pass has expired then he should not be allowed

to
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
2.
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.


thanks

Recommended Answers

All 4 Replies

Can you show us anything you've started on this project? Nobody here will do your homework for you, so make an effort! School is about learning...

Standard OO procedure: Go through the spec underlining all the important nouns to get possible classes, eg

Menu
1. Register a customer
2.
3. park car
Register a vehical for a customer
3. Issue a pass for the customer
Some will turn out to be unnecessary, and some will be duplicates, but it's a good start.

The do the same for the important verbs/ verb clauses, eg

1. Register a customer
2.
3. park car
Register a vehical for a customer
3. Issue a pass for the customer
4. Print details ofthe customer

These are good candidates for the top-most methods in your classes.

ps: Most beginners end up with too few classes, which makes each of them too complex. Don't be afraid of small simple classes.

If I were that university I'd contract a specialised company to deliver one of their ready to use, commercially available, and very reasonably priced off the shelf solutions rather than get some first year students to develop it for them.

But that's just me...

JamesCherril ,
Thanks, your sulution was realy very helpfull for me.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.