Design a website that asks the user to enter a number then it displays the facto
ID: 3583426 • Letter: D
Question
Design a website that asks the user to enter a number then it displays the factorial of that number. Use a for loop. Factorial is represented by an exclamation sign which is the multiplication of all the positive integer numbers less than that number such as: 10! = 1.2.3.4.5.6.7.8.9.10 By specifying widths and heights in terms of a percentage of the window size, you can create page that adjust their display relative to the page size. True False Using JQuery, you can retrieve or set an element's CSS values True False The JavaScript exclamation point operator (!) returns the remainder of an integer division. True FalseExplanation / Answer
Question 6:
<!doctype html>
<html>
<head>
<script>
function show(){
var i, no, fact;
fact=1;
no=Number(document.getElementById("num").value);
for(i=1; i<=no; i++)
{
fact= fact*i;
}
document.getElementById("answer").value= fact;
}
</script>
</head>
<body>
please Enter a Number: <input id="num">
<button>Factorial</button>
<input id="answer">
</body>
</html>
Question 7:By specifying widths and heights in terms of a percentage of the window size ,you can create
page that adjust their display relative to the page size
True
Question 8
Using JQuery ,you can retrieve or set an element's CSS values
TRUE
Explanation: jQuery can equally interpret the CSS and DOM formatting of multiple-word properties.
Question 9
the JavaScript exclamation point operator ! returns of an integer division
FALSE
Explanation:
The ! in Javascript inverts a boolean expression
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.