Wednesday, March 28, 2012

ITC 162 Assignment One

Overview


The first assignment is a grade calculator.


Create a swing form. It should have text boxes for entering course number, number of credits and grade, then a check box to mark if it is a non-numerical grade. If checked, one must select the non numerical grade W, I, NC, A from radio buttons.


When the submit button is clicked it should encapsulate all the fields into an object called grade and pass it to a class called gpaCalculator which adds it to an array list. The gpaCalculator should have a method that loops through the grades, ignoring those with non numerical grades and returns a gpa. (Gpas are calculated by multiplying the grade times the number of credits to get the weight. Then the sum of the weight is divided by the sum of the credits.)


There should be a second button on the swing form to get the GPA. Display the Gpa on the form.




What I am Looking for


The swing form with all it's controls 5 pts

The grade on gpaCalculate classes 5 pts

The swing event handlers 5 pts

Correct GPA calculation and display 5 pts




What To Turn in


zip all the project files and post them on Google docs. Share it with spconger@gmail.com



No comments:

Post a Comment