Question: Write a script that should produce some statistical information on user entered input data. The javascript code should be in an external file called statistics.js,

 Write a script that should produce some statistical information on user

Write a script that should produce some statistical information on user entered input data. The javascript code should be in an external file called "statistics.js", an HTML file named "numStats.html" should be created which will contain only a div element with id "statsOut". Javascript should ask user to enter numerical data until he/she enters -1. You should check for non-numeric and empty values and should ignore that data. Final statistic should be displayed in the div tag of the HTML file. A) You have to use the external CSS file called "stats.CSS" to set border, font, margin, etc. for the div tag. A sample of the style is depicted below you have entered below mentioned numbers You have entered 0 even numbers and 3 odd numbers B) The JavaScript file (statistics.js) should keep prompting the user for input until he/she enters -1. Non-numerical values and empty input should be handled gracefully and should be ignored. The script should produce data as shown in sample output. It should print all the numbers entered as well as number of odd and even numbers entered by the user

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!