Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am working on Java Program. I need to finish this by this Thursday, and I hope to get help on Exercise 3. This is
I am working on Java Program. I need to finish this by this Thursday, and I hope to get help on Exercise 3.
This is the assignment, and I already finished Lab 3. My lab 3 is attached file.
This is my Lab 3, and I need help on Exercise 3. I tried a bunch of codes, but none of them worked, so please help me with the code for Exercise 3. Thank you very much!
CSC 156 Lab 3 Three employees in a company are up for a special pay increase. Create an input file called Lab3 input.txt, with the following data: Miller Andrew 65789.87 5 Green Sheila 75892.56 6 Sethi Amit 74900.50 6.1 Willis George 56784.67 10 Array Steve 87034.50 2.5 Each input line consists of an employee's last name, first name, current salary and percent pay increase. For example, in the first input line, the last name of the employee is Miller, the first name is Andrew, the current salary is 65789.87, and the pay increase is 5%. Write a program that reads data from the specified file and stores the output in the file Lab3 output.txt. For each employee, the data must be output in the following form: firstName lastName updatedsalary Format the output of decimal numbers to two decimal places. Exercise 3: Use the data given in the input file to predict the future salaries of each person for 10 years assuming they will each gain the same pay increase rate. Then output to a new output file: Lab3 Exercise output.txt, each years' salary and the amount of increase as a dollar amount for each employee from year to year. The output must be in the following form. For example: Powers Jim 45612.89 4 First Last 10th Year Increase 1st Year Increase 2nd Year Increase 64921.36 3 2496.97 45612.89 0 Jim Powers 47437.40 1824.51Step 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