AP - Computer Science Chapter 2 Coding

Complete the following exercises.  The subject of the email should be apcs chap 2 coding. Be sure to keep a copy in your FirstClass account.

Chapter 2 Coding – Java

Write a well commented and designed Java class the meets the following requirements.    Read the suggestions mentioned in the programming style website: http://www.bluej.org/objects-first/styleguideplain.html

Write a Class called Average.  The class should consume the name of a student and his/her 5-digit ID code. The class should consume three scores on tests for this student.  The class should average the scores and assign letter grades according to the following criteria:  A = 93-100;  B = 85 – 92;  C = 75 – 84; NY < 75

Use the following methods:
*Studentame – calls for student name and 5 digit Id number in signature; returns both.
*Averagecores – calls for the three scores, averages the scores and determines lettergrade.
*Printscores –
o Prints concatenated student ID consisting of first three letters of name and first three numbers of student ID  (i.e.  Gaudet, 12345 would be Gau123)
o Prints numerical average and letter grade.




 

Grading Rubric