JavaScript Problems

For these problems please add style to make the program seem more professional.>/p>

Problem #1: Write a program to let the use choose whether they want to do math facts using addition, subtraction, or multiplication. Show the math facts using numbers from 1 to 4. The user should be given the chance to retry if they get the wrong answer. If they do not get the answer in 3 tries then move on. If the user gets the correct answer in the first try add 3 to their score. Second try gets a 2 and third try gets a 1. There are no points if the correct answer is not entered in 3 tries. At the end display the score.

Problem #2: Write a program to take an amount you owe to a custer and determine how many dollar bills to return and how many quarters, dimes, nickles, pennies to return. The amount will be under 5 and you should return the most of each. So for example 4.92 would return 4 one dollar bills, 3 quarters, 1 dime, 1 nickel and 2 pennies. Set up a form with textboxes for the amount to return and text boxes of one dollar bills, quarters, dimes, nickels and pennies.
Note: I found indexOf, substring and one of the Math. functions helpful in doing this, so I suggest you research them.

Problem #3: Write a program to solve a set of math calculations in a function and return the answer.

Problem #4: Set up an inventory form with textboxes, check boxes and radio buttons. Determine some calculations to do and some results to display.