0% found this document useful (0 votes)
14 views1 page

Psudo Code

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views1 page

Psudo Code

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Ask for input between 0-4

If input isn’t between 0 -4 prompt user to input again

If input is between 0-4


Case 0:
Flip a coin
If coin lands on heads add 1 to its respective counter
If coin lands on tails add 1 to its respective counter
Repeat 10 times

Case 1 :
Get a random number between 1 & 100
Decrement the value by 1
Display value until it reaches 0
Track time it takes to go to 0
Display total time taken to reach 0
Case 2:
Get a random number
Make random number to the power of 2
Display number
Repeat 5 times
Display final result
Case 3:
Get 2 random numbers between 0 and 20
Add the numbers and display
Subtract the numbers and display
Divide the numbers and display
Multiply the numbers and display
Make one random number to the power of the other and display
Case 4
exit program

Repeat unless 4 is pressed

You might also like