• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help with question being asked for my project  RSS feed

 
raul vargas
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The instructions state:

"Create setProjectScore() and setQuizScore() methods for the arrays. These should only take a double as a parameter and an int as a project or quiz number. These methods should return a boolean to indicate success or failure, depending on if the project or quiz number is out of the bounds of the array. The setProjectScore() and setQuizScore() methods will place the double value into the project or quiz number index of its respective array."

I am having problems with the first part that says " these should only take a double as a parameter and an int as a project or quiz number ".

The set methods I have so far:



 
Henry Wong
author
Sheriff
Posts: 23283
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
raul vargas wrote:
I am having problems with the first part that says " these should only take a double as a parameter and an int as a project or quiz number ".


It is probably a good idea to ask your instructor what that sentence means. After all, he/she wrote it, so he/she is probably best to clarify it.

Henry
 
raul vargas
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

It's been a day since I asked(I'm taking an online course) and I still haven't had a response back. I figured I'd get more help here than I currently am.
 
Paul Clapham
Sheriff
Posts: 22505
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you ask yourself what the "setProjectScore" method is supposed to do, you might then be able to see what parameters the method should have.

And when I say "what it is supposed to do" I'm not talking about the Java code you're going to write, I'm talking about the design. So if you were explaining to your mother what the method is supposed to do, what would you say?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!