$24
Part A – Mind-Tap Worth a total of 40%
Part B – Eclipse Dr Java or any other IDE/Java Worth a total of 60%
For this question you must write a program in Java as described below.
Make sure your java program has a comment at the beginning that includes your name and the fact that this is homework 5.
Make sure your program is properly indented.
After you have written it, compile it and run it to make sure it works.
Then submit to ICollege your .java file and your .class file.
PLEASE ZIP ALL FILES AND THEN UPLOAD TO DROPBOX.
Program #1: Write a java program (called payroll.java) that reads worker s payroll information and computes the amount of pay for a worker. The worker s payroll information to read (using proper prompts) includes:
• Employee's name
• Number of hours worked
• Hourly rate of pay
• Federal tax rate
The program then computes and displays the following outputs with appropriate labels. Use the tab escape character or “ ” to align your outputs after the labels. The gross pay is the hours worked times the hourly rate, and the net pay is the gross pay minus all taxes.
Employee name
Hours worked
Hourly rate
Gross pay
Tax deducted
Net pay
Program #2: Write a program (called ICalledyou.java) that uses method calls.
The program should work as follows:
1) Reads in two numbers from user input and calculate the product of this two number then print out the result.
2) Reads in two numbers from user input then print out the greater one.
You could use max() function from Math class
Bonus Program #3 Challenge Problem: Write a program Name NumberGrid that calls a method called printGrid that accepts two integers representing a number of rows and columns and prints a grid of integers from 1 to (rows*columns) in column major order. For example the call printGrid(4,6);
Should produce the following output: This is just a sample of numbers it is not in any order.
In-order to do this you will have to use a nested for loop
15 9 131721
2610141822
3711151923
4812162024