Question
How do I do this using basic java without using hash mat Using the attached UML class diagram, create a class for each of the
How do I do this using basic java without using hash mat
Using the attached UML class diagram, create a class for each of the classes using inheritance. Write a program that does the following:
Creates one object for each of the classes
Create an array to hold these objects and add the object references to the array
Using a for loop, traverse the array and execute toString on each of the object references in the array
Upload one zip file containing all of your java code and a snip of the output of running your program to show that it works.
Notes:
addCredits adds course credits to the tally for the student. For example, a student needs 132 credits to graduate and most classes are 2, 3, or 4 credits. When a student passes a course, credits can be added to their tally.
giveRaise adds a raise amount to a CollegeEmployee's salary
C CollegeEmployee (def ault package) G Student (def ault package) a annualSalary: double a yearStarted: int OCollegeEmployee(String,int,String, double,int) o getAnnualSalaryO:double o giveRais e(double)void o toString):String a credits: double a balance: double OStudent(String, int, String,double,double) o getBalance) double o addCredits (double):void o payBalance(double):void o toString):String C CollegeEmployee (def ault package) G Student (def ault package) a annualSalary: double a yearStarted: int OCollegeEmployee(String,int,String, double,int) o getAnnualSalaryO:double o giveRais e(double)void o toString):String a credits: double a balance: double OStudent(String, int, String,double,double) o getBalance) double o addCredits (double):void o payBalance(double):void o toString):StringStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started