Procedural Programming Assignment: Student Information Management System, Schemes and Mind Maps of Computer Fundamentals

Prog102: Procedural Programming

Typology: Schemes and Mind Maps

2021/2022

Uploaded on 04/24/2023

lazy-peesh-1
lazy-peesh-1 🇻🇳

5

(2)

12 documents

1 / 12

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ASSIGNMENT 1 FRONT SHEET
Qualification
BTEC Level 5 HND Diploma in Computing
Unit number and title
Prog102: Procedural Programming
Submission date
4 / 6 / 2022
Date
Received
1st submission
Re-submission
Date
Date
Received
2nd submission
Student Name
Ngô Thanh Tùng
Student ID
GCH220075
Class
GCH1104 - Prucedural
Programming
Assessor name
Đặng Trn 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
Tung
Grading grid
P2
M1
M2
D1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Procedural Programming Assignment: Student Information Management System and more Schemes and Mind Maps Computer Fundamentals in PDF only on Docsity!

ASSIGNMENT 1 FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Prog102: Procedural Programming Submission date 4 / 6 / 2022 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Ngô Thanh Tùng Student ID GCH Class GCH1104 - Prucedural Programming Assessor name Đặng Trần 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 Tung Grading grid P1 P2 P3 M1 M2 D

 Summative Feedback:  Resubmission Feedback:

Grade: Assessor Signature: Date: Lecturer Signature:

  • Parameter passing – a technique that is used pass parameter or argument to a function.
  • Libraries – collection of predefine functions, classes, code, etc. that can be used within any program.

1.2 Problem statement

Based on the given scenario, it is much required a small application to assist with managing the student information. The biggest flaw of manual management is that with a huge amount of data will leaving a lot of room for errors, not to mention it will be much more time consuming. A simple application can be capable to resolve these problems with function such as calculate min, max, average, etc.

1.3 Procedural programming application

  • The program needs to declare some variables and arrays for user to enter the information such as: student IDs, grades.
  • The program interface can be created by using switch – case to choose functions the user desire.
  • Separate functions also need to be created for the user to scan, print, finding the student with highest/lowest scores number and exit the program. 2. Analysis (P2)
  1. List data type, data structures needed in the problem
  • Int: store studentIDs
  • Float or double: store student’s grade (store exactly decimal number)
  • Some data types should also be in an array form in order to store multiple values in a single array
  1. Conditional statements needed in the problem
  • If – else: mainly the conditional statement needed in the problem. Use if to specify a block of code to be executed, if a specified condition is true Use else to specify a block of code to be executed, if the same condition is false Use else if to specify a new condition to test, if the first condition is false In the application, if – else is used to scanning for the student have highest grade and the student have the lowest grade. First, I create a variable and give value the same as the grade of the first student in the student list. Then run the loop comparing that variable to all other student’s grades. If the variable value is higher than the student’s grade, changes it to equal

that student’s grade. In the end, that variable will become the lowest grade. Same goes for the highest.

  • Switch – case: a structure to create the interface for the application. It preset the user variety of option to choose and help the program determine with function to execute.
  1. Loop statement needed in the problem
  • For loop: A for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times. (tutorialspoint) This loop can help us to implement and change the array value more effectively. Furthermore, this loop can also display all student and finding highest and lower score.
  • While loop: A while loop in C programming repeatedly executes a target statement as long as a given condition is true. (tutorialspoint) The while loop can help control the program, repeat executes the code as long as the given condition is false. In this case, it can repeat the menu show the option for the user until the user decide to choose exit to close the program. 3. Design (P3, M2)

3.1 WBS

A Work Breakdown Structure (WBS) is a hierarchical outline of the tasks required to complete a project. The WBS “breaks down” the structure of a project into manageable deliverables. Each

This flow chart using the switch – case nested inside the do – while loop to continuously display the menu option for the user after finish execute a function until the user decide to exit the program. The switch – case divide the program into multiple section to run more efficiently and easy to understand.

  • Flow chart for input student information

The flow char depicts sequential steps to input variable into arrays using loop. I create a variable then start a loop that implements the input data to the array and increment the variable by 1 after finished every loop. The function stops when the condition is no longer meet.

  • Flow chart display list of students This flow chart will start looping continuously through all the student data in the array and print out the student information one by one.

4. Evaluation (D1)

4.1 Evaluate my solution

Overall, I think the program will be able to run and complete given tasks quite efficient without having errors. However, some of the function can be improve by using object-oriented programming as it also helps the code much more flexible.

4.2 Evaluate how procedural programming is applied to your problem

With using procedural programming, I able to solve the problem quite effortlessly. The sequential steps help the program navigate the source of information and make it relatively easy to understand and follow. In my opinion, the main disadvantage of my program is lack of reusability. There are many lines of code need to be type multiple time make the code running inefficient. Therefore, function should be created to reduce the amount of code need to type and increase the readability of the program.

5. Reference

  • What is a Work Breakdown Structure? https://www.adeaca.com/blog/faq-items/what-is-a-work-breakdown-structure/
  • For loop in C https://www.tutorialspoint.com/cprogramming/c_for_loop.htm
  • While loop in C https://www.tutorialspoint.com/cprogramming/c_while_loop.htm Powered by TCPDF (www.tcpdf.org)