Create a data file with 1000 lines. Each line in the file consists of an employee’s first name, last name, position rank, and salary. The employee’s first name and last name for the i- Th line are...


Create a data file with 1000 lines. Each line in the file consists of an employee’s first name, last name, position rank, and salary. The employee’s first name and last name for the i- Th line are FirstName and LastName. The position rank is randomly generated as a clerk supervisor, manager, and director.The salary is randomly generated as a number with two digits after the decimal point. The Salary for a clerk should be in the range from 40,000 to 50,000, for supervisor from 60,000 to 80,000, and manager from 75,000 to 90,000, and director from 85,000 to 120,000.Save the file in Salary.txtyour code will start as belowpublic class Employee Data{public static void main (String [] args) throws FileNotFoundException {try (PrintWriter output = new PrintWriter ("Salary.txt")) {int n = 1000; for (int i = 1; i <=>




May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here