• 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:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Need help with question being asked for my project

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:



 
author
Posts: 23928
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 27460
88
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic