CSCI 351: Internet Programming

Assignment 7.     Due: Mon, Jul 20

Please ZIP all your work in a single archive hw7.zip and upload it on Canvas by 11:59pm of the day above.

  1. (25 points)   Modify the clock script to display time not in military form, but in AM/PM form. Leave only hours and minutes to be displayed. For example, "8:34 PM" should be displayed instead of "20:34".
    Name your HTML file Clock.htm

  2. (25 points)   Modify the timer script to count minutes, seconds, and milliseconds. For example, "1.02.5" should be displayed instead of "62.5".
    Name your HTML file Timer.htm

  3. (25 points)   Modify the timer script to transform it to a countdown. The script should accept an initial integer amount of seconds in the window (for example, "116"), count it down to 0, and stop upon reaching this value. Only the amount of seconds to countdown should be displayed (no milliseconds). Make sure to leave operational buttons only.
    Name your HTML file Cntdown.htm

  4. (25 points)   Modify the solver script to compute and display the roots of the quadratic equation ax2 + bx + c = 0. Here a, b, and c are real coefficients defined by the user. The script, therefore, should have 3 input fields for input a, b, and c and also 2 other fields to output the roots.
    The roots x1 and x2 of the quadratic equation can be computed according to the following formulas:

    Name your HTML file Roots.htm