Spring Term Computing Project:
A train based Python Quiz. The program will:
• Ask for name.
• Welcome by name.
• Ask 5 multiple choice questions
if correct add one to player score.
• Print name, player answers and total score at the end.
• If score > 6 print 'Well Done' 5 times.
• Add to leaderboard and print top 10.
Developement stages:
-
List what your quiz needs to be able to do. Plan the quiz program you are going to make. Flowcharts, pseudo code or any other sensible method of showing how your program will work.
https://github.com/12johnsonf/Quiz1/blob/master/planning.md -
Write a program to ask the player their name and then welcome them to the quiz. For example:
First name: Jerry
Hello Jerry, welcome to the train quiz.
Test your program works then give evidence of your code.
- Make questions array and question asking program:
1) Which of the following is a goat cheese?
Cheddar
Caprino
Stilton
Brie
Enter your answer: Caprino
-
Improve the program so it adds one to the score if the player gets the answer right. Test the program works.
-
When the quiz is over add code so it prints out the player's score with answers. Test your program works then give evidence of your code.
-
Add a leaderboard to the quiz. Test your program works then give evidence of your code.