File Handling - 101 Computing https://www.101computing.net Boost Your Programming Skills! Sat, 07 Dec 2024 11:37:28 +0000 en-US hourly 1 https://www.101computing.net/wp/wp-content/uploads/cropped-android-chrome-512x512-1-32x32.png File Handling - 101 Computing https://www.101computing.net 32 32 Italian Takeaway Ordering System https://www.101computing.net/italian-takeaway-ordering-system/ Sat, 15 Apr 2017 11:00:14 +0000 http://www.101computing.net/?p=4407 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

The post Italian Takeaway Ordering System first appeared on 101 Computing.

]]>
Cinema Booking Challenge https://www.101computing.net/cinema-booking-challenge/ Fri, 14 Apr 2017 19:59:59 +0000 http://www.101computing.net/?p=4396 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

The post Cinema Booking Challenge first appeared on 101 Computing.

]]>
Break Even Point https://www.101computing.net/break-even-point/ Sun, 02 Apr 2017 17:48:42 +0000 http://www.101computing.net/?p=4327 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

The post Break Even Point first appeared on 101 Computing.

]]>
Kings & Queens of England https://www.101computing.net/kings-queens-of-england/ Sun, 19 Mar 2017 20:39:22 +0000 http://www.101computing.net/?p=4230 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

The post Kings & Queens of England first appeared on 101 Computing.

]]>
Professor Snape’s Magic Potions https://www.101computing.net/professor-snape-s-magic-potions/ Sat, 18 Mar 2017 18:16:35 +0000 http://www.101computing.net/?p=4218 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

The post Professor Snape’s Magic Potions first appeared on 101 Computing.

]]>
Leaderboard https://www.101computing.net/leaderboard/ Fri, 24 Feb 2017 15:30:00 +0000 http://www.101computing.net/?p=4033 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

The post Leaderboard first appeared on 101 Computing.

]]>
Domain Name Server https://www.101computing.net/domain-name-server/ Fri, 03 Feb 2017 23:17:38 +0000 http://www.101computing.net/?p=3875 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

The post Domain Name Server first appeared on 101 Computing.

]]>
Google Translate https://www.101computing.net/google-translate/ Fri, 02 Oct 2015 20:37:50 +0000 http://www.101computing.net/?p=2174 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

The post Google Translate first appeared on 101 Computing.

]]>
Le Tour de France https://www.101computing.net/le-tour-de-france/ Mon, 20 Jul 2015 21:42:41 +0000 http://www.101computing.net/?p=1919 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

The post Le Tour de France first appeared on 101 Computing.

]]>
London 2012 https://www.101computing.net/london-2012/ Fri, 05 Jun 2015 23:25:16 +0000 http://www.101computing.net/?p=1186 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

The post London 2012 first appeared on 101 Computing.

]]>