Answered step by step
Verified Expert Solution
Question
1 Approved Answer
First Number:10 Second Number: 30 Give Me Primes 1,13,17,19,23,29 Exercise 2 (2 marks Based on the work you did on the previous exercise, you are
First Number:10 Second Number: 30 Give Me Primes 1,13,17,19,23,29 Exercise 2 (2 marks Based on the work you did on the previous exercise, you are required to take it further by adding a new feature. This feature is about finding the sum of all the prime numbers you found within the range that the user entered. To do this, you will have to add a check box that when the user checks it, another line in the div holding the results will show the total. If the user does not select the check box, then the output should be similar to the output of the previous exercise. See the image below for details: First Number: 10 Second Number: 30 Find total of primes Give Me Primes 11,13,17,19,23,29 Primes total is: 112 Tip: Do some research on how to use check boxes with javascript and how to test if users have selected a check box or not
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started