You are on page 1of 5

Exercise Answers

Question 1 Code

[27.04.12]

Output

Question 2 Code

Done by: Deveepria a/p Govindasamy

Page 1

Exercise Answers
Output

[27.04.12]

Question 3 Code

Done by: Deveepria a/p Govindasamy

Page 2

Exercise Answers
Output Correct

[27.04.12]

Users will be asked to input 9 single-digit numbers

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

Done by: Deveepria a/p Govindasamy

Page 3

Exercise Answers
Question 4 Code

[27.04.12]

Done by: Deveepria a/p Govindasamy

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

Done by: Deveepria a/p Govindasamy

Page 5

You might also like