Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java program to create the class Employee. This class has attributes as name, monthly salary, and monthly working hours. Create another class to instantiate the
Java program to create the class Employee. This class has attributes as name, monthly salary, and monthly working hours. Create another class to instantiate the Employee (make 8 objects of this kind) and accept the mentioned information. This class has a menu to ask user about his desirable criteria for ranking the employee list. Based on the user's selected option show the sorted employee list in ascending order
Sample output: Enter the employee's name: kkk Enter the monthly salary: 7800 Enter the monthly working hours: 150 Enter the employee's name: ddd Enter the monthly salary: 5600 Enter the monthly working hours: 125 Enter the employee's name: aaa Enter the monthly salary: 9800 Enter the monthly working hours: 174 Enter the employee's name: zzz Enter the monthly salary: 5470 Enter the monthly working hours: 125 Enter the employee's name: jjj Enter the monthly salary: 7690 Enter the monthly working hours: 79 Enter the employee's name: ttt Enter the monthly salary: 4300 Enter the monthly working hours: 109 Enter the employee's name: xxx Enter the monthly salary: 5670 Enter the monthly working hours: 97 Enter the employee's name: VVV Enter the monthly salary: 4570 Enter the monthly working hours: 86
Step 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