aspose file tools*
The moose likes Beginning Java and the fly likes Grading Program..... (part 2) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Grading Program..... (part 2)" Watch "Grading Program..... (part 2)" New topic
Author

Grading Program..... (part 2)

Rose Evans
Ranch Hand

Joined: Oct 14, 2004
Posts: 195
OK guys...I'm starting small. This is what I have so far...Take a peak at my code and see if you can give me some advice... The instructions are at the end of the code.



There are two quizzes, each graded on the basis of 10 points.
There is one midterm exam, and one final exam, each graded on the basis of 100 points.
The final exam counts for 50 % of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (Do not forget to normalize the quiz scores, They should be coverted to percentages before they are averaged in.)

I need to define a class for the student record. The class should have instance variables for the quizzes, miidterm, final, overall numeric score for the course, and final letter grade. The overall numeric score is a number in the range of 0 to 100, which represents the weighted average of the students work. The class should have input and output methods. the input method should not ask for the final numeric grade, nor should it ask for the final letter grade. The class should have methods to compute the overall numeric grade and final letter grade. Thes last two methods will be void methods that set the appropriate instance variables.
________________________________________________________________________

I'd great appreciate any advice.


[ Jess added whitespace and UBB [code] tags to make things easier to read -- check 'em out ]
[ Jess also changed the subject line to differentiate it from the original thread ]
[ October 31, 2004: Message edited by: Jessica Sant ]

) ) ) )
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

I'm moving this to the beginner forum where its more appropriate.
Please post your replies there.

Thanks!
[ October 31, 2004: Message edited by: Jessica Sant ]

- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
Rose Evans
Ranch Hand

Joined: Oct 14, 2004
Posts: 195
Thanks Jess...
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Glad to see it's coming along!

At this point, I think you need to move your code into the class definition, so you can actually create an object with instance variables.

I expect main will look something like...



You've already got your code for the getInput() method, as well as part of your calculateGrade() method and part of your giveOutput() method. You just need to take this out of main and place it inside the appropriate method.
[ November 01, 2004: Message edited by: marc weber ]

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Rose Evans
Ranch Hand

Joined: Oct 14, 2004
Posts: 195
Hum, Ill try. I still really dont know where to begin.

marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Here's a more specific outline...


[ November 01, 2004: Message edited by: marc weber ]
Rose Evans
Ranch Hand

Joined: Oct 14, 2004
Posts: 195
Marc,

Thank you. Im headed home now to try to work on my code. Thanks SO much!!!
 
wood burning stoves
 
subject: Grading Program..... (part 2)