Page 1 of 1

For this programming assignment you will create a simple weekly paycheck estimator program. You will need to write a pro

Posted: Sun Jul 10, 2022 11:26 am
by answerhappygod
For This Programming Assignment You Will Create A Simple Weekly Paycheck Estimator Program You Will Need To Write A Pro 1
For This Programming Assignment You Will Create A Simple Weekly Paycheck Estimator Program You Will Need To Write A Pro 1 (165.05 KiB) Viewed 44 times
For This Programming Assignment You Will Create A Simple Weekly Paycheck Estimator Program You Will Need To Write A Pro 2
For This Programming Assignment You Will Create A Simple Weekly Paycheck Estimator Program You Will Need To Write A Pro 2 (206.31 KiB) Viewed 44 times
JAVA
JAVA
JAVA
For this programming assignment you will create a simple weekly paycheck estimator program. You will need to write a program that can have at least four different employees. Each employee should have a name and their hourly pay. The hourly pay should be able to handle decimals. This means, for example, that an employee can earn $15.35 per hour or $21.50 per hour. Your program should be able to input the hours worked for the employees and then calculate their net pay after subtracting taxes of 30%. Your program must use an Employee class to store the name and hourly rate of your employees. You must put your employees into an array and then your program will need to use a loop to iterate through the array. You can have as many employees as you want but you must have at least four at a minimum. Here is an example of output from the program: Problems @ Javadoc Declaration Console <terminated> Main (2) [Java Application] /Volumes/Eclipse/Eclipse.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_16.0.1.v2021052 Enter the hours worked for all the employees last week? 40 The employee Fred Boyle, who earns $15.50 per hour, worked for 40 hours last week and took home $434.00 after taxes. The employee Albert Einstein, who earns $21.35 per hour, worked for 48 hours last week and took home $597.80 after taxes. The employee Lawrence Kraus, who earns $2.12 per hour, worked for 40 hours last week and took home $59.36 after taxes. The employee Stephen Hawking, who earns $20.01 per hour, worked for 48 hours last week and took home $568.28 after taxes. You must take care to format the output correctly for all of your dollar amounts. You may name the employees whatever you like. I used the names of famous scientists. You may also give the employees whatever hourly rates you want. But your rates must include decimal values to ensure your program works. In your loop through the array in the program, you must catch a possible ArrayIndexOutOfBounds Exception when extracting an employee from your employee array. This will show you understand how to handle an exception. When you catch the exception, you can simply do a System.out.println() message it was caught.
Declaration Console X Problems @ Javadoc <terminated> Main (2) [Java Application] Enter the hours worked for all the employees last week? 40 The employee Fred Boyle, who earns $15.50 per hour, worked for 40 hours last week and took home $434.00 after taxes. The employee Albert Einstein, who earns $21.35 per hour, worked for 40 hours last week and took home $597.80 after taxes. The employee Lawrence Kraus, who earns $2.12 per hour, worked for 40 hours last week and took home $ 59.36 after taxes. The employee Stephen Hawking, who earns $20.01 per hour, worked for 40 hours last week and took home $560.28 after taxes. /Volumes/Eclipse/Eclipse.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_16.0.1.v2021052