Question: Even or Odd Number Generator Description Create a webpage that will generate a list of odd or even numbers based on a user input. The

Even or Odd Number Generator

Description

Create a webpage that will generate a list of odd or even numbers based on a user input. The user input should be a number between 1 and 10 (inclusive). When the button is clicked, a list of odd or even numbers between 1 and the user entry will be displayed, e.g. for an odd number generator, if user enters 8, the output will be 1,3,5,7; if the user enters 1, the output will be 1.

You can choose to generate either odd numbers or even numbers, but not both.

Requirements (100)

1) Your webpage should have one textbox for user input and button, with heading messages and instructions. (10)

2) Check if the user entry is indeed between 1 and 10, if not, the output area will show an error message instead a list of numbers. (20)

3) Output must be correct. (20)

4) Numbers generated will be displayed one on each line. See attached file sampleOutput.jpg. (10)

5) Loop must be used. (20)

6) Create a function to handle the button event and use a separate library file to store the function. (15)

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!