JavaScript problems:

I want you to write the pseudocode or draw the flowchart for the following problems and then I want you to write them in JavaScript and get them working!

  1. Take in the height, width and depth of a box and determine its volume.

  2. Take in the high temperature for a day and the low temperature for a day. Display the average temperature for the day.

  3. You need to take in the price of four items a customer bought, determine the total price before tax, determine the tax using the tax rate of 5.5% and then determine the total price after taxes. The output should show the total price before tax, the tax and the total price after taxes.

  4. You have received 4 numeric grades for the semester. Grades can range from 0 to 100. The first grade counts for 15% of you final grade. The second grade counts for 25% of your final grade. The third grade counts for 20% of your final grade. The fourth grade counts for 40% of your final grade. Calculate and display your final numeric grade. Extra credit if you display the letter grade as well.

  5. You need to calculate an employees pay. To do this you will need:
    •  the number of hours the employee worked
    •  the number of hours the employee is contracted to work before the employee receives overtime (for example, the employee might be contracted to work 40 hours and only receives overtime for hours over 40)
    •  the pay per hour
    •  the rule for calculating over time (time and one half would be 1.5 while double time would be 2)
    Test this problem with information about an employee who did not work over their contracted hours and again for an employee who did work over their contracted hours.