Docsity

Document's title is good, Cheat Sheet of Computer science

Toggle sidebar
bg1
ASSIGNMENT BRIEF
Programme Title Pearson BTEC Level 5 Higher National Diploma in Computing
Student Name/ID
Number
Unit number and
Title Introduction to Programming in Python
Assignment title Problem solving with Python
Academic Year
Unit Tutor
Issue date Submission date
Submission Format:
Format: The submission is in the form of an individual written report and a demonstration of how your code
works. This should be written in a concise, formal business style using single spacing and font size 12.
You are required to make use of headings, paragraphs and subsections as appropriate, and all work
must be supported with research and referenced using the Harvard referencing system. Please also
provide a bibliography using the Harvard referencing system.
Submission: Students are compulsory to submit the assignment in due date and in a way requested by the Tutors.
The form of submission will be a soft copy in PDF posted on corresponding course of
http://cms.btec.edu.vn/
Note: The Assignment must be your own work, and not copied by or from another student or from
books etc. If you use ideas, quotes or data (such as diagrams) from books, journals or other sources, you must
reference your sources, using the Harvard style. Make sure that you know how to reference properly, and that
understand the guidelines on plagiarism. If you do not, you definitely get fail
Assignment Brief and Guidance:
Scenario: You are a student who wants to calculate your GPA (grade point average) based on your grades in
different courses. You decide to write a Python program that can do this task for you. Your program should:
Define a function to calculate the GPA given a list of grades and their corresponding credits. The formula for GPA is
the sum of the products of each grade and its credit divided by the total credits.
Requirements
โ—The GPA calculator program must meet the following requirements:
BTEC HN Assignment Brief Template
Issue Date: Jan 2024 Owner: HN QD
DCL1 Public (Unclassified) Version 2.0
pf3

Partial preview of the text

Download Document's title is good and more Cheat Sheet Computer science in PDF only on Docsity!

ASSIGNMENT BRIEF

Programme Title Pearson BTEC Level 5 Higher National Diploma in Computing

Student Name/ID

Number

Unit number and

Title

Introduction to Programming in Python

Assignment title Problem solving with Python

Academic Year

Unit Tutor

Issue date Submission date

Submission Format: Format: The submission is in the form of an individual written report and a demonstration of how your code works. This should be written in a concise, formal business style using single spacing and font size 12. You are required to make use of headings, paragraphs and subsections as appropriate, and all work must be supported with research and referenced using the Harvard referencing system. Please also provide a bibliography using the Harvard referencing system. Submission: Students are compulsory to submit the assignment in due date and in a way requested by the Tutors. The form of submission will be a soft copy in PDF posted on corresponding course of http://cms.btec.edu.vn/ Note: The Assignment must be your own work, and not copied by or from another student or from books etc. If you use ideas, quotes or data (such as diagrams) from books, journals or other sources, you must reference your sources, using the Harvard style. Make sure that you know how to reference properly, and that understand the guidelines on plagiarism. If you do not, you definitely get fail Assignment Brief and Guidance: Scenario : You are a student who wants to calculate your GPA (grade point average) based on your grades in different courses. You decide to write a Python program that can do this task for you. Your program should: Define a function to calculate the GPA given a list of grades and their corresponding credits. The formula for GPA is the sum of the products of each grade and its credit divided by the total credits. Requirements โ— The GPA calculator program must meet the following requirements: BTEC HN Assignment Brief Template Issue Date: Jan 2024 Owner: HN QD

โ— It must be able to store the student's name and grades in a list. โ— It must be able to calculate the GPA using a function. โ— It must be able to handle errors and invalid input. โ— It must be able to print the results to a text file. In order to do this, you can use the following steps: โ— Create a calculate_gpa() function to calculate GPA. This function will take a list of component scores as input and return the GPA score. โ— Use list to store the list of component scores and credits. โ— Create a print_gpa() function to print the GPA. โ— Prompt the user to enter course grade and corresponding credits. โ— Handle error cases, invalid input cases. For example, if the user enters an invalid name, the program will print an error message. โ— Print the results to a text file. Tasks P1 : Provide a definition of the data type that you use for the variables. โ— Identify the variables used in the program. โ— Specify the data type for each variable. โ— Briefly explain the reason for choosing the selected data type. P2 : Explain the error handling process. โ— Describe the types of errors that the program might encounter. โ— Outline the steps involved in handling errors using a try-except block. P3 : Determine the steps taken from writing code to execution. โ— List the steps involved in writing and executing the program. โ— Briefly explain the purpose of each step. โ— Identify the tools and resources used for writing and executing the program. Learning Outcomes and Assessment Criteria BTEC HN Assignment Brief Template Issue Date: Jan 2024 Owner: HN QD