Question
Renee's Rad Restaurant pays employees differently depending on their job title and experience. In a web page called Payroll.html , use separate prompt() statements for
Renee's Rad Restaurant pays employees differently depending on their job title and experience. In a web page called Payroll.html, use separate prompt() statements for the following input:
Job title ("W" for wait staff, "H" for host, "K" for kitchen staff)
Number of hours worked
Number of years employed at the restaurant
Then, output their gross pay amount (i.e., the amount they earn before taxes and other deductions) based on the following:
Wait staff earns $5/hour until they've worked 1 year, then earn $6/hour
Hosts earn $12/hour for the first 2 years, then go up to $13.50/hour
Kitchen staff make $15/hour for the first year, then go to $18/hour
You have this in Python. Is there any way I could get this in JavaScript?
This assignment requires an if else, and a switch statement.
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