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,

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!