Using event handlers and functions, print the sum, difference, product, quotient, or remainder of num1 by num2 (i.e., num1 is always on the left side of the operation) on the webpage when the +, -1, or % button is clicked, respectively. Whenever an operation button is clicked, the display result/message should also change accordingly.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%
1. In your webpage, provide two (2) textboxes (textbox tutorial 1 2) for user input, and add the following
arithmetic operation buttons below the textboxes: +, -, *,/, and %. Below the buttons, add a paragraph
where results will be displayed.
calcU
This page is
Num 1
Num 2
Results will be displayed here.
Using event handlers and functions, print the sum, difference, product, quotient, or remainder of num1
by num2 (i.e., numl is always on the left side of the operation) on the webpage when the +, -,/, or %
button is clicked, respectively. Whenever an operation button is clicked, the display result/message
should also change accordingly.
Sample input values: 5 (textbox 1), 2 (textbox 2)
Expected output.
.. before any button is clicked (default): Results will be displayed here.
. when the + button is clicked: The sum of 5 and 2 is 7.
. when the / button is clicked: The quotient of 5 and 2 is 2.5
calcU
This page is
The sum of 5 and 2 is 7.
Whenever a button is clicked, the previous display message should be cleared and replaced with the
corresponding display message for the chosen operation, but the textboxes and buttons should always
be visible. Remember to include instructions for how to use your calculator. Provide one html
document, 1 external Js file, and 1 sss file
Transcribed Image Text:1. In your webpage, provide two (2) textboxes (textbox tutorial 1 2) for user input, and add the following arithmetic operation buttons below the textboxes: +, -, *,/, and %. Below the buttons, add a paragraph where results will be displayed. calcU This page is Num 1 Num 2 Results will be displayed here. Using event handlers and functions, print the sum, difference, product, quotient, or remainder of num1 by num2 (i.e., numl is always on the left side of the operation) on the webpage when the +, -,/, or % button is clicked, respectively. Whenever an operation button is clicked, the display result/message should also change accordingly. Sample input values: 5 (textbox 1), 2 (textbox 2) Expected output. .. before any button is clicked (default): Results will be displayed here. . when the + button is clicked: The sum of 5 and 2 is 7. . when the / button is clicked: The quotient of 5 and 2 is 2.5 calcU This page is The sum of 5 and 2 is 7. Whenever a button is clicked, the previous display message should be cleared and replaced with the corresponding display message for the chosen operation, but the textboxes and buttons should always be visible. Remember to include instructions for how to use your calculator. Provide one html document, 1 external Js file, and 1 sss file
Expert Solution
steps

Step by step

Solved in 3 steps with 9 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY