Question: Lab 7 Inheritance Directions for completing and submitting the lab assignment: 1 . To complete the assignment, design an UML class diagram, and then use

Lab 7 Inheritance
Directions for completing and submitting the lab assignment:
1. To complete the assignment, design an UML class diagram, and then use jGRASP or
another IDE tool, to write and compile source code for the program. Both types of files
should include your name, course number, section number and assignment number
in the upper-left corner.
2. In java source code, you also need to:
a. Indent your code.
b. Follow naming rules and conventions to name class, method, variable, and
constant.
c. Use proper whitespace.
d. Write Javadoc comments for classes and methods in the service class, and other
comments for other statements as needed.
3. Submission:
Place all files including the class diagram, and java files (could be separated or ONE
file for one program) into a folder, named FirstInitialLastName_Lab#, and compress
the folder as a zip file. Then submit the zip file in the drop box.
Lab Assignment (100 points):
Do Programming Challenges 4,5, and 6 on Pages 697-698 in the textbook, and demonstrate all
of them in one application.
1) Copy the four existing classes, GradedActivitity, FinalExam,
PassFailActivitity, and PassFailExam in Module 7 Code Examples. Suppose
they were created by others, and you are unable to see source code, DO NOT modify
code in these classes. You just use them in your program for this lab.
UML class diagram:
a. Your class diagram should include all of service classes (the existing classes and
classes created by you) and interface. (The application class in the diagram is
optional)
b. For the existing classes, here is an option: you dont have to list data members and
methods; just list the class name in a rectangle box and show relationships to other
classes/interface. E.g.,
GradedActivity

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!