Docsity

BTEC Level 5 HND Diploma in Computing - Unit 1: Programming Assignment 1 - Prof. Phạm Văn, Assignments of C programming

Toggle sidebar
bg1
ASSIGNMENT 1 FRONT SHEET
Qualification BTEC Level 5 HND Diploma in Computing
Unit number and title Unit 1: Programming
Submission date Date Received 1st submission
Re-submission Date Date Received 2nd submission
Student Name Bui Tran Gia Huy Student ID GCH210911
Class GCH1103 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 Huy
Grading grid
P1 M1 D1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download BTEC Level 5 HND Diploma in Computing - Unit 1: Programming Assignment 1 - Prof. Phạm Văn and more Assignments C programming in PDF only on Docsity!

ASSIGNMENT 1 FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Unit 1: Programming Submission date Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Bui Tran Gia Huy Student ID GCH Class GCH1103 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 Huy Grading grid P1 M1 D

Contents

I. Algorithm:............... 3

❒ Summative Feedback: ❒ Resubmission Feedback:

Grade: Assessor Signature: Date: Lecturer Signature:

Figure 1 - Algorithms Algorithm is an example of logic written in software by software developers or a set of rules that must be followed in order to complete a particular task or solve a problem. As you can see, programming languages have flow control (if-else) statements and loops (do, for, while). We can use these commands to write algorithms.

1.2 Present a small and simple problem:

Example: Write a function that returns the sum of two numbers: For a = 9 and B = 8, the output should be sum (A, B) = 17

Figure 2 - Example of function

2. Analyze the problem and design the solutions by the use of suitable methods

2.1 Anlyze the problem

At the request of the teacher regarding student management. We will set up a C# program for easy learning control. I will

Figure 3-Figure of flowchart This program includes 5 functions:

  1. Enter student’s information
  2. Print out the list of students
  3. Calculate the student’s average mark 4.Search students by name
  1. Exit 2.2.1 Menu flowchart: A) Select menu function: Figure 4-Menu flowchart

C) Print out the list of students Figure 6-Print out the list of student flowchart

Chapter 3. Demonstrate the compilation and running of a program

3.1 Source code

MAIN MENU HUB

ADD STUDENTS

Source code:

Figure 8-Add students The “Add book” option will require users to add student they want to add to the class. These are 8 types of data,

Source code: Figure 10-Searching student The option “Search student” will be tackled when you want to find the name of the student, the system will find the information that you enter previous time, if your searching data is equal to the system data, the result will appear.

3.2 System Software Development Life Cycle.

A software project's Software Development Life Cycle is a procedure that must be followed. It's a comprehensive method that outlines how to create, maintain, replace, and alter or improve software. It is, on the other hand, a method for improving software quality and the development process as a whole.