Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Independent Home Learning Tasks

Subject Computer Science

Year group 10

Independent learning tasks

Title Mini Programming Project


1. Watch the presentation voiceover that introduces the
programming project.
2. Read the programming challenge brief (on the next page).
3. Complete the design section of the programming
challenge by explaining the task in your own words and
then creating pseudocode or flowcharts for the task.
Tasks
4. Attempt to create the program for the solution. You can do
this by either downloading and installing Python from
www.python.org or using the web version on www.repl.it
(selecting ‘start coding’ and then ‘Python’).
5. Put your design into a Microsoft Word document and
include screenshots of your coding attempts too.
Submit to Mr Bateman or Mr Rohit.
Submit via emailing your Microsoft Word document to
Submission details
compandbus@manor.school.
Submit by Friday 3 July.

Recall and consolidation activities

1. Watch the following videos on YouTube:


a. https://bit.ly/CraigNDaveNumberSystems
b. https://bit.ly/CraigNDaveConverting
c. https://bit.ly/CraigNDaveConvertingHex
2. Complete the following from binary to decimal:
a. 10110110 b. 10011010 c. 11100111
3. Convert the following from decimal to binary:
a. 154 b. 186 c. 231
4. Convert the following from hex to decimal:
a. A4 b. B7 c. C8
5. Convert the following from decimal to hex:
a. 168 b. 172 c. 214
6. Log into www.memrise.com. If you have forgotten your login, or haven’t yet
joined the group (if you are in Mr Rohit’s class you won’t have joined yet) you can
follow this link to find it: https://www.memrise.com/group/393809/. Memrise will
test you on the essential knowledge that you need for Computer Science and do
so repeatedly helping you learn the key facts.
Programming challenge brief: Dice game

Katrina is developing a two-player dice game. The players roll


two 6-sided dice each and get points depending on what they
roll. There are 5 rounds in a game. In each round, each player
rolls two dice. The rules are:
• The points rolled on each player’s dice are added to
their score.
• If the total is an even number, an additional 10 points are added to their score.
• If the total is an odd number, 5 points are subtracted from their score.
• If they roll a double, they get to roll one extra die and get the number of points
rolled added to their score.
• The score of a player cannot go below 0 at any point.
• The person with the highest score at the end of the 5 rounds wins.
• If both players have the same score at the end of 5 rounds, they each roll 1 die
and whoever gets the highest score wins (this repeats until someone wins).

Design, create, test and evaluate a program that:


1. Allows each player to roll two 6 sided dice.
2. Calculate the outputs and the points for each round adding them to the player’s
total score.
3. Allow the player to play 5 rounds.
4. If both players have the same score after 5 rounds, allow each layer to roll 1 dice
until someone else wins.
5. Outputs who has won at the end of 5 rounds.

Support and Challenge:


- To make the game simpler, create the solution with only 1 player in mind, tracking
their score.
- To make the game harder, store the winner’s score and name in an external text
file, displaying the top 5 winning scores from the file at the end of the game.

You might also like