Question
Question 1. 20 points. Everything in this question should go in the q1 folder. The file should be named index.html. Make the title of this
Question 1. 20 points.
Everything in this question should go in the q1 folder. The file should be named index.html. Make the title of this section: (Your Name)s Smallest of Three Numbers This will be identical to the previous question, except with three inputs! Include the necessary HTML documentation using comments. Include your name, class number, section number, and date. Create these empty div element(s) on the screen: results Put three input text boxes on the screen and a button. Label the first box as Enter the first number, the second, Enter the second number, and the third, Enter the third number. Put a button on the screen with the text that reads, Determine the smaller number. When the user enters three numbers and clicks the button, the results div box should print which of the three numbers is the smallest (First or Second or Third) along with the actual number. Write your output as a complete sentence, such as The third number (102) is smallest. This question will be tricky because sometimes youll get (4, 4, 3), and one number is the smallest. Sometimes youll get (4, 5, 4), and two numbers will be the smallest. If two numbers are equal and smallest than a third, print that one of the numbers is the smallest. If all three numbers are the same, print the first value.
Question 2. 20 points.
Make the title of this section: (Your Name)s Middle of Three Numbers This will be identical to the previous question, except report the middle value! Here, we define a middle number as the number (out of three total) that is not larger than the largest and not smaller than the smallest. Create these empty div element(s) on the screen: results Create these empty div element(s) on the screen: results Put three input text boxes on the screen and a button. Label the first box as Enter the first number, the second, Enter the second number, and the third, Enter the third number. Put a button on the screen with the text that reads, Determine the middle number. When the user enters three numbers and clicks the button, the results div box should print which of the three numbers is in the middle (First, Second, or Third) along with the middle. This application should write the output as a complete sentence, such as The first number (18) is the middle value. What if all three numbers are the same? Print the only number.
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