Dr. Johnson's Review Sheet for CIS 270 Exam 2 |
Materials covered: Chapters 9, 10, 11
Assignments covered: Assignments 4, 5, 6
How to study (in order of priority):
- Review slide shows and text, take notes
- Review the above assignments
Resources you can and cannot use:
You can use any books, notes, or files that you bring. You can also use the Internet for information. You cannot share book, notes, or files with anyone else during the exam. You cannot communicate with anyone during the exam. Violation of these rules will result in an XF grade in the course.
Sample test problem:
Create a Person class with instance fields name and ssn. Create a Student class with instance field gpa, which inherits from Person. Each of these classes should have a toString() method that uses only the instance fields for its respective class. Create a GUI with labels and fields for ssn, name, and GPA. Clicking an Add button will add these data to a text file, clear the text fields, and display the student information in an uneditable text area (print the Student object). Clicking a Calculate GPA button will read all data from the file and display the average GPA in an uneditable text field. Use exception handling to warn the user to use only valid numbers for GPA and allow the user to re-enter an invalid GPA. Follow all good programming practices and Java conventions. Completely document both classes (javadoc not required).
The solution is at file://cisclass/Class/CIS270/Johnson/Sample Programs