Question: Write the code in java please. You have to write a program to calculate the annual salary and monthly salary of an employee. Assign the

 Write the code in java please. You have to write a

Write the code in java please.

You have to write a program to calculate the annual salary and monthly salary of an employee. Assign the name of the employee in a variable with appropriate datatype. (Use separate variables for first name and last name) Their hourly wage and hours the person work per week should be assigned in two separate variables. Use the formula annual salary=hourly wages * work hours per week * 50 where hourly wages and work hours per week are assigned in variables (choose appropriate data type). Define an appropriate variable to store the Annual salary. After calculating yearly salary print the monthly salary without assigning it into a new variable. (think about the appropriate formula to apply)

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!