Lab 12 ─ Image Maps



Honors

Grade Calculators

General information

Read the entire assignment before you start.

Always maintain backup copies of your work, and work on the X- drive during lab.

Maintain the standards of academic honesty discussed in lecture and in previous labs. The work you turn in must be your work.

Ask if you need help!

Lab10bxx.html — Easy Grade Calculator

Before you start, be certain that you have watched the Forms Textboxes and Buttons video, the two arithmetic videos Writing a Function With Parameters – Add and Arithmetic without forms and the 3 minute Math.round video and the two if statements videos, Introduction to the If Statement, and Using the If Statement. These videos are short ~ 3-19 minutes and will help you with the assignment.

Part I — Easy_Calc.html - Save your assignment in your All_102Submissions folder. The user will enter the eight grades and the program will write the average of the grades in a text box.

Create a page that has eight text boxes for entering quiz grades.

Include appropriate headings to the left of the text boxes.

And one more text box for the quiz average.

Include an h2 below the text box that holds the average that says That's My quiz average? .

Crate a button that when clicked

calls a function that:

calculates the rounded average

Round the average using the JavaScript function Math.round.

writes the rounded average into the 9th text box.

And if the average is greater than or equal to 90

replace the text in the h2 that says That's My quiz average? with text that says I got the A!

Give the h2 an id and use an assignment statement – innerHTML.

And turn the background color of the page to red.

Carefully test your code and make sure it is correct.

Part II— Grade_Calc.html – Design a calculator that has text boxes to enter grades:

For the user to enter:

Test1 grade

Test2 grade

Exam grade

Quiz average

HW grade

The program writes to:

A text box for your final grade

A text box for your letter grade

Include a button for the user to click after the grades have been entered.

The each test counts 20 %, the exam counts 25 %, the quizzes count 20% and the HW counts 15 % .

The grading scale is : A 90-100, B 80-89, C 70-79, D 60-69 and F ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download