Unit Award Scheme

116843 PROGRAMMING SKILLS (UNIT 1): GUESSING GAME

In successfully completing this unit, the Learner will have

Evidence needed

shown knowledge of

1the importance of using meaningful variable names throughout their codeStudent completed work

demonstrated the ability to

2use either C#, Python or VB.NET to write a computer program to complete this unitStudent completed work
3create a random integer between 1 and 100 inclusive and store it in an integer variableStudent completed work
4initialise a Boolean variable called gameWon to FalseStudent completed work
5create a variable to store the number of guesses and initialise its value to 0Student completed work
6output the message 'I have chosen a number between 1 and 100 inclusive.'Student completed work
7use a loop to play the game until gameWon has been set to TrueStudent completed work
8prompt the user to enter their guess at the number and store the inputted value in an integer variableStudent completed work
9use a variable to record and update the number of guesses taken to guess the random integerStudent completed work
10set gameWon to True if the entered guess is the same as the random integer Student completed work
11display 'Too low, try again.' if the entered guess is less than the random integer created Student completed work
12display 'Too high, try again.' if the entered guess is greater than the random integer createdStudent completed work
13display a suitable message after the game has been wonStudent completed work
14display 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