logo

Crowdly

Write code for a website, and on the website display: 3 text fields (one on each...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Write code for a website, and on the website display:

  • 3 text fields (one on each line) with instruction labels 'Enter 1st positive integer', 'Enter 2nd positive integer', and 'Modulo 10 Result'.
  • A red word "Do calculation"
  • A div that displays your full name in orange color.
Whenever the user enters 2 numbers in the text fields and moves the mouse over the word "Do calculation" then display an equation in the div (the div that used to display full name).

The equation looks like this

your student number + number1 + number2 = result,

where the 2 numbers are entered by the user in the text fields. The equation must be in orange color.

Take the result and perform a modulo 10 and then display the modulo 10 result in the above text field.

You must use YOUR OWN information. If your information is wrong then you will not get marks.

Here is an example. Suppose your student number is 1234567, and the user enters two numbers 50 and 20 in the text fields, then the equation is

1234567 + 50 + 20 = 1234637

Take this result and do modulo 10, then 1234637%10 = 7, so display number 7 in the text field 'Modulo 10 Result'.

More questions like this

Want instant access to all verified answers on moodle.uowplatform.edu.au?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!