jonathanwangg

application class for student grade book

Aug 12th, 2016
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.82 KB | None | 0 0
  1. /*
  2.  * --- Student Grade Book Application ---
  3.  * Keep track of students (with a student class that has their name, average, and scores) in a class and their grades.
  4.  * Assign their scores on tests and assignments to the students and figure out their average and grade for the class.
  5.  * For added complexity put the students on a bell curve.
  6.  */
  7.  
  8. // I think this will require multidimensional arrays
  9. public class application {
  10.    
  11.     public static void main(String[] args) {
  12.        
  13.         Student student1 = new Student();
  14.        
  15.         student1.setName("Bob"); // Should the name of the student be declared here with a setName?
  16.         student1.setTestScore1(80);
  17.         student1.setTestScore2(60);
  18.         student1.setFinalExamScore(90);
  19.        
  20.         student1.calculateEntireAverage();
  21.         System.out.println(student1.calculateEntireAverage() + "%");
  22.        
  23.     }
  24. }
Add Comment
Please, Sign In to add comment