Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using css and javascript, please help me write a program that takes in the average monthly rainfall for 3 months. I have written most of

image text in transcribed

Using css and javascript, please help me write a program that takes in the average monthly rainfall for 3 months. I have written most of the CSS scripture its really the javascript I am having trouble with. Thank you

The program should ask the user to enter the following information: The names of THREE months. The amount of rain (in inches) that fell for each of these months. The program should display a message stating the average rainfall for the three months given. For example, if the user enters "June", "July", and "August" with average rainfalls of "3.3", "6.43" and "2", then your program should output something similar to the following: The average monthly rainfall for June, July and August was 3.91 inches. If the user enters invalid input (i.e., negative values, empty values), then output an error message to the console. Your program should not compute the calculation nor display the message with the months and average rainfall. As in, nothing but the error message should be outputted

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions

Question

What does the opinion section of the auditors report usually cover?

Answered: 1 week ago