Question: Write small Java programs (handwritten) for the following questions: Question 01) You are tasked with creating a Java program to calculate the total payment
Write small Java programs (handwritten) for the following questions: Question 01) You are tasked with creating a Java program to calculate the total payment of an employee based on the data in an input file called employeeData.txt. The file consists of an employee's information in the following format: [Employee Name] [Hours Worked] [Pay Rate). A sample input file is shown below: Muhammad Ali 45 13.50 Your program should store the output in "wages.txt" file as well as display the output on the console. Sample output: The total wage for muhammad Ali is: 607.50 Question 02) Write a Java program that reads the sales of a salesman for the day from the input.txt file and then compute the 25% commission on the daily sales. Note the sale items in the input.txt file are not fixed and may vary. input.txt Sales Item no. price 1500 1 2 3 4 Your program should store the output in "commission.txt" file as well as display the output on the console. Sample output: The total sale amount for today: 5000 Your 25% commission is: 1250 500 800 2200
Step by Step Solution
There are 3 Steps involved in it
Question 01 Calculating Employee Wages java import javaio import javatextDecimalFormat import javautilScanner public class EmployeeWagesCalculator public static void mainString args try Create a scann... View full answer
Get step-by-step solutions from verified subject matter experts
