Answered step by step
Verified Expert Solution
Question
1 Approved Answer
im sorry it should be java Review View Tell me A A. . Heating Normal eSpace Suite . . . Create a fourth class named
im sorry it should be java
Review View Tell me A A. . Heating Normal eSpace Suite . . . Create a fourth class named Client that will be used to test your other classes. In this Client class: This class must include the main method In the main method o Create an array named employeeList of type Employee with a length of 20 Read the contents of the employeeInfo.txt data file: Each row (record) in the data file contains the information for one employee Each record is tab delimited with the data elements (fields) in the following order Employee type, a single char that is either an Sor an H id, an integer value then, name a String with no embedded blank spaces if the employee is type S, othen, title a String with no embedded blanks o then, salary an integer value if the employee type is H. o then, position a String with no embedded blanks then, hourly Rate a double value I o As you read in each record, create an object of the appropriate type to hold the fields in the record Add each record to the array There will be no more than 15 records in the employeeInfo.txt data file. o The employeeinfo.txt data file should be in the "C:\data" directory Linux & Mac users set you code to read the employeeInfo.txt data file from the "C:\data" directory before you turn it in After you have read in all of the records from the data file and added the information to your employeelist array, Add one additional salaried employee from the keyboard, and Add one additional hourly employee from the keyboard o Once you have entered the two additional records for the keyboard print out the contents of the array using a loop. This loop should print out the contents of every entry in the array including the blank (null) entries. o Now give everyone in the employeeList array a 10% mise When applying the raises use a loop to stop across the array, o. After you have given everyone a 10% mise: Print out the contents of the array using a loop. This time do not print the blank (null) entries. . - MacBook Air File Edit Format View Window Help Lab101-assignme... Save -Saved to my Mac C Time AL Kelly ANW la employeeList.txt Manager 60000 Hostess 25.75 CEO 120000 Busboy 15.00 Peggy B Bud th cla class class mair Cre Rez how+to+read+a+file in o then, position a String with no embedded blanks then, hourly Rate a double value 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