Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please add the full of javascript code(By typed) into the HTML&CSS code following the Javascript requirement blow, thank you so much HTML&CSS :

Please add the full of javascript code(By typed) into the HTML&CSS code following the "Javascript requirement" blow, thank you so much

HTML&CSS:

"

ITMD 465/565 Lab 1 - USERNAME - Simple Calculator

ITMD 465/565 - Lab 1 - Simple Calculator

Your First and Last Name - Your Email address

"

Javascrpit requirement:

"1. Put in value 1 and value 2.

2. Click any of the buttons (add, subtract, multiply, divide) and it will do that operation to value 1 and value 2 and show the answer in the results box.

3. If value 1 or value 2 is blank or not a number you need to instead show an alert prompt stating that one of the two values are not a number or empty and do not show any results in the results box.

4. If a letter or non-number character is put in a value box it should show an alert error saying so.

5. If the reset button is clicked it should clear out all the values in value 1, value2, and the results box. o Prevent the user from trying to divide by zero. If they try to divide by zero prompt them with an alert error.

6. Each of the five buttons should have a corresponding event handler function that has been attached to the click event on the respective button. Use the addEventListener method, do not modify the HTML to add an onclick attribute."

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_2

Step: 3

blur-text-image_3

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

5. Prepare for the role of interviewee

Answered: 1 week ago

Question

6. Secure job interviews and manage them with confidence

Answered: 1 week ago