Presentation is loading. Please wait.

Presentation is loading. Please wait.

GCSE COMPUTER SCIENCE Practical Programming using Python

Similar presentations


Presentation on theme: "GCSE COMPUTER SCIENCE Practical Programming using Python"— Presentation transcript:

1 GCSE COMPUTER SCIENCE Practical Programming using Python Controlled Assessment Preparation – Task 3 – Option A

2 Jose needs to search for and display football fixtures.
Option A: Practice 1 Jose needs to search for and display football fixtures. The program will search the file footballFixtures.txt to select and display information about fixtures. The footballFixtures.txt file shows Fixture Number, Date, Time, Venue and Capacity. It must provide a prompt for the user to enter the fixture number. It must find all of the fixture details for the entered fixture number Below is a suggested format for displaying the data. Fixture Number: <the fixture number> Date: <the fixture date> Time: <the fixture time> Venue: <the venue> Capacity: <the capacity>

3 Searching and Displaying the Data
Basic Code Use the code below to help you create a solution Importing the Data Searching and Displaying the Data This is part of the solution to the task on previous slide. The final line is unfinished.

4 Paste a screenshot of your solution below:
Option A: Practice Task 1 Develop a program that meets the requirements of Option A Practice Task 1 Save as: Task3A1 Paste a screenshot of your solution below:

5 Validation using a range check (1-30) for the fixture number
Option A: Practice 1 with Validation Use the additional code below to add in validation for the fixture number Validation using a range check (1-30) for the fixture number By turning your option A into a subprogram you can get the code to restart easily.

6 Paste a screenshot of your solution below:
Option A: Practice Task 1 with Validation Update your code to include the validation on the previous slide Paste a screenshot of your solution below:

7 A doctor needs to search for and display personal information.
Option A: Practice 2 A doctor needs to search for and display personal information. The program will search the file personalDetails.txt to select and display information about people. The personalDetails.txt file shows ID, Forename, Surname, Phone Number and Address. It must provide a prompt for the user to enter an ID number. It must find all of the personal information for the entered ID number Below is a suggested format for displaying the data. ID Forename Surname Phone Number Address <id> <forename> <surname> <phonenumber> < address>

8 Paste a screenshot of your solution below:
Option A: Practice Task 2 Develop a program that meets the requirements of Option A Practice Task 2 Save as: Task3A2 Paste a screenshot of your solution below:

9 Option A: Practice 3 A gym needs to search for and display information about their instructors. The program will search the file gymInstructors.txt to select and display information about gym instructors. The gymInstructors.txt file shows ID, Forename, Surname, Class and Phone Number. It must provide a prompt for the user to enter an ID number. It must find all of the class information for the entered ID number Below is a suggested format for displaying the data. ID Forename Surname Class Name Phone Number <id> <forename> <surname> <classname> <phonenumber>

10 Paste a screenshot of your solution below:
Option A: Practice Task 3 Develop a program that meets the requirements of Option A Practice Task 3 Save as: Task3A3 Paste a screenshot of your solution below:


Download ppt "GCSE COMPUTER SCIENCE Practical Programming using Python"

Similar presentations


Ads by Google