*
The moose likes Beginning Java and the fly likes Halloween Party Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Halloween Party" Watch "Halloween Party" New topic
Author

Halloween Party

Marving Guildon
Greenhorn

Joined: Sep 17, 2003
Posts: 9
Hello friends,
I got the task to create a program to assist in hosting of a halloween party. The program must call methods kept in the PartyXXX file from the main method PartyXXXStart. One method must serve to display the party location, time and what to bring, another method could calculate the cost for the party and who will be invited, and other method could be a list of the most popular customs. The program must included a switch statement, a for statement, three or more methods, an array, a loop, an if statement and instance variables and methods.
If you have already created a similar program that could be adjusted or if you have any idea that you want to share, please let me know.
Here is what I have so far, first the error messages:




Here is the main program:

At least I leaned how to post the question.
[ October 06, 2003: Message edited by: Marving Guildon ]
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
What have you done with this assignment so far? What ideas do you have for completing this assignment besides copying/adjusting someone else's work?


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Sloan Bowman
Ranch Hand

Joined: Jan 21, 2003
Posts: 107
I'll be glad to help you with this program but you need to think about it and come up with a plan first. Feel free to send me a personal message and we can work together on it. Seems rather simple.
Marving Guildon
Greenhorn

Joined: Sep 17, 2003
Posts: 9
This is what I have so far:

Here is the main method:

And here is the error message for PartyXXX:

Can you help to solve this error?
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
array.output();
This statement says "look for the variable named "array" and execute it's output method.

I don't see a variable named "array" in your program. It would be a really lousy choice for a variable anyway due to the confusion factor. Same goes for methods named "array".


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Halloween Party