JavaScript Assignment #1

Problem #1: Copy and paste the code in this link and complete the program. invenprob.txt
The directions are listed as comments in the program. Note that you should change the extention to .html when you save it.

Problem #2: Write an HTML5 file with JavaScript that takes in the price of 3 books and then calculates the average price and writes it on the screen.

Problem #3: You are going to modify problem #2, but you need to then save it under a different name. The modification is adding an if statement. You are going to test and see if the average price you calculated is greater than 100. If it is, you want to write out the average and the message too expensive. Otherwise you want to write out the average and a message that says OK.

Problem #4: Take in the pay per hour, the hours worked, and the withhold amount. Multiply the pay per hour by the hours worked to get the gross pay. Subtract the withhold amount to get the net pay. Display both the gross pay and the net pay.

problem #5: Take in the number of items you ordered, take in the price per item. If the number of items ordered is greater than 100 give a 10% discount. Display the final amount due.