Question: The language is to be in Java. here is the information given: The input file is not provided, so the information is to be created

 The language is to be in Java. here is the information
The language is to be in Java. here is the information given:
given: The input file is not provided, so the information is to
be created with no restrictions. TITSUIT KITA BUDAYAANTANA Create a class to
determine which hourly employee in a file received the most overtime pay.
The input file is not provided, so the information is to be created with no restrictions.
The name of the file is to be scanned in from System.in.

TITSUIT KITA BUDAYAANTANA Create a class to determine which hourly employee in a file received the most overtime pay. The name of the file is to be scanned in from System.in. import java.text.DecimalFormat; public interface Employee final static DecimalFormat MONEY = new DecimalFormat (" $0.00"); // a class constant used in formatting a value in dollars and cents * Returns this Employee object's name. * @return this Employee object's name. String getName(); * Returns this Employee object's gross pay. * @return this Employee object's gross pay. double getGross Pay(); * Returns a String representation of this Employee object with the name * followed by a space followed by a dollar sign followed by the gross * weekly pay, with two fractional digits (rounded). * @return a String representation of this Employee object. String toString(); } // interface Employee sections of a import java.text.DecimalFormat: white class Full Time Employee 1mplements Employee private String name; private double grossPay: relizes this FullTimeEmployee object to have an empty string for the name and 0.00 for the gross pay. public FullTimeEmployee() final String EMPTY_STRING = ""; name = EMPTY_STRING; grossPay = 0.00; } // default constructor Initializes this Full Time Employee object's name and gross pay from a a specified name and gross pay. @param name - the specified name. @param grossPay - the specified gross pay. public Full Time Employee (String name, double grossPay) this.name = name; this grossPay = grossPay; 1 // 2-parameter constructor Returns the name of this FullTimeEmployee object. * @return the name of this FullTimeEmployee object. public String getName() return name; } // method getName Returns the gross pay of this FullTimeEmployee object. * @return the gross pay of this FullTime Employee object. public double getGrossPay() return grossPay; 1 // method getGross Pay * Returns a String representation of this FullTime Employee object with the * name followed by a space followed by a dollar sign followed by the gross * weekly pay, with two fractional digits (rounded), followed by "FULL TIME". * @return a String representation of this FullTime Employee object. public String toString() final String EMPLOYMENT_STATUS = "FULL TIME"; return name + MONEY. format (grossPay) + EMPLOYMENT_STATUS; // the format method returns a String representation of gross Pay. } // method toString } // class Full Time Employee In the Employee class, modify the toString method so that the gross pay is printed with a comma to the left of the hundreds digit. For example, if the name is O'Brien, Theresa and the gross pay is 74400.00, the toString method will return O'Brien, Theresa $74,400.00 TITSUIT KITA BUDAYAANTANA Create a class to determine which hourly employee in a file received the most overtime pay. The name of the file is to be scanned in from System.in. import java.text.DecimalFormat; public interface Employee final static DecimalFormat MONEY = new DecimalFormat (" $0.00"); // a class constant used in formatting a value in dollars and cents * Returns this Employee object's name. * @return this Employee object's name. String getName(); * Returns this Employee object's gross pay. * @return this Employee object's gross pay. double getGross Pay(); * Returns a String representation of this Employee object with the name * followed by a space followed by a dollar sign followed by the gross * weekly pay, with two fractional digits (rounded). * @return a String representation of this Employee object. String toString(); } // interface Employee sections of a import java.text.DecimalFormat: white class Full Time Employee 1mplements Employee private String name; private double grossPay: relizes this FullTimeEmployee object to have an empty string for the name and 0.00 for the gross pay. public FullTimeEmployee() final String EMPTY_STRING = ""; name = EMPTY_STRING; grossPay = 0.00; } // default constructor Initializes this Full Time Employee object's name and gross pay from a a specified name and gross pay. @param name - the specified name. @param grossPay - the specified gross pay. public Full Time Employee (String name, double grossPay) this.name = name; this grossPay = grossPay; 1 // 2-parameter constructor Returns the name of this FullTimeEmployee object. * @return the name of this FullTimeEmployee object. public String getName() return name; } // method getName Returns the gross pay of this FullTimeEmployee object. * @return the gross pay of this FullTime Employee object. public double getGrossPay() return grossPay; 1 // method getGross Pay * Returns a String representation of this FullTime Employee object with the * name followed by a space followed by a dollar sign followed by the gross * weekly pay, with two fractional digits (rounded), followed by "FULL TIME". * @return a String representation of this FullTime Employee object. public String toString() final String EMPLOYMENT_STATUS = "FULL TIME"; return name + MONEY. format (grossPay) + EMPLOYMENT_STATUS; // the format method returns a String representation of gross Pay. } // method toString } // class Full Time Employee In the Employee class, modify the toString method so that the gross pay is printed with a comma to the left of the hundreds digit. For example, if the name is O'Brien, Theresa and the gross pay is 74400.00, the toString method will return O'Brien, Theresa $74,400.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!