JavaScript Assignment for CIS17:

 

Problem #1:  Write the code using JavaScript to take in data for a persons pay per hour and the hours they worked, multiply them together and display their gross pay.

 

Problem #2:  Using the same program, include an IF statement to test the gross pay to see if the employee should ask for a raise.  If the gross pay is < 1000 the employee needs a raise otherwise they do not.  Put an appropriate message on the screen.

 

Problem #3:  You are having a three-day sale and the price of an item will drop 10% each day.  Take in a price and do a while loop to print out the price for each day of the sale.