Course Solutions Uncategorized (Solved) : Following Write Program Segment Using Loop Display Numbers 2 5 8 11 14 Ii 2 4 16 256 Iii 2 Q27986243 . . . .

(Solved) : Following Write Program Segment Using Loop Display Numbers 2 5 8 11 14 Ii 2 4 16 256 Iii 2 Q27986243 . . . .

 

(a) In each of the following, write a program segment using afor loop to display the numbers.

(i) 2 5 8 11 14

(ii) 2 4 16 256

(iii) 25 12 6 3 1

(b) In this part, we will write a simple game of guessing aninteger. In a dialog box (see the bottom of p.36 for an example ofsuch a dialog box) displaying “Guess a secret integer in the rangeof 1 to 9 inclusively (-1 to terminate)”, the player of the game isasked to guess the correct secret integer in the range. Each timeafter an integer is entered, one of the following messages

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post