Intro JavaScript

Introductory JavaScript Assignment

You need to send me the code with a .html extension so I can open it in a prowser and execute the script.

Problem #1: Write a script to handle the following. Enter your pay per hour. Enter your desired income for the week. How many hours are you going to have to work to meet your desired income. Answers need to accomodate decimals. Display the answer.

Problem #2: Write a script to handle the following. Enter the hours you worked for Monday thru Friday (5 different entries). Calculate and display the total hours worked and the average hours worked.

Problem #3: Problem #2: Write an HTML5 file with JavaScript that takes in the price of 3 books and then calculates the average price. You then want to test to see if the average price 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 Okay.

Problem #4: You are at a restaurant and you get a bill for the food and another bill for the drink. You need to get a total. Next you want to calcuate the tax using 6.2%. Finally you want to add the tip at 15%. You want to display the total for food and drink, the total after taxes have been added and the total after the percent has also been added.