| View previous topic :: View next topic |
| Author |
Message |
mickym2005 How do I cheat?
Reputation: 0
Joined: 13 Oct 2007 Posts: 8
|
Posted: Mon Dec 08, 2008 10:24 pm Post subject: For anyone who knows java coding |
|
|
i wanted to learn some java so i took a class. i got an assignment that has to do with arrays, but i cant figure out how to do it. if anyone could help it would be much appreciated. thanks
question:
write a class encapsulating the concept of converting integer grades to letter grades(A,B,C,D or F), assuming grades are composed of a list of integers between 0 and 100.
what needs to be done:
1)a constructor with just one parameter, the number of students; all grades can be randomly generated.
2) A method returning an array of chars corresponding to the integer grades( 90 or above should be converted to A, 80 or above to B etc...
3) A method returning a number of array of ints counting how many A's, B's, C's, D's, and F's were received.
|
|
| Back to top |
|
 |
FullyAwesome I post too much
Reputation: 0
Joined: 05 Apr 2007 Posts: 4438 Location: Land Down Under
|
Posted: Mon Dec 08, 2008 10:35 pm Post subject: |
|
|
*cough*
_________________
|
|
| Back to top |
|
 |
darkex I post too much
Reputation: 0
Joined: 29 Aug 2008 Posts: 2006 Location: Australia
|
Posted: Mon Dec 08, 2008 10:59 pm Post subject: |
|
|
| shouldn't this be in general programming?
|
|
| Back to top |
|
 |
FullyAwesome I post too much
Reputation: 0
Joined: 05 Apr 2007 Posts: 4438 Location: Land Down Under
|
Posted: Mon Dec 08, 2008 11:13 pm Post subject: |
|
|
| darkex wrote: | | shouldn't this be in general programming? |
hence the cough. ^^^
_________________
|
|
| Back to top |
|
 |
|