Questions
You are hired by a small company to design a payroll system to perform payroll calculations based on the type of employee (manager and hourly worker)

A Payroll System (it is worth a total of 20 points)

You are hired by a small company to design a payroll system to perform payroll calculations based on the type of employee (manager and hourly worker). Managers are paid a fixed weekly salary regardless of the number of hours worked; hourly workers are paid by the the hours and receives overtime pay (50% more overtime pay, but overtime cannot exceed 20 hours per week).

Both managers and hourly workers have something in common. For example, their names. However, the way each person’s earnings are calculated depends on the type of employee, so you decided to define the common features in a more generic class named Employee, then create two subclasses, Manager and HourlyWorker for manager and hourly worker, respectively.

Design an abstract class named Employee.java with the following data members and methods:

Data members: firstName, lastName

All getter and setter methods

Constructor takes first name and last name as parameters.

toString() methods to return name (Steve Davis, for example)

earnings() to return earnings (double) (think about if it is appropriate to be defined as abstract)

Create Manager.java and make it a subclass of Employee. This class should have its own data member: weeklySalary (double):

Getter and setter method for the new data member

Implement earnings() method to return weekly salary (be sure to validate weekly salary, the salary range is between $800 and $2000, for any other numbers, assign 0)

Override toString() method to type of employee followed by manage name. For example, Manage: Steve Davis

Create HourlyWorker.java and make it a subclass of Employee:

Data members: wage (per hours), hours (hours worked for a week)

Getter and setter methods (remember, number of hours worked per week cannot exceed 60 hours. If a number over 60 is entered, it will be reduced to 60 hours; wage range: $25 - $50, all other numbers are considered as invalid and assign default wage, which is $35 per hour)

Implements earnings() method

Override toString() to return employee type and name (for example, Hourly Worker: John Kanet)

Write a tester class named Tester.java to test your payroll system. Your tester class will read data file (employee.txt) and create employee objects, then print payment for each employee.

The sample input file:

#Steve Davis

1200

*John Kanet

35.5

50

*Matthew Williams

25

40

#Alex Bowers

5000

*Atanas Radenski

-45

80

a line starting with # is a manager, followed by weekly salary; a line starting with * is a hourly worker, followed by wage and hours.

Sample output:

Manager: Steve Davis

Earned: 1200.0

Hourly Worker: John Kanet

Earned: 1952.5

Hourly Worker: Matthew Williams

Earned: 1000.0

Manager: Alex Bowers

Earned: 0.0

Hourly Worker: Atanas Radenski

Earned: 2450.0

In: Computer Science

NEED ASAP PLEASE IF THIS CANNOT BE ANSWERED WITHIN 1 HOUR TO 1.5 HOURS MAX PLEASE...

NEED ASAP PLEASE IF THIS CANNOT BE ANSWERED WITHIN 1 HOUR TO 1.5 HOURS MAX PLEASE DO NOT DO

I DON'T NEED PROBLEMS 1-4 PLEASE ANSWER 5-7 ONLY. ONLY LISTED 1-4 AS A REFERENCE.

This should be in

Type of application :Console application

Language used :C#

Program.cs :

Problem 1:

(15 pts)

Write a C# console program that continually asks the user "Do you want

to enter a name (Y/N)? ". Use a "while" loop to accomplish this. As long as the user enters

either an upper or lowercase 'Y', then prompt to the screen "Enter First and Last Name: " and

then get keyboard input of the name. After entering the name, display the name to the screen.

Problem 2:

(20 pts) Create a Patient class which has private fields for patientid, lastname,

firstname, age, and email. Create public properties for each of these private fields with get and

set methods. The entire lastname must be stored in uppercase. Create a main class which

instantiates a patient object and sets values for each data item within the class. Display the

data in the object to the console window.

Problem 3:

(15 pts) Modify the Patient class with two overloaded constructors: A new default

constructor which initializes the data items for a patient object using code within the

constructor (use any data). A second constructor with parameters to pass all the data items

into the object at the time of instantiation. Create a test main class which instantiates two

objects. Instantiate the first object using the default constructor and the second object using

the constructor with the parameters.

Problem 4:

(10 pts) Add a static display method in the main class in the patient application

that has a parameter to pass a patient object and display its content.

Problem 5:

(10 pts) Modify the patient class with two overloaded methods to display a bill for a

standard visit based on age. In the first method do not use any parameters to pass in data. If

the patient is over 65, then a standard visit is $75. If the patient is under 65, then the standard

doctors office visit is $125. Build a second method where you pass in a discount rate. If the

patient is over 65, then apply the discount rate to a standard rate of $125. Create a main

method that calls both of these methods and displays the results.

Problem 6:

(20 pts) Create two subclasses called outpatient and inpatient which inherit from

the patient base class. The outpatient class has an additional data field called doctorOfficeID

and the inpatient class has an additional data item called hospitalID. Write a main method that

creates inpatient and outpatient objects. Sets data for these objects and display the data.

Problem 7:

( 10 pts) Modify the base class of Problem 6 to be an abstract class with an abstract

display method called displayPatient that does not implement any code. Create specific

implementations for this method in both the outpatient and inpatient subclasses.

In: Computer Science

Reconstructed Operating Statement Year 0 Year 1 Year 2 Year 3 Year 4 Year 5 Year...

Reconstructed Operating Statement Year 0 Year 1 Year 2 Year 3 Year 4 Year 5 Year 6 Year 7
Potential Gross Rent $457,200.00 $466,572.60 $476,137.34 $485,898.15 $495,859.07 $506,024.18 $516,397.67 $526,983.82
Allowance for Vacancies: Less $27,432.00 $27,432.00 $27,432.00 $27,432.00 $27,432.00 $27,432.00 $27,432.00 $27,432.00
Other Income $34,000.00 $34,697.00 $35,408.29 $36,134.16 $36,874.91 $37,630.84 $38,402.28 $39,189.52
Effective Gross Income $463,768.00 $473,837.60 $484,113.63 $494,600.31 $505,301.97 $516,223.02 $527,367.95 $538,741.35
Less: Less: Less: Less: Less: Less: Less: Less:
Property Tax $85,039.00 $85,039.00 $85,039.00 $93,543.00 $93,543.00 $93,543.00 $93,543.00 $102,897.00
Other Income (Super expense plus free rent expense) $49,240.00 $50,249.42 $51,279.53 $52,330.76 $53,403.54 $54,498.32 $55,615.53 $56,755.65
Insurance $13,300.00 $13,572.65 $13,850.89 $14,134.83 $14,424.60 $14,720.30 $15,022.07 $15,330.02
Workers Compensation $145.00 $147.97 $151.01 $154.10 $157.26 $160.48 $163.77 $167.13
Utilities $1,140.00 $1,163.37 $1,187.22 $1,211.56 $1,236.39 $1,261.74 $1,287.61 $1,314.00
Supplies and Miscellaneous Expenses $1,391.30 $1,419.83 $1,448.93 $1,478.64 $1,508.95 $1,539.88 $1,571.45 $1,603.66
Professional Property Management Fees $27,826.08 $27,826.08 $27,826.08 $27,826.08 $27,826.08 $27,826.08 $27,826.08 $27,826.08
Landscaping and Snow Removal $2,500.00 $2,551.25 $2,603.55 $2,656.92 $2,711.39 $2,766.97 $2,823.70 $2,881.58
Maintenance Staff $12,000.00 $12,246.00 $12,497.04 $12,753.23 $13,014.67 $13,281.47 $13,553.74 $13,831.60
Total Operating Expenses $192,581.38 $194,215.57 $195,883.25 $206,089.13 $207,825.89 $209,598.25 $211,406.95 $222,606.73
Annual Net Operating Income $271,186.62 $279,622.03 $288,230.37 $288,511.19 $297,476.09 $306,624.77 $315,961.00 $316,134.62
Capitalization Rate 8.34% 8.60% 8.87% 8.88% 9.15% 9.43% 9.72% 9.73%
Market Rate Value $3,250,000.00

Question 1

A) Suggest some reasons why the market capitalization rate might NOT remain constant.

B) Why might it become larger or smaller than the currently prevailing market rate?

In: Finance

Using Java, write the the following code. Only the bold needs to be answered Here is...

Using Java, write the the following code. Only the bold needs to be answered

Here is the driver:

package assign

public class A3Driver {

public static void main(String[] args) {

//Test GSUStudent object

GSUStudentWorker gsw = new GSUStudentWorker("Bunny","Bugs", 2000, 9, 8, 9001234);

gsw.setGPA(3.7);

gsw.setHourlyRate(10.00);

gsw.setTotalHours(30);

System.out.println(gsw);

GSUStudentWorker gsw2 = new GSUStudentWorker("Bunny","Betty", 1999, 9, 8, 9002413);

gsw2.setGPA(4.0);

gsw2.setHourlyRate(10.00);

gsw2.setTotalHours(45);

System.out.println(gsw2);

//Test GSUStoreSupervisor

GSUStoreSupervisor gss = new GSUStoreSupervisor("Duck","Daffy", 1980, 9, 8);

gss.setMonthlyPay(4000);

System.out.println(gss);

//test GSUSuperStudent

GSUSuperStudent gsuper = new GSUSuperStudent("Mouse","Minny", 1990, 9, 8, 9004321);

gsuper.setGPA(3.9);

gsuper.setHourlyRate(10.00);

gsuper.setTotalHours(30);

gsuper.setMonthlyPay(4000);

System.out.println(gsuper);

}

}

1. The Person class
a. Person is an abstract class.

b. All class variables of the Person class must be private.

c.is a class with a single constructor, Person(String lName, String fName, int birthYear, int birthMonth, int birthDay). All arguments of the constructor should be stored as class variables. There should only be getter methods for first and last name variables. There should be no getters or setters forbirthYear, birthMonth, birthDay.

  1. The method computeAge() takes no arguments and returns the person’s computed age (as of today's date) as a string of the form "X years, Y months and Z days". Hint: Use the LocalDate and Period classes.

    i. e.g. "21 years, 2 months and 3 days". ii. e.g. "21 years and 3 days".

    iii. e.g. "21 years and 2 months". iv. e.g. "21 years".

    v. e.g. "2 months and 3 days".

  2. The toString method returns a string comprised of the results of

    getFname, getLName and computeAge. E.g.
    i. “Bunny Bugs is 19 years and 1 day old”

  3. The equals method returns true if the name and date of birth of this person and the other person are the same, otherwise return false.

2. The Employee interface
a.has a single method, getPay(), which returns a double

representing the pay earned for the period in dollars and cents.

3. The MonthlyEmployee interface
a. This interface extends the Employee interface.
b. has a single void method, setMonthlyPay(double perMonth), which

takes a double as an argument. The argument is the amount earned for the month in dollars and cents.

4. The HourlyEmployee interface
a. This interface extends the Employee interface.
b. has a void method, setHourlyRate(double perHour), which takes a

double as an argument. The argument is the amount earned for

each hour that the employee works.


c. has a void method, setTotalHours(double hoursWorked), which

takes a double as an argument. The argument is the total hours worked for the week.

  1. Has a final integer variable MAX_WEEKLY_HOURS, which is assigned

    a value of 40. This variable is used to assess if the total

    hours worked exceeds the mandated hours.

  2. Has a final double variable OVERTIME_RATE, which is assigned a

    value of 1.75. This variable is used to compute the pay amount for hours worked that exceeds the mandated hours.

5. The Student class
a. The Student class is abstract.

  1. The Student class extends the Person class.

  2. All (if any) class variables of the Student class must be private.

  3. has an abstract void method, setGPA(double gpa), which takes a double as an argument. The argument is the grade point average of the student using a 4.0 scale.

  4. has an abstract method, getGPA(), which returns a double. The returned value is the grade point average of the student using a 4.0 scale.

6. The GSUStudentWorker class
a. The GSUStudentWorker class extends the Student class and

inherits from the HourlyEmployee interface.

  1. is a class with a single constructor, GSUStudentWorker (String lName, String fName, int birthYear, int birthMonth, int birthday, int eid). There should be a getter and setter for eid, which is the Eagle ID of the student.

  2. All class variables of the Student class must be private.

  3. has a void method, setGPA(double gpa), which takes a double as an argument. The argument is the grade point average of the student using a 4.0 scale.

  4. has a method, getGPA(), which returns a double. The returned value is the grade point average of the student using a 4.0 scale.

f. Has a toString() method that returns a string in the form shown below.

i. Bugs Bunny is 19 years and 15 days old and is a Great Sauce student with a 3.7 GPA who earned $300.00 this week.

7. The GSUStoreSupervisor class
a. The GSUStoreSupervisor class extends the Person class and

inherits from the MonthlyEmployee interface.

  1. is a class with a single constructor, GSUStoreSupervisor(String lName, String fName, int birthYear, int birthMonth, int birthDay).

  2. All class variables of the Student class must be private.

  3. Has a toString() method that returns a string in the form shown below.

    i. Daffy Duck is 39 years and 15 days old and is a Great Sauce monthly employee who earned $4000.00 this period.

8. The GSUSuperStudent class
a. GSUSuperStudent has found a way to get paid as a monthly

         employee and as a student employee.
  1. The GSUSuperStudent class extends the GSUStudentWorker class and inherits from the MonthlyEmployee interface.

  2. All class variables of the Student class must be private.

  3. Has a toString() method that returns a string in the form shown below.

    i. Minny Mouse is 29 years and 15 days old and is a Great Sauce student with a 3.9 GPA who earned $4300.00 this period.

Example output:

__________Example from A3Driver shown below

Bugs Bunny is 19 years and 15 days old and is a Great Sauce student with a 3.7 GPA who earned $300.00 this week.

Betty Bunny is 20 years and 15 days old and is a Great Sauce student with a 4.0 GPA who earned $487.50 this week.

Daffy Duck is 39 years and 15 days old and is a Great Sauce monthly employee who earned $4000.00 this period.

Minny Mouse is 29 years and 15 days old and is a Great Sauce student with a 3.9 GPA who earned $4300.00 this period.

In: Computer Science

Using Java, write the the following code. Only the bold needs to be answered Here is...

Using Java, write the the following code. Only the bold needs to be answered

Here is the driver:

package assign

public class A3Driver {

public static void main(String[] args) {

//Test GSUStudent object

GSUStudentWorker gsw = new GSUStudentWorker("Bunny","Bugs", 2000, 9, 8, 9001234);

gsw.setGPA(3.7);

gsw.setHourlyRate(10.00);

gsw.setTotalHours(30);

System.out.println(gsw);

GSUStudentWorker gsw2 = new GSUStudentWorker("Bunny","Betty", 1999, 9, 8, 9002413);

gsw2.setGPA(4.0);

gsw2.setHourlyRate(10.00);

gsw2.setTotalHours(45);

System.out.println(gsw2);

//Test GSUStoreSupervisor

GSUStoreSupervisor gss = new GSUStoreSupervisor("Duck","Daffy", 1980, 9, 8);

gss.setMonthlyPay(4000);

System.out.println(gss);

//test GSUSuperStudent

GSUSuperStudent gsuper = new GSUSuperStudent("Mouse","Minny", 1990, 9, 8, 9004321);

gsuper.setGPA(3.9);

gsuper.setHourlyRate(10.00);

gsuper.setTotalHours(30);

gsuper.setMonthlyPay(4000);

System.out.println(gsuper);

}

}

1. The Person class
a. Person is an abstract class.

b. All class variables of the Person class must be private.

c.is a class with a single constructor, Person(String lName, String fName, int birthYear, int birthMonth, int birthDay). All arguments of the constructor should be stored as class variables. There should only be getter methods for first and last name variables. There should be no getters or setters forbirthYear, birthMonth, birthDay.

  1. The method computeAge() takes no arguments and returns the person’s computed age (as of today's date) as a string of the form "X years, Y months and Z days". Hint: Use the LocalDate and Period classes.

    i. e.g. "21 years, 2 months and 3 days". ii. e.g. "21 years and 3 days".

    iii. e.g. "21 years and 2 months". iv. e.g. "21 years".

    v. e.g. "2 months and 3 days".

  2. The toString method returns a string comprised of the results of

    getFname, getLName and computeAge. E.g.
    i. “Bunny Bugs is 19 years and 1 day old”

  3. The equals method returns true if the name and date of birth of this person and the other person are the same, otherwise return false.

2. The Employee interface
a.has a single method, getPay(), which returns a double

representing the pay earned for the period in dollars and cents.

3. The MonthlyEmployee interface
a. This interface extends the Employee interface.
b. has a single void method, setMonthlyPay(double perMonth), which

takes a double as an argument. The argument is the amount earned for the month in dollars and cents.

4. The HourlyEmployee interface
a. This interface extends the Employee interface.
b. has a void method, setHourlyRate(double perHour), which takes a

double as an argument. The argument is the amount earned for

each hour that the employee works.


c. has a void method, setTotalHours(double hoursWorked), which

takes a double as an argument. The argument is the total hours worked for the week.

  1. Has a final integer variable MAX_WEEKLY_HOURS, which is assigned

    a value of 40. This variable is used to assess if the total

    hours worked exceeds the mandated hours.

  2. Has a final double variable OVERTIME_RATE, which is assigned a

    value of 1.75. This variable is used to compute the pay amount for hours worked that exceeds the mandated hours.

5. The Student class
a. The Student class is abstract.

  1. The Student class extends the Person class.

  2. All (if any) class variables of the Student class must be private.

  3. has an abstract void method, setGPA(double gpa), which takes a double as an argument. The argument is the grade point average of the student using a 4.0 scale.

  4. has an abstract method, getGPA(), which returns a double. The returned value is the grade point average of the student using a 4.0 scale.

6. The GSUStudentWorker class
a. The GSUStudentWorker class extends the Student class and

inherits from the HourlyEmployee interface.

  1. is a class with a single constructor, GSUStudentWorker (String lName, String fName, int birthYear, int birthMonth, int birthday, int eid). There should be a getter and setter for eid, which is the Eagle ID of the student.

  2. All class variables of the Student class must be private.

  3. has a void method, setGPA(double gpa), which takes a double as an argument. The argument is the grade point average of the student using a 4.0 scale.

  4. has a method, getGPA(), which returns a double. The returned value is the grade point average of the student using a 4.0 scale.

f. Has a toString() method that returns a string in the form shown below.

i. Bugs Bunny is 19 years and 15 days old and is a Great Sauce student with a 3.7 GPA who earned $300.00 this week.

7. The GSUStoreSupervisor class
a. The GSUStoreSupervisor class extends the Person class and

inherits from the MonthlyEmployee interface.

  1. is a class with a single constructor, GSUStoreSupervisor(String lName, String fName, int birthYear, int birthMonth, int birthDay).

  2. All class variables of the Student class must be private.

  3. Has a toString() method that returns a string in the form shown below.

    i. Daffy Duck is 39 years and 15 days old and is a Great Sauce monthly employee who earned $4000.00 this period.

8. The GSUSuperStudent class
a. GSUSuperStudent has found a way to get paid as a monthly

         employee and as a student employee.
  1. The GSUSuperStudent class extends the GSUStudentWorker class and inherits from the MonthlyEmployee interface.

  2. All class variables of the Student class must be private.

  3. Has a toString() method that returns a string in the form shown below.

    i. Minny Mouse is 29 years and 15 days old and is a Great Sauce student with a 3.9 GPA who earned $4300.00 this period.

Example output:

__________Example from A3Driver shown below

Bugs Bunny is 19 years and 15 days old and is a Great Sauce student with a 3.7 GPA who earned $300.00 this week.

Betty Bunny is 20 years and 15 days old and is a Great Sauce student with a 4.0 GPA who earned $487.50 this week.

Daffy Duck is 39 years and 15 days old and is a Great Sauce monthly employee who earned $4000.00 this period.

Minny Mouse is 29 years and 15 days old and is a Great Sauce student with a 3.9 GPA who earned $4300.00 this period.

In: Computer Science

Using Java, write the the following code. Only the bold needs to be answered Here is...

Using Java, write the the following code. Only the bold needs to be answered

Here is the driver:

package assign

public class A3Driver {

public static void main(String[] args) {

//Test GSUStudent object

GSUStudentWorker gsw = new GSUStudentWorker("Bunny","Bugs", 2000, 9, 8, 9001234);

gsw.setGPA(3.7);

gsw.setHourlyRate(10.00);

gsw.setTotalHours(30);

System.out.println(gsw);

GSUStudentWorker gsw2 = new GSUStudentWorker("Bunny","Betty", 1999, 9, 8, 9002413);

gsw2.setGPA(4.0);

gsw2.setHourlyRate(10.00);

gsw2.setTotalHours(45);

System.out.println(gsw2);

//Test GSUStoreSupervisor

GSUStoreSupervisor gss = new GSUStoreSupervisor("Duck","Daffy", 1980, 9, 8);

gss.setMonthlyPay(4000);

System.out.println(gss);

//test GSUSuperStudent

GSUSuperStudent gsuper = new GSUSuperStudent("Mouse","Minny", 1990, 9, 8, 9004321);

gsuper.setGPA(3.9);

gsuper.setHourlyRate(10.00);

gsuper.setTotalHours(30);

gsuper.setMonthlyPay(4000);

System.out.println(gsuper);

}

}

1. The Person class
a. Person is an abstract class.

b. All class variables of the Person class must be private.

c.is a class with a single constructor, Person(String lName, String fName, int birthYear, int birthMonth, int birthDay). All arguments of the constructor should be stored as class variables. There should only be getter methods for first and last name variables. There should be no getters or setters forbirthYear, birthMonth, birthDay.

  1. The method computeAge() takes no arguments and returns the person’s computed age (as of today's date) as a string of the form "X years, Y months and Z days". Hint: Use the LocalDate and Period classes.

    i. e.g. "21 years, 2 months and 3 days". ii. e.g. "21 years and 3 days".

    iii. e.g. "21 years and 2 months". iv. e.g. "21 years".

    v. e.g. "2 months and 3 days".

  2. The toString method returns a string comprised of the results of

    getFname, getLName and computeAge. E.g.
    i. “Bunny Bugs is 19 years and 1 day old”

  3. The equals method returns true if the name and date of birth of this person and the other person are the same, otherwise return false.

2. The Employee interface
a.has a single method, getPay(), which returns a double

representing the pay earned for the period in dollars and cents.

3. The MonthlyEmployee interface
a. This interface extends the Employee interface.
b. has a single void method, setMonthlyPay(double perMonth), which

takes a double as an argument. The argument is the amount earned for the month in dollars and cents.

4. The HourlyEmployee interface
a. This interface extends the Employee interface.
b. has a void method, setHourlyRate(double perHour), which takes a

double as an argument. The argument is the amount earned for

each hour that the employee works.


c. has a void method, setTotalHours(double hoursWorked), which

takes a double as an argument. The argument is the total hours worked for the week.

  1. Has a final integer variable MAX_WEEKLY_HOURS, which is assigned

    a value of 40. This variable is used to assess if the total

    hours worked exceeds the mandated hours.

  2. Has a final double variable OVERTIME_RATE, which is assigned a

    value of 1.75. This variable is used to compute the pay amount for hours worked that exceeds the mandated hours.

5. The Student class
a. The Student class is abstract.

  1. The Student class extends the Person class.

  2. All (if any) class variables of the Student class must be private.

  3. has an abstract void method, setGPA(double gpa), which takes a double as an argument. The argument is the grade point average of the student using a 4.0 scale.

  4. has an abstract method, getGPA(), which returns a double. The returned value is the grade point average of the student using a 4.0 scale.

6. The GSUStudentWorker class
a. The GSUStudentWorker class extends the Student class and

inherits from the HourlyEmployee interface.

  1. is a class with a single constructor, GSUStudentWorker (String lName, String fName, int birthYear, int birthMonth, int birthday, int eid). There should be a getter and setter for eid, which is the Eagle ID of the student.

  2. All class variables of the Student class must be private.

  3. has a void method, setGPA(double gpa), which takes a double as an argument. The argument is the grade point average of the student using a 4.0 scale.

  4. has a method, getGPA(), which returns a double. The returned value is the grade point average of the student using a 4.0 scale.

f. Has a toString() method that returns a string in the form shown below.

i. Bugs Bunny is 19 years and 15 days old and is a Great Sauce student with a 3.7 GPA who earned $300.00 this week.

7. The GSUStoreSupervisor class
a. The GSUStoreSupervisor class extends the Person class and

inherits from the MonthlyEmployee interface.

  1. is a class with a single constructor, GSUStoreSupervisor(String lName, String fName, int birthYear, int birthMonth, int birthDay).

  2. All class variables of the Student class must be private.

  3. Has a toString() method that returns a string in the form shown below.

    i. Daffy Duck is 39 years and 15 days old and is a Great Sauce monthly employee who earned $4000.00 this period.

8. The GSUSuperStudent class
a. GSUSuperStudent has found a way to get paid as a monthly

         employee and as a student employee.
  1. The GSUSuperStudent class extends the GSUStudentWorker class and inherits from the MonthlyEmployee interface.

  2. All class variables of the Student class must be private.

  3. Has a toString() method that returns a string in the form shown below.

    i. Minny Mouse is 29 years and 15 days old and is a Great Sauce student with a 3.9 GPA who earned $4300.00 this period.

Example output:

__________Example from A3Driver shown below

Bugs Bunny is 19 years and 15 days old and is a Great Sauce student with a 3.7 GPA who earned $300.00 this week.

Betty Bunny is 20 years and 15 days old and is a Great Sauce student with a 4.0 GPA who earned $487.50 this week.

Daffy Duck is 39 years and 15 days old and is a Great Sauce monthly employee who earned $4000.00 this period.

Minny Mouse is 29 years and 15 days old and is a Great Sauce student with a 3.9 GPA who earned $4300.00 this period.

In: Computer Science

Social Distribution of Health and Illness: Race and Ethnicity After watching Williams’ Ted Talk: What was...

Social Distribution of Health and Illness: Race and Ethnicity After watching Williams’ Ted Talk: What was their main point(s)? What evidence did they mention to help support these main point(s)? What are your reactions to their talk? After watching Roberts’ Ted Talk: What is race-based medicine, according to Roberts’ talk? What is the problem with race-based medicine? What evidence did they mention to help support these main point(s)? What are your reactions to their talk? Last week you thought about how gender was a social construction, yet we still have inequalities within health by gender. Parallel to this, race is also a social construction. Race is often thought as having biological reasons for racial classifications. However, there is no research to support this. Sociologists and social scientists have researched and recognized a long history of trying to organize people based on skin color and physical appearance. However, this changes over time and meanings can vary depending on country and culture. Given race is also a social construct, answer the following: Do you believe we should be categorizing people in healthcare by race? What are the benefits and potential (intended or unintended) consequences of categorizing people (such as patients) by race in health? After reading Kasana’s article on Serena Williams: How did racism affect Serena Williams’ birth experience? What are your reactions after reading this article? Unfortunately, racism toward women of color is common and affects both pregnancies and giving birth. What are some solutions that a health care facility (hospital, community health center, etc.) and/or provider could implement? Do you trust your doctor to listen to you and take you seriously? How does your race and experiences with racism (or lack of) affect your answer? For this section of discussion, you will educate your peers on both the physical and mental health disparities for a racial or ethnic minority group. You may choose only one group to focus on. Please address the following: Which group you researched The physical health disparities and inequalities that affect this group The mental health disparities and inequalities that affect this group How does racism and/or ethnocentrism help influence these health outcomes for this group? Were you aware of these health disparities before doing this research?

In: Psychology

Case 9-2 Sergo Games [LO 1, 3] Sergo Games produces a variety of action games including...

Case 9-2 Sergo Games [LO 1, 3]

Sergo Games produces a variety of action games including a flight simulation game, Airport 10, which sold more than 800,000 copies in the past year. The programs are run on computers, and the company operates an in-house production facility that manufactures and packages CDs for shipment to customers.

            In 2017, the production plant prepared 2,600,000 CDs and incurred the following costs:

Units processed

2,600,000

Labor

$     900,000

Material

4,800,000

Supervisory salaries

350,000

Depreciation of equipment

420,000

Heat, light, phone, etc.

200,000

Total

$ 6,670,000

                                               

                       

Leslie Eastman, an accounting manager, has been given the responsibility to analyze outsourcing the production of CDs. Her report is provided below.

REQUIRED

Should the production of CDs be outsourced? Unlike Leslie, support your answer with appropriate calculations.

Sergo Games

April 19, 2018

TO: Shane Santiago, CFO

FROM: Leslie Eastman

SUBJECT: Outsourcing CD productions

In 2017, total production and packaging costs were $6,6700,000 or $2.57 per CD. The low-cost outside bidder for this business was XLS. They are a highly respected firm, and their offer is $3.52 per CD. Although the savings related to outsourcing is only $0.05 per CD, with annual production of 2,600,000 units, this amounts to $130,000 per year. The present value with a five-year horizon and an 11 percent cost of capital is $480,467. Thus, I recommend that we outsource CD productions.

            You asked me to determine the selling price of the production equipment. I had a representative of XLS walk through the facility. In his opinion, the equipment is dated, and he believes that the market value is essentially zero. At any rate, his company is not interested in purchasing the equipment even if we select them as a supplier. If we outsource, I do not believe that we can use the production facility for another purpose. As you know, the building is run down, and it’s not suitable space even for programmers!

            Finally, I want to mention another aspect of the problem that enhances the appeal of outsourcing. We currently have equipment with a book value of $2,000,000 and an average remaining value of 5 years. This generates approximately $400,000 per year of depreciation. If we outsource, we’ll have a $2,000,000 tax loss, which will save us approximately $700,000 (assuming a 35 percent tax rate). Thus, the total value of outsourcing is $1,180,467 (i.e., $480,467 + $700,000).

            Please call me if you have any questions regarding my analysis.

In: Accounting

When one company (A) buys another company(B), some workers of company B are terminated. Terminated workers...

When one company (A) buys another company(B), some workers of company B are terminated. Terminated workers get severance pay. To be fair, company A fixes the severance payment to company B workers as equivalent to company A workers who were terminated in the last one year. A 36-year-old Mohammed, worked for company B for the last 10 years earning 32000 per year, was terminated with a severance pay of 5 weeks of salary. Bill smith complained that this is unfair that someone with the same credentials worked in company A received more. You are called in to settle the dispute. You are told that severance is determined by three factors; age, length of service with the company and the pay. You have randomly taken a sample of 40 employees of company A terminated last year. You recorded

Number of weeks of severance pay

Age of employee

Number of years with the company

Annual pay in 1000s

Weeks SP

Age

Years

Pay

Weeks SP

Age

Years

Pay

13

37

16

46

11

44

12

35

13

53

19

48

10

33

13

32

11

36

8

35

8

41

14

42

14

44

16

33

5

33

7

37

3

28

4

40

6

27

4

35

10

43

9

31

14

39

12

36

4

29

3

33

12

50

17

30

7

31

2

43

10

43

11

29

12

45

15

40

14

49

14

29

7

44

15

32

12

48

17

36

8

42

13

42

12

41

17

37

11

41

10

38

8

39

8

36

9

32

5

25

12

49

16

28

10

45

13

36

10

37

10

35

18

48

19

40

11

37

13

37

10

46

14

36

17

52

20

34

8

28

6

22

13

42

11

33

15

44

16

32

14

42

19

38

7

40

6

27

5

27

2

25

9

37

8

37

11

50

15

36

Identify best subsets of variables based on Mallows Cp. What is the value of R-square to this “best” model? How many outliers are in the dataset? Use the criteria of your choice and mention it(them)

In: Math

Mercury, Inc., produces cell phones at its plant in Texas. In recent years, the company’s market...

Mercury, Inc., produces cell phones at its plant in Texas. In recent years, the company’s market share has been eroded by stiff competition from overseas. Price and product quality are the two key areas in which companies compete in this market.

A year ago, the company’s cell phones had been ranked low in product quality in a consumer survey. Shocked by this result, Jorge Gomez, Mercury’s president, initiated an intense effort to improve product quality. Gomez set up a task force to implement a formal quality improvement program. Included on this task force were representatives from the Engineering, Marketing, Customer Service, Production, and Accounting departments. The broad representation was needed because Gomez believed that this was a companywide program and that all employees should share the responsibility for its success.

After the first meeting of the task force, Holly Elsoe, manager of the Marketing Department, asked John Tran, production manager, what he thought of the proposed program. Tran replied, “I have reservations. Quality is too abstract to be attaching costs to it and then to be holding you and me responsible for cost improvements. I like to work with goals that I can see and count! I’m nervous about having my annual bonus based on a decrease in quality costs; there are too many variables that we have no control over.”

Mercury’s quality improvement program has now been in operation for one year. The company’s most recent quality cost report is shown below.

Mercury, Inc.
Quality Cost Report
(in thousands)
Last Year This Year
Prevention costs:
Machine maintenance $ 370 $ 130
Training suppliers 9 10
Quality circles 21 85
Total prevention cost 400 225
Appraisal costs:
Incoming inspection 65 20
Final testing 150 88
Total appraisal cost 215 108
Internal failure costs:
Rework 110 70
Scrap 74 45
Total internal failure cost 184 115
External failure costs:
Warranty repairs 78 28
Customer returns 252 87
Total external failure cost 330 115
Total quality cost $ 1,129 $ 563
Total production cost $ 4,270 $ 4,670

As they were reviewing the report, Elsoe asked Tran what he now thought of the quality improvement program. Tran replied. “I’m relieved that the new quality improvement program hasn’t hurt our bonuses, but the program has increased the workload in the Production Department. It is true that customer returns are way down, but the cell phones that were returned by customers to retail outlets were rarely sent back to us for rework.”

Required:

1. Expand the company’s quality cost report by showing the costs in both years as percentages of both total production cost and total quality cost. (Round your percentage answers to 1 decimal place (i.e 0.1234 should be entered as 12.3).)

In: Accounting