Develop a set of classes for a college

Assignment Help JAVA Programming
Reference no: EM13940180

Develop a set of classes for a college to use in various student service and personnel applications. Classes you need to design include following:

- Person: A Person contains a first name, last name, street address, zip code, and phone number. The class also includes a method that sets each data field and display method that displays all of a Person's information.

- CollegeEmployee: CollegeEmployee descends from Person. A CollegeEmployee also includes a Social Security number, an annual salary, and a department name, as well as methods that override the Person methods to accept and display all collegeEmployee data.

- Faculty: Faculty descends from ColegeEmployee. This class also includes a Boolean field that indicates whether the Faculty member is permanent, as well as methods that override the CollegeEmployee methods to accept and display this additional piece of information.

- Student: Student descends from Person. In addition to the fields available in Person, a Student contains a major field of study and a grade point average as well as methods that override the Person methods to accept and display these additional facts.

Write a test Java program named CollegeList that declares an array of four "regular" CollegeEmployees, three Faculty, and seven Students. Prompt the user to specify which type of person's data will be entered ('C', 'F', or 'S' indicates CollegeEmployee, Faculty, and Student respectively) or allow the user to quit ('Q'). While the user choose to continue (that is, does not quit), accept data entry for the appropriate type of Person. If the user attempts to enter data for more than four CollegeEmployees, three Faculty, or seven Students, display an error message. When the user quits, display a report on the screen listing each group of Persons under the appropriate heading "College Employees," "Faculty," or "Students." If the user has not entered data for one or more types of Persons during a session, display an appropriate message under the appropriate heading.

Save the files as Person.java, CollegeEmployee.java, Faculty.java, and Student.java, and CollegeList.java.

Reference no: EM13940180

Questions Cloud

Invested in twelve different stocks that have combined value : Steve has invested in twelve different stocks that have a combined value today of $121,300. Fifteen percent of that total is invested in Wise Man Foods. The 15 percent is a measure of which one of the following?
Annualized annual payment over the term of the loan : Due to new air pollution standards, a company needs to invest in a new $150,000 environmental control technology. They have two options: either take out a loan or to purchase it themselves. a) If the company chooses to borrow the $150,000 from a bank..
Estimate the probability that the exchange rate : An exchange rate is currently $1.20. The volatility of the exchange rate is quoted as 15% and interest rates in the two countries are the same. Using the lognormal assumption, estimate the probability that the exchange rate in six months will be (a) ..
Counterfeit goods with counterfeiters : Introduction "Counterfeiting is said to be the crime of the 21st century." (Cademan, A & Henriksson, R & Nyqvist, V. (2012). The luxury brand market is highly associated with counterfeit goods with counterfeiters attempting to replicate many big n..
Develop a set of classes for a college : Person: A Person contains a first name, last name, street address, zip code, and phone number. The class also includes a method that sets each data field and display method that displays all of a Person's information.
Put–call parity formula for an option on a currency : How does the put–call parity formula for a currency futures option differ from the put–call parity formula for an option on a currency?
Variable cells and model variable : How much would the return for US oil have to increase before it would be beneficial to increase the investment in this stock? How much would the return for Huber Steel have to decrease before it would be beneficial to reduce the investment in this st..
Solve the below given equation : Solve the below given equation If 3 = log10 27 + 3 log10 x, solve for x Show complete steps, how did you reach the answer.
Suppose bursa had used the cost relationships determined : Suppose Bursa had used the cost relationships determined in part a to estimate the total manufacturing overhead expected for the months of February and March.

Reviews

Write a Review

JAVA Programming Questions & Answers

  In cryptarithmetic puzzles mathematical equations are

in cryptarithmetic puzzles mathematical equations are written by using letters. each letter can be digit from 0 to 9

  Frequently used java array method

Frequently used java array method -method name and parameter

  Enterprise java beans (ejb) in software development

Enterprise Java Beans (EJB) in software development, EJB technology, EJB application, Stateless Session Beans (SLSB), Stateful Session Beans (SFSB), Message Driven Bean (MDB), Entity Bean

  Write a class that implements an ordered list of strings

In this problem you will write a class that implements an ordered list of Strings.

  Write java program which simulates flipping of coin

Write a Java program which simulates flipping of coin 1000 times and prints total number of heads and tails. You should create a class.

  A method that takes a two-dimensional array

A method that takes a two-dimensional array of int's as a parameter and searches the array for the second parameter, returning true if the second parameter matches any of the integers in the array, and false otherwise.

  1 ra row your boatprepare a world with a boat a person

1. ra row your boatprepare a world with a boat a person sitting in the boat an island and a pier located 25 meters from

  Write the java code for an abstract class named account

Write the Java code for an abstract class named Account which has two data members; one for the account number and the other for the account balance (use information hiding). The Account class should include get and set methods for both data membe..

  Create your own online store web site selling products of

create your own online store web site selling products of your choice.create pages that allow you to search and buy

  Determine the retail price for each product

Your program should use a switch statement to determine the retail price for each product. It should calculate and display the total retail value of all products sold. Use a sentinel-controlled loop to determine when the program should stop loopin..

  Print the initial array and the resulting array

Take an N x N matrix, and create a new, (N-1) x (N- 1), matrix with each element being the sum of four nearby elements. You need to figure out a way to break the matrix up into squares and iterate through the matrix, while staying within its bound..

  Robot preparing for competition

Create an event so that the skateboard can be controlled by game player

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd