Java Homework:(The Person, Student, Employee, Faculty, and Staff classes) Design a class named Person and its two subclasses named Student andEmployee. Make Faculty and Staff subclasses of Employee. A person has a name, address, phone number, and email address. A student has a class status (freshman, sophomore, junior, or senior). Define the status as a constant. An employee has an office, salary, and date-hired. Define a class named MyDate that contains the fields year, month, and day. A faculty member has office hours and a rank. A staff member has a title. Override the toString method in each class to display the class name and the person's name.
class Person{
//A person has a name, address, phone number, and email address.
String name;
String address;
String phone;
String email;
}
class Student extends Person{
//A student has a class status
//(freshman,sophomore, junior, or senior).
//Define the status as a constant.
final int freshman =1;
final int sophomore =2;
final int junior=3;
final int senior=4;
int status=freshman;
}
class Employee extends Person{
//An employee has an office, salary, and date hired.
String office;
double salary;
java.util.Date dateHired;
}
class Faculty extends Employee{
//A faculty member has office hours and a rank.
String officeHours;
String rank;
}
class Staff extends Employee{
//A staff member has a title
String title;
}
public class ex112{
}
The outline is given above. Fill in between brackets to finish! Thank you :)

Answers

Answer 1

Answer: Wait, so what is the question exactly..?


Related Questions

how to write email abut new home your friend ​

Answers

Answer:

Start off with a greeting like Dear Sarah. Then you write a friendly body that tells about your home and describe it as much as you can and tell about what your bedroom theme is like and so on. Finally, top it off like a closing like Sincerely, Tessa.

Answer:

you start off by saying

Dear (name), talk about how your house is comforting and things like that... I hope thats what you were asking for.

Choose the best technology device for the
scenario below.
A business professional works in an office
designing graphics for a company's
advertisements.
O Tablet PC
o Smartphone
Desktop computer with 2 screens
Laptop computer

Answers

Answer:

Desktop computer with 2 screens

Explanation:

All graphices designers need the most screen space possible

Answer:

Desktop computer with 2 screens

Explanation:

An employee’s total weekly pay equals the hourly wage multiplied by the total number of regular hours, plus any overtime pay.

Overtime pay equals the total overtime hours multiplied by 1.5 times the hourly wage.

Write a program that takes as inputs the hourly wage, total regular hours, and total overtime hours and displays an employee’s total weekly pay.

Below is an example of the program inputs and output:

Enter the wage: $15.50
Enter the regular hours: 40
Enter the overtime hours: 12

The total weekly pay is $899.0

Answers

wage = float(input("Enter the wage: $"))

regular_hours = float(input("Enter the regular hours: "))

overtime_hours = float(input("Enter the overtime hours: "))

print(f"The total weekly pay is ${(regular_hours * wage) + ((wage*1.5) *overtime_hours)}")

I hope this helps!

Helppp!!! Will give brainliest! Which of these operating system use the organize file?

Hypervisor

Firmware or wetware

Folders or directories

Output devices

Answers

Answer:hyperviser

Explanation:

1. The trucks hauling asphalt have a maximum capacity of 5 US tons (10,000 lbs) 2. The standard road lane is 12 feet wide. 3. Asphalt weighs 150 lbs per cubic foot 4. Asphalt costs $200 per ton 5. Power and water utilities are run in a conduit pipe under the road as part of all road projects 6. Conduit pipe is available only in 24 ft. lengths - each length costs $500 7. There is one intersection for every mile of road a. a 1 mile road has 1 intersection b. a 2 mile road has 2 intersections c. a 2.99 mile road has 2 intersections 8. Stoplights cost $25,000 per light 9. Each intersection has two stoplights, plus one additional stoplight for each lane a. a 1 lane road has three stop lights at each intersection b. a 2 lane road has four stop lights at each intersection c. a 3 lane road has five stop lights at each intersection 10. Work days are 8-hour days 11. All workers are paid $25 per hour12. Crew members can complete an amount of work in a specified time according to the equation below: crewMember = 50 . miles . lanes/days Test Data Test #1 Given Inputs Length of road project (miles) : 2.75 Number of lanes 3Depth of asphalt (inches) 12 Days to complete project 30Expected Output - Amount of materials needed === Truckloads of Asphalt : 7841 Stoplights : le Conduit pipes : 605 Crew members needed : 14 = Cost of Materials ============ Cost of Asphalt : $7841000.ee Cost of Stoplights : $250000.00 Cost of Conduit pipes : $302500.ee Cost of Labor : $84882.ee - Total Cost of Project - Total cost of project : $8477500.ee

Answers

Answer:

please write in a better way, and make it easy for us to read.

which of the following is a chemical change.

A: Separating water into different glasses
B: breaking frozen ice cubes with a hammer
c: running an electric current through water
d: boiling water to evaporate it on a stove.

Answers

Answer:c

Explanation:

Work made for hire. If an employer asks an independent designer to create an illustration, the copyright to that artwork is owned by the employer. true or false?

Answers

Answer:

False

Explanation:

On the basis of the designer being "independent", the artworks copyright remains with the designer. Being independent requires contractual transfer of copyright in the event that its created for another person.

The answer would be false trust me I just did this and got it correct.

What’s command do we use to update a file on MySQL?

Answers

Answer:

The MySQL update command/query is used to update existing records in a table in a MySQL database.

TCP is a more dependable protocol than UDP because TCP is_____ latent/connectionless/connection-oriented/encapsulated

Answers

Answer:

connection-oriented

Explanation:

Answer:

TCP is a more dependable protocol than UDP because TCP is

connection-oriented

Explanation:

Because I took a guess and that was the  

What does the measurement tell you?

Estimate at completion

Answers

Answer:

forecasted cost of the project, as the project progresses/"The expected total cost of completing all work expressed as the sum of the actual cost to date and the estimate to complete." - PMBOK Guide

Explanation:

Measurement tells u the accurate measure of something

Difference between entropy and enthalpy is

Answers

Answer:

Explanation:

Enthalpy is the measure of total heat present in the thermodynamic system where the pressure is constant. Entropy is the measure of disorder in a thermodynamic system.

Compare a Wi-Fi hotspot with a cybercafé.

Answers

Answer:

A WiFi Hotspot is a wireless internet connection that allows a computer, smartphone, or any other internet-enabled devices to connect to internet access points.

A cybercafe refers to any business place that allows people to access the internet usually within its premises after paying for connection access to connect to it.

Explanation:

give the imporntance of having standard funiture in the laboratory​

Answers

Answer:

I guess if there is experiment going on in absence one of those furniture then the experiment isn't successful

1. Discuss data processing concepts and the representation of data in the computer


2. Explain how they work together to process data

Answers

Answer:

gkvjbdsvjnmfbhui jgbfdshjcxvabgsuciusgBFIULWGSfuRyt vqwyrgfgweVGYGTV7BWUIEGDWYUGDCYg

Explanation:

Which of the following occupations is least likely to involve use of a computing device on a day-to-day basis?

Janitorial duties
Cashier in a bank
Journalist
Records clerk in a hospital

Answers

Answer:

Janitorial duties

Explanation:

Can some one help me plz

Answers

Answer:

ONE

Explanation:

The output is one if x is equal to 9 % 2

Why do you think there is activity even when you are not actively using network services?

Answers

Answer:

Every social media platform has an algorithm, and just because you aren't using it, doesn't mean others are not engaged!

Explanation:

which role belongs to the operating systems
A.
identifying new viruses
OB.
helping the user operate without any hardware devices
O C.
assigning memory to a particular process
OD
preventing two processes from running simultaneously

Answers

Answer: D

Explanation:

Can I publish my book on Google?

Answers

Publish to Google Play and Google Books will display your book both on Google Books and in the Google Play Store. Publish to Google Books only will display your book on Google Books, with the full text searchable and the specified percentage available to read online.

Answer:

☆|《HOPE IT WILL HELP YOU 》>☆

Explanation:

YES YOU CAN PUBLISH YOUR BOOK ON GOOGLE

please mark my ans as BRAIN LIST

How can you crop a photo in PowerPoint?

Answers

Answer:

Yea

Explanation:

jus click on the image and it should give you the option to crop it :)

Yes by clicking on the picture and selecting crop image

What does the measurement tell you?

Planned value

Answers

Answer:

i think it is Planned Value is the approved value of the work to be completed in a given time. It is the value that you should have been earned as per the schedule. ... Total Planned Value for the project is known as Budget at Completion (BAC). Planned Value is also referred to as Budgeted Cost of Work Scheduled (BCWS).

Explanation:

im not sure tho srry if its wrong have a good day:)

what is input devices​

Answers

DescriptionIn computing, an input device is a piece of equipment used to provide data and control signals to an information processing system such as a computer or information appliance. Examples of input devices include keyboards, mouse, scanners, [[digital camera]The]s, joysticks, and microphones.

Answer:

An input Device are used to enter information such as letters, numbers, sounds or pictures into a computer.

Write a program that asks the user to enter the size of a triangle (an integer from 1 to 50). Display the triangle by writing lines of asterisks. The first line will have one asterisk, the next two, and so on, with each line having one more asterisk than the previous line, up to the number entered by the user. On the next line write one fewer asterisk and continue by decreasing the number of asterisks by 1 for each successive line until only one asterisk is displayed. (Hint: Use nested for loops; the outside loop controls the number of lines to write, and the inside loop controls the number of asterisks to display on a line.) For example, if the user enters 3, the output would be:_______.a. *b. **c. ***d. **e. *

Answers

Answer:

Implemented using Python

n = int(input("Sides: "))

if(n>=1 and n <=50):

    for i in range(1,n+1):

         for j in range(1,i+1):

              print('*',end='')

         print("")

       

    for i in range(n,0,-1):

         for j in range(i,1,-1):

              print('*',end='')

         print("")

else:

         print("Range must be within 1 and 50")

Explanation:

This line prompts user for number of sides

n = int(input("Sides: "))

The line validates user input for 1 to 50

if(n>=1 and n <=50):

The following iteration uses nested loop to print * in ascending order

   for i in range(1,n+1):

         for j in range(1,i+1):

              print('*',end='')

         print("")

The following iteration uses nested loop to print * in descending order        

    for i in range(n,0,-1):

         for j in range(i,1,-1):

              print('*',end='')

         print("")

The following is executed if user input is outside 1 and 50

else:

         print("Range must be within 1 and 50")

Cyberbullying someone by threatening to hurt them is ethically wrong, but does NOT violate any laws. True False

Answers

False there’s some laws depending how far you go
false hope this helps :)

Class description: A MyString class should behave much like the c++ string class. The class should use a dynamically allocated char array to hold a character string. If the amount of memory allocated to the array is too small to complete some necessary task (e.g., assigning a new character string to the object) the object should automatically double its capacity until it is large enough to complete the task. If it's discovered that the object is using less than 25% of its capacity the object should shrink to half its capacity until it is using more that 25% of its capacity.
Assignment: Implement the MyString class using a header and implementation file named MyString.h and MyString.cpp respectively. Even though MyString.h will be provided on the upload site, create own version for testing code locally. Make sure to properly test code on by creating a test driver that fully tests every function created in the MyString class
Memory Requirements: MyString should start with 10 bytes of allocated memory and should grow in size by doubling. So, we should be able to predict the capacity of MyString as acquiring a patten of 10, 20, 40, 80, ⦠bytes of memory depending of the number of characters stored.
Attributes:
int size â the number of characters currently stored in the string object. Do NOT count the NULL character.
int capacity â the number of bytes currently allocated. This should always be at least size + 1. The extra byte is needed to store the NULL character.
char *data â character pointer that points to an array of characters.
Member Functions:
MyString( ) Constructor
MyString(const char *) Constructor with an initialization character string
~MyString( ) Destructor
MyString(const MyString &) Copy constructor
MyString& operator = (const MyString&) Overloaded assignment operator, make a copy of MyString object
bool operator == (const MyString&) const overloaded equivalence relational operator
char& operator [ ] (int) overloaded [ ] should return a char by reference
void operator += (const MyString&) overloaded += operator, use to concatenate two MyStrings
MyString operator + (const MyString&) const Create a new MyString object that is the concatenation of two MyString objects
void getline(istream&, char delimit = â\nâ); reads an entire line from a istream. Lines are terminated with delimit which is newline â\nâ by default
int length( ) const; return the length of the string
friend ostream& operator<< (ostream&, MyString&); overloaded insertion operator

Answers

You should do 40 points for this

Which of these statements are true? A. You can select all the items in the section of the menu. B. In the center section of the menu only one item can be selected at a time. C. Details is selected. D. Thumbnails, tiles, icons, and list are selected.

Answers

Answer:

In the center section of the menu, only one item can be selected at a time.

Details is selected

Explanation:

Lazarus Consulting is a large computer consulting company in New York. Pete Lazarus, theà CEOà and founder, is well known for his philanthropic efforts. Pete knows that most of his employees contribute to nonprofit organizations and wants to reward them for their efforts while encouraging others to contribute to charities. Pete began a program that matches 50 percent of each employee donation. The only stipulations are that the charity must be a nonprofit organization and the company will match only up to $2,000 per year per employee.
Use the à data fileà provided to determine the following:
What was the total donation amount per organization?
What were the average donations per organization?

Answers

Answer:

There are too many weird characters in this question, so I am unable to fix it, comment on this with the correct characters so I can submit a correct answer.

Write a program containing a loop that you execute 16 times. In the loop, generate two random numbers between 1 and 50. Divide the first random number by the second random number and print the result using 4 decimal places of accuracy.Lab Exercise #1 Put your name, the compiler used, and Lab Exercise #1 in a comment at the top of your program. Email your source code. This lab exercise is due at the beginning of the next lecture. You may email your lab solution prior to that. Remember to use "Ex1" as the subject of your email submission. Write a program containing a loop that you execute 16 times. In the loop, generate two random numbers between 1 and 50. Divide the first random number by the second random number and print the result using 4 decimal places of accuracy. Your output should look like this - except for different random values: 2.3333 35.0000 0.8000 3.2222 0.8667 0.1304 1.1429 0.2857 1.0698 0.7568 8.4000 0.7500 1.3030 1.2941 0.4130 1.7778 Hint: you should get a floating-point answer (a cast is suggested).

Answers

Answer:

Follows are the code to this question:

#include <stdio.h>// header file

int main()//main method

{

int i,x, y;//declaring integer variable

float result;//declaring flat variable

for(i=0; i<16; i++) //defining foe loop for calculate value  

{

x = (rand() % (50 - 0 + 1)) + 1;//use x variable for hold random value

y = (rand() % (50 - 0 + 1)) + 1;//use x variable for hold random value

result=(float)x/y;//use result variable for calculate value

printf("%.4f\n",result);//print value

}

return 0;

}

Output:

0.2200

0.2857

0.8684

0.7755

2.3000

0.1875

1.0500

1.3043

1.4839

1.2812

4.0000

0.9250

2.5000

1.8000

1.1034

1.1250

Explanation:

In the given code, three integer variable "i,x, and y" one float variable "result" is defined, in which integer variable "x and y" is used in the for loop, that uses the random function input value and in the float variable "result" it divides the value from x to y. This variable uses the typecasting to convert an integer to float and print its value.

You are going to send a document to a client, and you want to be absolutely sure that none of the formatting is lost. Which of these document formats would be best?


A Permissions

B Orientation

C Margins

D Location

Answers

Answer:

Explanation:

A because they would not ruin your work and they have to ask your permission if they want to edit it.

Answer: A
Explanation:

_____ is a framework based on JavaScript and HTML that is normally used to make dynamic web apps.

a
Python
b
CSS
c
AngularJS
d
A database

Answers

Answer:

AngularJS (c)

Explanation:

Answer:

AngularJS

node is better

Explanation:

Other Questions
Which type of government gives more power to the states over the national/central government?Group of answer choicesPreambleConfederationMonarchConvention help please im really stuck and i need help please Why are there so many rules around sexual relations? Explain. Anyone wanna help a grade 6 student out!!!ANSWER AS MANY AS U CAN!!!!! Plz dont let this flop(WILL MARK AS BRAINLIEST) - What islands did Buddhism reach by AD 552?. r any of u struggling in life and need some advice? PLEASE HELP ME I REALLY NEED TO KNOW THIS Please help me with my biology work When you rotate figures, what do you notice about sides, angles, and parallel lines? How much ice will 7 cups of water make? John Lockes theory of the social contract, as developed in the United States Declaration of Independence, stated that * Training to get in shape For sediment to be transformed into rock, which set of processes must take place?crystallization and solidificationweathering and erosioncompaction and cementationmelting and spreading How does energy from the sun travel to earth . Someone help its due in some time whats 5 divided by 1525 Julio walks 4 1/2 miles in 1 1/2 hours. what is the unit rate? The Nile River was like those of Mesopotamia, unpredictable A biome can support many different species.What is the best way to define the word underlined in the sentence above?A.smaller regions within a biomeB.periods of time without rainfallC.types of climateD.unique life-forms Solve for x. Justify each step. Given: 4x-9=99