Answered step by step
Verified Expert Solution
Question
1 Approved Answer
the code should be in java i. Implement the following classes: [6 marks] Employee id: int name: String address: String + Employee(id:int, name, address: String)
the code should be in java
i. Implement the following classes: [6 marks] Employee id: int name: String address: String + Employee(id:int, name, address: String) getName(): String getAddress():String + getId(): int + mailCheck(): void + toString(): String Salary - salary: double + Salary(id: int, name,address: String,salary: double) mailChecko: void + computePay0: double ii Now, write a program to ask user how many employees he/she wants to be listed, take ID, Name, Address, and Basic salary of employees as user input and store all the information in a "Employee" type object array. [8 marks] In computePayl method, add 25% allowance with their basic salary. Invoke mailCheck() method to print name and salary as shown below. [6 marks] iii. Problem A - Sample I/O Input Sample How many employees do you want to add? 2 Output Sample Mailing check to Md. Mohtashim with salary 4500.00$ Mailing check to John Adams with salary 3000.00 Enter all the employee's information: 2020201223 Md. Mohtashim 59 West 46th Street, NY 3600.00 2020201224 John Adams 1105 Boston Road, Springfield MA 2400.00Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started