Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions