User Profile
Collapse
Profile Sidebar
Collapse
fool1
Last Activity: Apr 16 '15, 08:52 PM
Joined: Apr 16 '15
Location:
-
ok thanks a lot. what if the number are to be computed at once ? could help with some part of the code? -
I beleive the numbers should be entered one after another and then button to calculate meanLeave a comment:
-
...Code:<script> function promptForNumber( text) { if(text == '' ){ text = "Please enter a number from 1 to 100"; } var number = parseInt(window.prompt(text, "")); checkNumber(number); } function checkNumber(number){ if (number <= 100 && number >= 1) { } else if (isNaN(number)) { promptForNumber("PleaseLeave a comment:
-
please can you show example? I am stupid and new to JavaScriptLeave a comment:
-
Please help me with ideas how to solve this task
Produce JavaScript code (and any necessary HTML) that will perform the following functions:
1. Using the prompt and alert functions, invite the user to input 5 marks (integers) in the range 0–100.
2. Calculate the average (mean) of the 5 marks as a rounded integer or a floating point number.
3. If the average mark is 0–39, then display a message saying that the grade is a Fail, 40–69 is a Pass, and 70–100 is a Distinction....
No activity results to display
Show More
Leave a comment: