Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA PROJECT Java Applications Cumberland Training Services ( CTS ) has commissioned your firm to design and develop an application that can simulate their instruction

JAVA PROJECT Java Applications

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Cumberland Training Services ( CTS ) has commissioned your firm to design and develop an application that can simulate their instruction policies, procedures and processes. Your programming team has been chosen for this task and they have suggested an implementation of object - oriented programming with classes, objects and inheritance. Using the skeletal starter code provided, write and test the program code that will accomplish any of the tasks that follow, in accordance to the class definitions and specifications. (i) Include a parent class named Instructors. This class will define all the typical instructor properties and actions such as teaching budgets, locations of training classes, level of instructor knowledge, and teaching materials. (ii) Include a derived class named Spartans. This class will re - define an instructor to include special attributes and actions for this classification. An instructor of this class type is one that has exhibited superior instructional style and is considered as the top level that the firm possesses. Spartan class instructors will therefore be allocated a greater dollar amount for their teaching budget and have precedence to instruct in the newer classrooms that the firm has just constructed. (iii) Include a derived class named Athenians. This class will re - define an instructor to include special attributes and actions for this classification. An instructor of this class type is one that has exhibited excellent instructional style and is considered as almost at the top level that the firm possesses. Athenian class instructors will be allocated a dollar amount for their teaching budget, which is to be a lessor amount than the Spartan class. Athenian class instructors have secondary precedence to instructing in the newer classrooms that the firm has just constructed. Their primary instructional location in the firm's building is within one of the older classrooms. (iv) Include a test class that can be used to instantiate objects of the above classes. These objects can be used to assign properties to instructors and to run any necessary actions. Actions can be how your class objects assign data and get data from it class and perhaps from the parent class. Include in main the following. For your instructor object: Set a standard budget amount of $2000. Set 4 locations (into an array) for training classes. east (for Spartans), west (for Athenians), north and south locations will be for standard instructors. Set three desired levels of instructor knowledge (into an array) as beginner, intermediate (for Athenians) and advanced (for Spartan) levels. For teaching materials set (into an array) values as texts, computers, and software. For your Spartan object Set or "override" the standard budget and set it at $$000. For your Athenian object Set or "override" the standard budget and set it at $3000. Figure 3 Source Code for the Java Inheritance Program: Class Athenians \begin{tabular}{|l|} \hline public class Athenians extends Instructors \\ { public Athenians() \{\} \\ \hline \end{tabular} Figure 4 Source Code for the Java Inheritance Program: Test Class \begin{tabular}{l} publicclassTestClass{{publicstaticvoidmain(String[]args)Instructorsinstructor=newInstructors();Spartansspartan=newSpartans();Atheniansathenian=newAthenians(); \\ \hline \end{tabular} Sample output displays Figure 5 Source Code for the Inheritance Program: Test Class (Starter Code)

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

Distributed Relational Database Architecture Connectivity Guide

Authors: Teresa Hopper

4th Edition

0133983064, 978-0133983067

More Books

Students also viewed these Databases questions