Intro JavaScript

Introductory JavaScript Assignment

Two assignments: the logic flowchart or pseudocode is a check off and the actual JavScript that I can run is graded.

You need to give me a flowchart of pseudocode for each problem

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

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: Take in the inches of snow from three storms. Calculate the total amount of snow that fell and the average snow fall and display both results.

Problem #3: 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 #4: 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 #5: 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.