Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Xxiv Special Issue On Database And Expert Systems Applications Lncs 9510

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Hendrik Decker ,Lenka Lhotska ,Sebastian Link

1st Edition

366249213X, 978-3662492130

More Books

Students also viewed these Databases questions