

























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


























Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Prog 102 : Procedural Programming Submission date Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Dinh Xuan Truong Student ID GCH Class GCH0908 Assessor name Nguyen Tran Dinh Long Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice. Student’s signature Truong Grading grid P1 P2 P3 M1 M2 D
Grade: Assessor Signature: Date: Lecturer Signature:
Introduction
Python: Python is an interpreted high-level general-purpose programming language. Almost, programs language have file extension corresponding such as Python is .py, Ruby is .rb…..
Most programming languages have the same strengths and weaknesses. For example:
Declaring float variable float grade; Declaring integer variable int time, speed; Declaring character variable char var; Declaring string variable: Char StudentID[30][15]; Char fullname[50][50]
For Int, Float Use ‘scanf’ to get characters from keyboard. For Char, String Use ‘gets’ or scanf(“%[^/n]s) to String, use getchar to Char. [30] make this list for variable name, each containing up to [ 30 ] characters
To clear the program's temporary memory for the above garbage values to do not occur.
For the first request, we should choose a do-while loop. Do-while will check for conditions that do not satisfy the problem. If it’s not satisfy the problem, it will check again until user enter correct request.
For-Loop When you know exactly how many times you want to loop through a block of code, use the for
Grade[] Float array Scan number of Grades Name[] [] String Scan list of Names i Integer Using for for-loop function n Integer Scan number students choice Integer Using for switch-case to selection items from menu max Float Scan highest grade min Float Scan lowest grade check Boolen To check. If user didn’t input information first. Another option could not use. Variable, data types will use Structures: Structures Reason why use Illustration If else Find highest and lowest score Switch
another option For- loop Input info of students and print it Structures will use
WBS - WBS to breakdown a problem into small ones.