Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started