Question: You are provided an HTML program. Your responsibility is to insert the appropriate JavaScript statements in the correct locations that will solve the problem discussed

 You are provided an HTML program. Your responsibility is to insert

You are provided an HTML program. Your responsibility is to insert the appropriate JavaScript statements in the correct locations that will solve the problem discussed below, You are also to comment the html file with the requested information per the requirements. Problem to solve: The meteorology department wants to provide a webpage that will allow users to submit monthly rainfall amount for one year by month. They need you modify the html code provided to: Read the values entered into the web page . If a negative number is entered, use the value to zero (0). You can assume that rainfall amounts will be entered in whole numbers o o Calculate the total rainfall for the year Calculate the average rainfall for the year Identify the month with the most rain Identify the month with the least rain . Place the results into the correct text boxes. Requirements For this assignment; You will generate HTML comments to add your name, section, and TA name. This will (should) NOT be visible in the document on the web browser. This is the only HTML you will create Your assignment is to create the JavaScript to calculate the values as described above and insert it into the TML You will create and utilize one (1) array to hold the monthly values, at least two (2) functions, and at least one (1) loop which utilizes the array in your solution. Modify the html button element to execute your JavaScript. Utilize JavaScript comments to explain the steps you are preforming within your code. A JavaScript comment's form is: 1. 2. 3. 4. 5. *Place your comment between the stars 6. Variable names should be descriptive. For example, if a program is calculating the total charge for a bill at a restaurant, it may have a variable named tipAmount. You are provided an HTML program. Your responsibility is to insert the appropriate JavaScript statements in the correct locations that will solve the problem discussed below, You are also to comment the html file with the requested information per the requirements. Problem to solve: The meteorology department wants to provide a webpage that will allow users to submit monthly rainfall amount for one year by month. They need you modify the html code provided to: Read the values entered into the web page . If a negative number is entered, use the value to zero (0). You can assume that rainfall amounts will be entered in whole numbers o o Calculate the total rainfall for the year Calculate the average rainfall for the year Identify the month with the most rain Identify the month with the least rain . Place the results into the correct text boxes. Requirements For this assignment; You will generate HTML comments to add your name, section, and TA name. This will (should) NOT be visible in the document on the web browser. This is the only HTML you will create Your assignment is to create the JavaScript to calculate the values as described above and insert it into the TML You will create and utilize one (1) array to hold the monthly values, at least two (2) functions, and at least one (1) loop which utilizes the array in your solution. Modify the html button element to execute your JavaScript. Utilize JavaScript comments to explain the steps you are preforming within your code. A JavaScript comment's form is: 1. 2. 3. 4. 5. *Place your comment between the stars 6. Variable names should be descriptive. For example, if a program is calculating the total charge for a bill at a restaurant, it may have a variable named tipAmount

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!