Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a web application like the one in the screenshot below that will display a number chart as an HTML table with the prime numbers

Create a web application like the one in the screenshot below that will display a number chart as an HTML table with the prime numbers highlighted in red. You can style the page and table as you see fit, but the prime numbers should be highlighted in red and the number chart should be formatted in a way that is readable. There will be one number input that must have a range of values between 10 and 500 with a step of 10. This ensures the number chart will have ten columns and at least one row. The input is the limit of numbers for example, if you want the first 100 numbers, you would enter 100. Remember to restrict the range to 10 up to 500. You will code the HTML input as a number. Do not use any built in PHP functions to determine the prime numbers. Just use simple loops and if statements to determine the prime numbers. Remember prime numbers are numbers that are greater than 1 and are only divisible by themselves and the number 1. Also make sure the heading in the table displays the limit entered for example, if I enter 20, the table should read 1 20 Prime Numbers Are Red.

Number Chart with 20 as the input. Note 1 does not get highlighted since prime numbers are greater than 1.

If you code the HTML input correctly, the page will not allow inputs such as 15.

Here I used 100 as the input

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

More Books

Students also viewed these Databases questions

Question

Can the vectors probability vectors? If not, why? 1. 2. 3. 4. 3 4)

Answered: 1 week ago