Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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):String

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Oracle Fusion Applications Installation And Administration

Authors: Tushar Thakker

1st Edition

1484209834, 9781484209837

More Books

Students also viewed these Databases questions

Question

1. What do I mean? Do I define things adequately?

Answered: 1 week ago