+ 1

separating these into nice java classes

You will be writing a multiclass user management system using the java. Create a program that implements a minimum of four classes. The classes must include: 1. Employee Class with the attributes of Employee ID, First Name, Middle Initial, Last Name, Date of Employment. 2. EmployeeType Class that has two instances of EmployeeType objects: salaried and hourly. Each object will have methods that calculates employees payroll( you may use attributes from Assignment 2), but you must handle the calculation in a method. Assume that you have hourly employees who work overtime and if the hours they worked over 40 hours, they must be paid one-and-one- half times the regular rate of pay for all hours worked over 4o hours. Both federal and state tax must be calculated 3. Address Class that handles address of the employee: attributes include street address, city, state, zip code, 4. Contact Class - The Contact class will have email and phone attributes, you may also create an instance of Address object. The above four classes are required, but you can add more if you want to make your program a realistic application of the real world. Note Be Careful. 1. Do not accept negative number for any of the items entered. 2. The program must be able to register a minimum of three employees at a time. 3. Registered employees can be looked up using their employee id(3 points Extra credit, you are not permitted to use Array) 4. Use different data types (int, string, double, boolean, char) 5. Do not use array in this program - if you use array

16th Jun 2019, 12:40 AM
Safina Nganga
Safina Nganga - avatar
6 Antworten
+ 2
This looks like you just copy-pasted a homework assignment... Why don't you have a crack at it first and then ask for help?
16th Jun 2019, 1:29 AM
Jackson O’Donnell
+ 1
i did and im stuck
16th Jun 2019, 1:30 AM
Safina Nganga
Safina Nganga - avatar
+ 1
// this the code for the first class Employee and the part for employee date is not prompting o my screen import java.util.Scanner; public class Employee { public static void main(String[] args) { //flag to control; while loop boolean flag = true; while(flag) { //enter the required details Scanner sc = new Scanner(System.in); System.out.print("Enter employee number: "); int eNumber = sc.nextInt(); System.out.print("Enter employee middle inital name: "); String mName = sc.nextLine(); sc.nextLine(); System.out.print("Enter employee last name: "); String lName = sc.nextLine(); sc.nextLine(); System.out.print("Enter date of employement: "); String date_employment = sc.nextLine(); sc.nextLine(); } } }
16th Jun 2019, 1:35 AM
Safina Nganga
Safina Nganga - avatar
0
Just posted in your other thread, but dololearn will only take input at the begining unfortunately. You need to enter everything at once with a new line for each entry
16th Jun 2019, 1:36 AM
Jackson O’Donnell
0
Use the worksheet to type or write your answer and upload it in the google classroom. Suppose Employee is a class containing a void method named readInput, and dilbert is an object of the class Employee that was named and created by the following statement: Employee dilbert = new Employee(); Write an invocation readInput using dilbert as the receiving object. The method readInput needs no information in parentheses.
23rd Apr 2021, 8:52 AM
Bernadeth Gulay
Bernadeth Gulay - avatar
0
Can anyone help me on my project?
23rd Apr 2021, 8:53 AM
Bernadeth Gulay
Bernadeth Gulay - avatar