Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Halloween Party

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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".
 
reply
    Bookmark Topic Watch Topic
  • New Topic