Question: Write a Java program that reads from the user his name, the number of working hours, the rate per hour, and the number of children
Write a Java program that reads from the user his name, the number of working hours, the rate per hour, and the number of children and display his net salary.
- Salary = number of working hours * the rate per hour.
- Allowance is computed as: 50$ for each children (number of children * 50)
- Net Salary = Salary + Allowance
Sample Run:
Enter your name: Rami
Enter the number of your working hours: 45
Enter the rate per hour: 18.5
Enter the number of your children: 2
------ Employee Rami ------
Your salary is 832.5$
Your allowance is 100.0$
Your net Salary is 932.5$
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
