Professional Documents
Culture Documents
Exercise Answers (27.04.12)
Exercise Answers (27.04.12)
Question 1 Code
[27.04.12]
Output
Question 2 Code
Page 1
Exercise Answers
Output
[27.04.12]
Question 3 Code
Page 2
Exercise Answers
Output Correct
[27.04.12]
Program prints the largest number entered by user among the 10 digits entered Incorrect
If users enter any other digits which are not single, the programs displays an alert window which notifies the user that the digit entered is wrong and the user has to re-enter again
Page 3
Exercise Answers
Question 4 Code
[27.04.12]
Page 4
Exercise Answers
Output Correct
[27.04.12]
Incorrect
In cases where user enters invalid input, the program displays the default value either 1 or 20
Page 5