Personal Learning Management Part 3

Submitted by: Submitted by

Views: 608

Words: 946

Pages: 4

Category: Science and Technology

Date Submitted: 09/12/2012 09:18 PM

Report This Essay

Personal Learning Management Part3

By: Jenny Pennington

PRG 211/ Aruna Pandey

University of Phoenix

RandomQ: declare variable

UserChoice: declare variable

Answer: declare variable

QuestionNo: declare variable

Array RandomQ2: (5) create an array and give it five spaces.

Array Answer2: (5) create an array and give it five spaces.

QuestionNo: = 1

RandomFunction: Ask the computer to generate a random number 1-15 and save it as RandomQ:

Dowhile: QuestionNo: < 6

GetClock: get the time from the processor clock.

GetMil: get the milliseconds from the clock time stored as mm.

If GetMil: is 00-06

Then

If RandomQ2: (1) = 1

Then QuestionNo: = QuestionNo

If RandomQ2: (2) = 1

Then QuestionNo: = QuestionNo

If RandomQ2: (3) = 1

Then QuestionNo: = QuestionNo

If RandomQ2: (4) = 1

Then QuestionNo: = QuestionNo

If RandomQ2: (5) = 1

Then QuestionNo: = QuestionNo +1

Else

RandomQ2: (QuestionNo) = 1

QuestionNo: = QuestionNo +1

End if

If GetMil: is 07-12

Same as example 1 for no 3

If GetMil: is 13-18

Same as example 1 for no 3

If GetMil: is 19-24

Same as example 1 for no 4

If GetMil: is 25-30

Same as example 1 for no 5

If GetMil: is 31-36

Same as example 1 for no 6

If GetMil: is 37-42

Same as example 1 for no 7

If GetMil: is 43-48

Same as example 1 for no 8

If GetMil: is 49-54

Same as example 1 for no 9

If GetMil: is 54-60

Same as example 1 for no 10

If GetMil: is 61-66

Same as example 1 for no 11

If GetMil: is 67-72

Same as example 1 for no 12

If GetMil: is 73-78

Same as example 1 for no 13

If GetMil: is 78-84

Same as example 1 for no 14

If GetMil: is 85-90

Same as example 1 for no 15

Else

QuestionNo: = QuestionNo

End if

End do

Write: “Press 1 for true/false.”

Write: “Press 2 for multiple choice.”

Getinput: Get input as UserChoice:

If UserChoice: = 1

QuestionNo: = 1

Run Truefalse:

If UserChoice: = 2...