this was the final question of the assignment, where i had to create a program that plays rock paper scissors with the user. i added extra features such as a game of 'best of 5', keeping count of score and restarting.
Computing geek
Tuesday, 11 November 2014
(Q.9) heads and tails
the program will randomly choose heads or tails 50 times and print each time whether it was heads or tails. then the sum of each is returned at the end.
(Q.8) counting zeros, positive and negative numbres
this program was part of an assignment were i had to create a program that asks for 7 numbers from the user, adds up the numbers and returns the sum, as well as counting how many zeros, positive and negative numbers were entered.
restarting
this program is a nice experiment of a yes - no tree diagram, such that a route is taken depending on the user's input.
Subscribe to:
Posts (Atom)










