Answered You can hire a professional tutor to get the answer.

QUESTION

I have two javascript questions I need assistance with, below are the problem requirements. Thank you. Problem 1 I need a HTML file that has...

I have two javascript questions I need assistance with, below are the problem requirements. Thank you.

Problem 1

I need a HTML file that has Javascript code in it. The filename will be called button.html

The JS code can be in the <head> section or the <body> section. The JS code and HTML code will do the following:

1) I need a HTML button that will trigger the execution of a function named doMath.

2) The doMath function will prompt the user for three numbers and will determine which number is the smallest. 

3) The function will print out to the user via an alert of the smallest number.

Problem 2

I need a HTML file that has Javascript code in it. The filename will be called score.html

The JS code can be in the <head> section or the <body> section. The JS code and HTML code will do the following:

create a button that will call a function that creates an array with the following scores on a test. S1 = 60, S2 = 70, S3 = 99, S4 = 82, S5 = 77, S6 = 100, S7 = 75, S8 = 88, S9 = 100, S10 = 75.

Next, run another function (via a calling statement in the code) that will use a for loop to read the scores and categorize them as follows: A = 90 - 100, B = 80-89, C = 70 - 79, D = 60 -69 and F <60.

Alternative: If you want you can do it all in one function.

Print out the following message: There are x A's, x B's, x C's , x D's and x F's. Obviously, the x stands for a variable representing the actual number. 

Also, print out the average score with a statement that says the average score of the tests is: x.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question