Year 12 Summer 2016 Computing Programming HW Task File

Programming Challenges
Complete the following challenges and make sure you use comments to explain your code and
save them with sensible names. You will need to hand in the evidence of your programming at
the start of the school year.
Challenge 1
Write a program that counts a blast off sequence for a space rocket, counting down from 10 (with
1 second pauses) and then saying ‘BLAST OFF’. You will need to use the “import time” function
and use a count variable in a loop.
Challenge 2
Write a program that acts like you are rolling a 6 sided dice. The program should ask the user if
they want to roll the dice. If they say yes, it should tell them the number they have rolled (“You
have rolled a …“). It should ask them again after each roll. If they say no, the program should say
“Goodbye”.
Challenge 3
Create a program that will ask for the diameter and length of a cylinder and will work out the total
volume of the cylinder
Challenge 4
Create a program that will time how long it takes the user to type in the alphabet correctly. It will
not stop the timer until they have correctly typed it in and if they make a mistake it will show a
message and they will have to try to type it in again. Once they have successfully managed to type
in the alphabet correctly it will tell them how long it took them and then ask them if they want to
try again to see if they can beat their previous time.
Challenge 5
Ask the user which year and month they want displayed and then display the calendar for that
month.