In this blog post we will investigate how to implement a bouncing algorithm used either in a platform game when the main sprite collides with a platform or in a breakout game when the ball bounce against a brick. (x,y)…
Did you know that in the UK (and also in most European countries), the eggs you buy in a shop must be stamped with a code that can help you find out more about how and where your eggs were…
In this blog post, we will investigate the use of a Stack data structure to store the different flavours of the different scoops of an ice cream! A stack is a FILO data structure: First In Last Out and seems…
In this blog post, we are going to learn about the format of different addresses used on computer networks to uniquely identify hardware devices. We will investigate the use and format of: IPv4 Addresses, IPv6 Addresses, MAC Addresses. IPv4 Addresses…
In the following set of challenges, we will use a trace table to demonstrate the impact of the FDE cycle on the main registers: Program Counter (PC) Memory Address Register (MAR) Memory Data Register (MDR) Current Instruction Register (CIR) Accumulator…
Question 1[4 marks] Zara has created the following program in her computer science lesson. The aim of this program is to find out if the user is old enough to vote or not, the voting age being 18 years old.…
Question 1[3 marks] Somjay has created the following program in his computer science lesson. The aim of this program is to generate and display five random “lucky” numbers every time this program is executed. Here is his Python code: print("Your…
Question 1[10 marks] Oksana has created the following program in her computer science lesson. The aim of this program is to calculate the price after discount of a list of products bought by a customer. Here is her Python code:…
In this challenge we will compare two methods used to calculate the mode value of a list of numbers. In Maths, The mode is the value that appears most often in a set of data. For instance, considering the following…