


























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 20 /10/2021 Date Received 1st submission 25/10/ Re-submission Date Date Received 2nd submission Student Name Student ID Class GCD0905 Assessor name 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 Grading grid P1 P2 P3 M1 M2 D
Summative Feedback: Resubmission Feedback: Grade: Assessor Signature: Date: Lecturer Signature:
- Low-level languages: It is the programming language with non-powerful abstraction. The programmers need to study carefully about computer design due to deep understanding of computer layout that for composing the program for such a computer. Not like High-level Languages, the Low- level Languages programs are only for one main computer. As a result, Low-level Languages is less popular than High-level Languages. Examples: Assembly Language, Machine Language,… Figures:2 - High & Low language c. Some Computer Programming Languages:
Figures:3 - C Language Figures:4 - C++ language Figures:5 - C# language
Figures:7 - Procedural Programming P2. Characteristics of Procedural Programming:
Figures:9 - Some of the predefined functions in stdio.h header file
outcomes.
b. Pass by reference: In/out-mode semantics are used in this technique. Changes to the parameter are communicated back to the location where the function is called using this technique. c. Pass by the name: The name of the variable is provided in this form of parameter passing, allowing it to be accessed and modified. d. Pass by value-result: This technique is a mix of pass by value and pass by result and leverages in/out-mode semantics. Before the control transfers to the caller, the value of the formal parameter is returned to the real parameter using this technique.
The line int i, j, k; declares and defines the variables i, j, and k; which instruct the compiler to create variables named i, j and k of type int. Variables can be initialized (assigned an initial value) in their declaration. The initializer consists of an equal sign followed by a constant expression as follows: b. Data Types: A data-type in C programming is a set of values and is determined to act on those values. C provides various types of data-types which allow the programmer to select the appropriate type for the variable to set its value. The data-type in a programming language is the collection of data with values having fixed meaning as well as characteristics. Some of them are an integer, floating point, character, etc. Usually, programming languages specify the range values for given data-type.
The program employs a total of seven main variables. Three float variable, and three int variables are included. The table below contains information on these variables, such as their names and data types.