Tag: File Handling

Italian Takeaway Ordering System

An Italian Takeaway is asking you to write a computer program to facilitate the ordering process and automatically calculate the total cost of an order. They have stored their menu and all prices into a text file with the following

Cinema Booking Challenge

A cinema has created a booking system for their main theatre which consists of 48 seats, organised in 6 rows of 8 seats. To store information as to whether a seat is booked or available, the program uses a 2-dimensional

Break Even Point

In Business or Economics the Break Even Point (BEP) is the point at which the total of fixed and variable costs of a business becomes equal to its total revenue. At this point, a business neither earns any profit nor

Kings & Queens of England

Portrait of Henry VIII There have been 66 monarchs of England and Britain spread over a period of 1500 years. For this Python challenge you will use a text file listing all of these monarchs in chronological order. You will

Professor Snape’s Magic Potions

In this challenge we will use file handling techniques to read through and access the content of different text files. We have saved three recipes for the following three magic potions using one text file per recipe: Invisibility Potion: A


Before completing this challenge you will need to make sure you have already completed a game or a quiz in Python with a scoring system. You will then add a leaderboard functionality to your existing game or quiz in order

Domain Name Server

Domain Name Servers (DNS) are the Internet’s equivalent of a phone book. They maintain a directory of domain names and translate them to numerical IP addresses. These IP addresses are used to identify and locate the web-servers on the Internet

Google Translate

Have you ever used Google Translate to translate some text or a full webpage? For this challenge we are going to try to write a Python script to translate from English to French. However we are only going to translate

Le Tour de France

Learning Objectives By completing this challenge we are learning how to open and extract data from a text file, reading the file line by line. We will then use our program to make some calculations such as calculating the total

London 2012

Learning Objectives In this challenge we are going to investigate methods that can be used to: Read and extract data from a text file, Sort this data in ascending or descending order, Display this sorted data on screen. Context We