Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using Java Write a program that reads in a css file and parses each line into a

ID: 3825343 • Letter: U

Question

Using Java Write a program that reads in a css file and parses each line into a string array using string split. You will create an employee scheduler program. From the array read in the employee's first name, last name, skill, wage, and ID number. These items will be needed to populate an Employee object. The Employee object will have a string for the first name, a string for the last name, a string for skill, a double for wage, and an integer for employee ID. Create another class called the EmplyeeScheduler. The scheduler class will allow a user to schedule the list of employees (provided from a file) over a 40-hour workweek. The output from this program will be the 40-hour employee schedule.

Explanation / Answer

A)

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class BufferedReaderExample {
public static void main(String[] args) {
try (BufferedReader br = new BufferedReader(new FileReader("Users.csv")))
{

String sCurrentLine;
String first = "Username is: ";
String second = "Password is: ";
while ((sCurrentLine = br.readLine()) != null) {
String[] information = sCurrentLine.split(",");
String username = information[0];
String password = information[1];
System.out.println(username);
System.out.println(password);
}

}
catch (IOException e)
{
e.printStackTrace();
}

}
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote