Docsity

programming in C 1618, 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
Duong Trong Qui
Student ID
GBS200716
Class
GCS1005A
Assessor name
Nguyen Tuan Dang
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
Qui
Grading grid
P1
M1
D1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c

Partial preview of the text

Download programming in C 1618 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 Duong Trong Qui^ Student ID GBS Class GCS1005A^ Assessor name Nguyen Tuan Dang 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 Qui Grading grid P1 M1 D

 Summative Feedback:  Resubmission Feedback:

Grade: Assessor Signature: Date: Lecturer Signature:

ASSIGNMENT 1 ANSWERS

Task 1 – State simple business problems to be solved (P1)

1. Introduction to computer programming language: A programming language may be a formal language that contains a set of created information for distinctive yield sorts. Programming languages are utilized in computer programming to actualize calculations, computer programming language is one of a few dialects that execute straightforwardly when alluded to as a machine in a computer manufacturer-specific numerical shape language, after a basic substitution handle, when communicated within the suitable gathering language, or after interpretation from a "progressed" language. Programming dialects are too partitioned into two sorts, which are "high- level" programming dialects and "low-level" programming languages. 2. Algorithm Definition: An algorithm may be a strategy or equation utilized for understanding an issue. It is based on conducting a grouping of particular activities. The calculation depicts how to illuminate an issue or do something. And your computer will do it precisely that way each time. An algorithm works by taking after a strategy, made up of inputs.

Figure 1 : What is an Algorithm? Source: https://www.geeksforgeeks.org/introduction-to-algorithms/ In arithmetic and computer science, an algorithm is a proprietor of a well-defined set of information that a computer can execute to unravel an issue more often than not. issue or to perform a calculation. Limitations are continuously algorithmic and indicate errands that perform calculations, information handling, programmed induction, and other assignments. As a result of the strategy, an algorithm can be spoken to in a constrained sum of time and time, and by a well-defined dialect, determinant to compute a number of capacities. Beginning at the introductory state and beginning at the introductory (can be cleared out clear), the instruction depicts a calculation that, when executed, will continue to a number of proprietors of Continuity-defined state plans. unequivocally characterized, inevitably creating "yield" and ending at the conclusion of status. The move from one state to the another isn't fundamentally deterministic; A few calculations, known as stochastic calculations, are combined haphazardly. Example : Average of four numbers

3. Software Development Life Cycle (SDLC): a. Definition: According to Jevtic (Jevtic, 2019), SDLC is an efficient cycle for building programming that ensures the quality and precision of the item collected. SDLC degree implies conveying top-notch programming that meets client suspicions. The system enhancement got to be wrapped up within the pre-characterized period and fetched. SDLC comprises of a positive course of action that unveils how to arrange, build, and keep up with unequivocal programming. Each period of the SDLC life Cycle has it possess interaction and desires that bolster into the taking after organize. SDLC speaks to the Programming Headway Life Cycle and is moreover implied to as the Application Enhancement life cycle. Figure 3 : SDLC Source : https://www.netsolutions.com/insights/software-development-life-cycle/

b. The entire SDLC process is divided into the following SDLC steps:

  • Prerequisite collection and investigation: Foreseeing the quality affirmation necessities and acknowledgment of the perils suggested to boot done at this arrange. This arrangement gives a clearer image of the degree of the full errand and the anticipated issues, openings, and orders which set off the undertaking.
  • Feasibility study: This preparation was conducted with the assistance of the 'Software Requirement Specification' archive moreover known as the 'SRS' archive. It incorporates everything which ought to be planned and created amid the venture life cycle.
  • Design: In this third arrangement, the system and programming setup reports are prepared concurring with the prerequisite detail chronicle. This characterizes by common system building. This arranging organizes fills in as a commitment for the taking after a period of the show.
  • Coding: When the design organization is wrapped up, the taking, after arrangement, is coding. In this organization, engineers begin to develop the entire system by composing code utilizing the picked programming dialect. Within the coding arrangement, endeavors are isolated into units or modules and distributed to diverse engineers. It is the longest period of the Product Advancement Life Cycle measure. In this arrangement, the Designer must take after certain predefined coding rules. They moreover have to utilize programming gadgets like compilers, interpreters, and debuggers to make and execute the code.
  • Testing: When the item is wrapped up, and it is passed on within the testing climate. The testing bunch starts testing the convenience of the total system. Usually done to affirm that the complete application works as shown by the client's need. Amid this organize, QA and testing bunch may find many bugs/absconds that they pass on to creators. The enhancement gather fixes the mess and sends it back to QA for a re-test. This interaction continues until the product is sans bug, steady, and working as demonstrated by the commerce needs of that system.
  • Deployment: When the item testing organization is wrapped up and no bugs or botches are cleared out within the system at that point the final course of action degree starts. Given the feedback given by the wander chief, the final programming is conveyed and checked for the course of action issues accepting any. Maintenance: When the system is sent, and clients start utilizing the made system, the taking after 3 works out happen
    • Bug fixing - bugs are accounted for due to certain circumstances which are not attempted by any extent of the creative ability

Figure 4: Create a struct flowchart b. Input information:

Figure 5 : Input flowchart c. Display information:

Figure 7: Search function

e. Delete information: Figure 8: Delete information

I create an internal class of Students with attributes like name, age, GPA id, and grade. Properties are public so all parts of the program can use them. Figure 10: Create Menu

Figure 1 1 : Create Menu

Figure 1 3 : Display function This function displays all information entered by the student and that information will be displayed. d. Search function: Figure 1 4 : Search function When entering a name to search, this function will run from 0 until the name matches it, and if there are no results, it will return null. e. Delete function:

Figure 15: Delete function When typing delete names, this function will run from 0 until the name matches it and remove all data from them.

3. Final result and explain: a. Input function: Figure 16: Input information of the student.