Unit Award Scheme
116843 PROGRAMMING SKILLS (UNIT 1): GUESSING GAME
In successfully completing this unit, the Learner will have | Evidence needed | |
---|---|---|
shown knowledge of | ||
1 | the importance of using meaningful variable names throughout their code | Student completed work |
demonstrated the ability to | ||
2 | use either C#, Python or VB.NET to write a computer program to complete this unit | Student completed work |
3 | create a random integer between 1 and 100 inclusive and store it in an integer variable | Student completed work |
4 | initialise a Boolean variable called gameWon to False | Student completed work |
5 | create a variable to store the number of guesses and initialise its value to 0 | Student completed work |
6 | output the message 'I have chosen a number between 1 and 100 inclusive.' | Student completed work |
7 | use a loop to play the game until gameWon has been set to True | Student completed work |
8 | prompt the user to enter their guess at the number and store the inputted value in an integer variable | Student completed work |
9 | use a variable to record and update the number of guesses taken to guess the random integer | Student completed work |
10 | set gameWon to True if the entered guess is the same as the random integer | Student completed work |
11 | display 'Too low, try again.' if the entered guess is less than the random integer created | Student completed work |
12 | display 'Too high, try again.' if the entered guess is greater than the random integer created | Student completed work |
13 | display a suitable message after the game has been won | Student completed work |
14 | display the number of guesses taken to win the game. | Student completed work |
All outcomes recorded on an AQA Summary Sheet
Approved 25 January 2022Level - Level Two