The payroll department in your organization has over the yearsdepended on manual
ID: 3616509 • Letter: T
Question
The payroll department in your organization has over the yearsdepended onmanual way of calculating the employee’s salary. The head ofthat department
requires you to create a simple system to ease up their work.Create the simple
system by doing the following:
i Write a program that reads two numbers from the command line,the
number of hours worked by an employee and their base pay rate.Then
output the total pay due.
ii Rewrite this code and add warning messages to the payrollprogram if the
pay rate is less than the minimum wage or if the employee workedless than
the number of hours in a week to inform the payroll master. ( Hint:Use
Dialog boxes
iii) Rewrite the payroll problem inas an applet. Provide a textfield
for the number of hours, a text field for the pay rate, and anon-editable text field
for the output. Also provide labels to identify all three textfields and a button to
calculate the result.
NB: Don't worry about minimum wage, number of hours in the week, orother
error conditions we checked before. In the event the user entersdata that
cannot be interpreted as a number, don't put anything in the outputtext field.
Explanation / Answer
please rate - thanks sorry CRAMSTER rule 1 question per post hope this will get you started. It's the first question import java.io.*; import java.util.*; public class untitled { public static void main(String[] args) { double base,hours; hours=Double.parseDouble(args[0]); base=Double.parseDouble(args[1]); System.out.println("The total pay due is: $"+hours*base); } }
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.