You are viewing our Forum Archives. To view or take place in current topics click here.
Java OOPs Assignment Help
Posted:

Java OOPs Assignment HelpPosted:

MongoBreath
  • Rising Star
Status: Offline
Joined: Oct 01, 201013Year Member
Posts: 723
Reputation Power: 29
Status: Offline
Joined: Oct 01, 201013Year Member
Posts: 723
Reputation Power: 29
null null null null null null


Last edited by MongoBreath ; edited 1 time in total
#2. Posted:
-Deano
  • Spooky Poster
Status: Offline
Joined: Aug 19, 201013Year Member
Posts: 5,238
Reputation Power: 532
Status: Offline
Joined: Aug 19, 201013Year Member
Posts: 5,238
Reputation Power: 532
Essentially, your UseHandlers class is your overall system. It should have one instance of the cash handler then 4 instances of the ticket handler (one for each route with separate prices for each)

Pick up the ticket type and then depending on what the price is, check for the appropriate amount of cash in the cash handler, if there's enough, check if there is enough tickets to buy one.
If both are OK, deduct the money from the cash handle r then reduce the ticket amount by one.

If I haven't explained it will enough, pm me and I'll explain again when I am on my pc not phone
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.