lab 5 (1).pdf - CIS 254 Spring 2021 CIS 254 – Assignment 5...

This preview shows page 1 - 2 out of 3 pages.

The preview shows page 1 - 2 out of 3 pages.
CIS 254Spring 2021CIS 254 – Assignment 5Classes, Objects, Methods and StringsDue Date: Friday February 19, 2021 (by midnight)Weight: 2 pointsObjectives: Simple Classes and ObjectsWhat to submit:Consider theGradeBookclass given on slide 40 and theGradeBookTestclass given on slide 41of the “03 – Classes, Objects, Methods and Strings” set of lecture slides (posted under Week 4).For convenience, those two classes are reproduced below without line numbers, on pages 2 and 3respectively. But remember that copy/paste from a *.pdf file into a *.java file may introduceunwanted characters.Notice thatScannerhad been added toGradeBookTestin order to suggest more general input.1) Recreate those two classes and compile them using the following command:> javacGradeBook.javaGradeBookTest.javaIfyourcompilationissuccessful,youshouldnowhaveGradeBook.classandGradeBookTest.class files in your folder.Run this program using the following command:> java GradeBookTest2) Modify classGradeBookas follows:a)Add aString

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 3 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture