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

  Write a method named longestword

Write a method named longestWord that accepts a String as its parameter and returns the length of the longest word in the string.

  Write a program which randomly chooses an integer

Write a program which randomly chooses an integer from 1 to 100. The program should then tell the user.The program should then ask the user to complete the puzzle such that each row and each column consists of the letters

  Calculates the product of the following sequence

Write a java code that calculates the product of the following sequence of numbers using for/loop and do/while/loop

  What is an example of a javascript framework

What is an example of a JavaScript(r) framework? In the framework you have described, what is an example of an application that would work well on the site you are building for the class? What is the purpose of the application and how will it enha..

  Strong authentication can also risk availability

Strong authentication can also risk availability. A simple example is that forgetting your password denies you access to that which required a password. Sometimes the stakes are high, for example, if a network administrator is the only one who knows ..

  Java method that contains code to be executed

Write a short Java method that contains code for which it is probably impossible for that code to ever be executed, but your favorite Java compiler does not detect this fact.

  Hypothetical situation

Hypothetical Situation - A company lowers its price of an economy car a small amount   ($15,000 to $14,000) Sales go from 10,000 units to 50,000 units. Another company lowers its price on a luxury car a large amount ($80,000 to $40,000). Its sales go..

  Sorted list adt and the binary search tree adt

Explain the differences between our specifications of the Sorted List ADT and the Binary Search Tree ADT.

  If you are using the blackboard mobile learn app please

if you are using the blackboard mobile learn app please click view in browser. technical project address bookthis

  Compute and display the monthly payment

Compute and display the monthly payment -  programming problem can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results.

  Write a program that plays the memory matching game

Create a class HugeInteger which uses a 40-element array of digits to store integers as large as 40 digits each - output a large number of newlines to force the old board.

  Writing a program to calculate the terms

The third programming project involves writing a program to calculate the terms of the following sequence of numbers: 0 1 2 5 12 29 ... where each term of the sequence is twice the previous term plus the second previous term. The 0th term of the s..

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