Hello, this is an assignment that was given to me: "3) You are working for the Greater Metropolitan Podunk Transportation District and they need a program to assist tollbooth agents in collecting tolls for the Fred Derf Memorial Bridge and Running Path. The GMPTD is interested in the total number of people that cross the bridge, the total number of vehicles that cross the bridge, the amount of money collected from tolls and the average money paid per person. There are three kinds of vehicles that cross the bridge, cars, busses and trucks. Cars pay $1 to cross, trucks pay $2 to cross, and busses pay $5 to cross. When a vehicle stops to pay a toll, the tollbooth agent takes the payment and asks the driver for the number of people in the vehicle. The payment does not depend on the number of passengers. Develop a program that keeps track of all the information and can return the key information that interests the GMPTD. Go through each of the steps that we went through in developing the Exercise Management System. There is no display object provided for this exercise so you will simply call getters and output the results to the console with System.out.println(). " It seems pretty easy, however, I am having some problems. Can someone give me some tips or write up the basics of the program that I can work around with? Thanks
It seems to be a Java homework (see reference to System.out.println). pjk, there are several factors working against you: 1) this is a step-by-step exercise where you need to parallel some tutorial. Without the tutorial, noone can help you. 2) it seems to be an easy, routine exercise -- there are no algortihms involved or anything I would suggest posting to a different forum/newsgroup and asking *specific questions* about difficulties you encounter.
Okay, thanks. Sorry about posting the wrong forum. BTW, what typed was the identical assignment, no other details were provided. It needs to be written in Java, and basically just accomplish the above task. Mdalan, not sure what your #1 is saying.