Ben Kopel

Greenhorn
+ Follow
since Feb 25, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ben Kopel

Howdy Ranchers...

This being one of my first Java projects, it's got me stumped. Basically, the project is this: An airline has 10 seats (First class 1-5, Economy 6-10). The user is prompted to enter 1 (for First) or 2 (for Economy). Once First or Economy is full, the user should be told it is full and asked whether it's ok to be seated in the non-full section. When both sections are full, it should display "Next flight leaves in 3..." message.

I've got most of it, but cannot figure out how to display and prompt the user with the message that one section is full, would they like to sit in the other (firstFullChoice).

Also, I was getting the Plane full message (Next flight leaves in 3...) before, but for some reason, that's not appearing anymore.

Any suggestions are very much welcome.




EDIT by mw: Added much-needed Code Tags.
[ February 25, 2007: Message edited by: marc weber ]
17 years ago