Docsity

ASM 1-Programming-1618(Distintion), Assignments of Computer 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
15/12/2021
Date Received 1st submission
Re-submission Date
Date Received 2nd submission
Student Name
Student ID
Class
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
M1
D1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e

Partial preview of the text

Download ASM 1-Programming-1618(Distintion) and more Assignments Computer 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 15/12/2021 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Student ID Class 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 M1 D

❒ Summative Feedback: ❒ Resubmission Feedback: Grade: Assessor Signature: Date: Lecturer Signature:

  • I. Introduction: ________________________________________________________________________
      1. C# language: ___________________________________________________________________________
      1. Algorithm: _____________________________________________________________________________
  • II. Software Development Life Cycle (SDLC) _______________________________________________
      1. Definition: _____________________________________________________________________________
      1. V-Shape: ______________________________________________________________________________
      1. Scrum: ________________________________________________________________________________
  • III. Analyse the problem and design the solution : ___________________________________________
      1. Analyse the problem: ___________________________________________________________________
      • a. Data type, data structures needed in the problems: __________________________________________
      • b. Conditional statements needed in the problem: ____________________________________________
      • c. Loop statement needed in the problem: __________________________________________________
      1. Flowchart: ____________________________________________________________________________
      • a. Create struct: _______________________________________________________________________
      • b. Main ______________________________________________________________________________
      • c. Input information: ___________________________________________________________________
      • d. Display information: __________________________________________________________________
      • e. Search function: _____________________________________________________________________
      • f. Delete information ___________________________________________________________________
  • IV. Implementation: __________________________________________________________________
      1. Introduce how the problem was solved: ____________________________________________________
      1. Source code and explain: ________________________________________________________________
      • a. Main:______________________________________________________________________________
      • b. Input function: ______________________________________________________________________
      • c. Display function: _____________________________________________________________________
      • d. Search function: _____________________________________________________________________
      • e. Delete function: _____________________________________________________________________
      1. Final result and explain: _________________________________________________________________
    • a. Login: _____________________________________________________________________________
    • b. Input function: ______________________________________________________________________
    • c. Display function: _____________________________________________________________________
    • d. Search function: _____________________________________________________________________
    • e. Delete function: _____________________________________________________________________
  • V. TEST CASE ______________________________________________________________________
  • VI. Conclusion _______________________________________________________________________
  • Figures 1 : Algorithm ________________________________________________________________ Tables of Figures
  • Figures 2 : SDLC ____________________________________________________________________
  • Figures 3 : V-shape __________________________________________________________________
  • Figures 4 : Scrum___________________________________________________________________
  • Figures 5 : Scrum framework _________________________________________________________
  • Figures 6 : If statement ______________________________________________________________
  • Figures 7 : Switch __________________________________________________________________
  • Figures 8 : For _____________________________________________________________________
  • Figures 9 : Do-while statement ________________________________________________________
  • Figures 10 : List statement ___________________________________________________________
  • Figures 11 : Create struct flowchart ____________________________________________________
  • Figures 12 : Main flowchart __________________________________________________________
  • Figures 13 : Input flowchart __________________________________________________________
  • Figures 14 : Display flowchart ________________________________________________________
  • Figures 15 : Search flowchart ________________________________________________________
  • Figures 16 : Delete Flowchart ________________________________________________________
  • Figures 17 : Class: Student __________________________________________________________
  • Figures 18 : Class: ClassRoom _______________________________________________________
  • Figures 19 : Main __________________________________________________________________
  • Figures 20 : Input function ___________________________________________________________
  • Figures 21 : Display function _________________________________________________________

Figures 22 : Search function.1 ________________________________________________________ 22 Figures 23 : Search function.2 ________________________________________________________ 23 Figures 24 : Delete function __________________________________________________________ 23 Figures 25 : Login wrong pass or user __________________________________________________ 23 Figures 26 : Login right user and pass __________________________________________________ 24 Figures 27 : Input information of student. _______________________________________________ 24 Figures 28 : Display information ______________________________________________________ 25 Figures 29 : Search information _______________________________________________________ 25 Figures 30 : Delete information _______________________________________________________ 26

Tables of Tables

Tables 1: Data type, data structures ___________________________________________________ 12 Tables 2: Test Case ________________________________________________________________ 28 I. Introduction: Problem: Teacher can’t remember information of student in class. He told me create a program to write information of student, and create user and password to make sure no one can login without him. Documentary management of student information can lead to loss of documents and possible theft of student information by outsiders. Solution: I create a program to manage student information with C#. The program have function of logging in, input information of student, display information of student, search information of student , delete information of student and exit program.

  1. C# language:
  • C# is a programming language created by Microsoft. It was presented in 2002 with adaption 1. Microsoft’s .NET Framework. From that point toward, C# has gone through a few corrections, comparing with each .NET update. Today, it is perhaps the most well-known programming dialects for making Windows projects and web applications (Christensson, 2014).
  • C# is a subsidiary of the C programming language and is like C++. It utilizes similar essential administrators as C++, is object-arranged, case sensitive, and has almost identical syntax. However, there are a few contrasts among C# and C++ (Christensson, 2014).

According to Jevtic (Jevtic, 2019), SDLC is an orderly cycle for building programming that guarantees the quality and accuracy of the product assembled. SDLC measure means to deliver top notch programming that meets client assumptions. The framework improvement ought to be finished in the precharacterized time span and cost. SDLC comprises of a definite arrangement which discloses how to plan, construct, and keep up with explicit programming. Each period of the SDLC life Cycle has its own interaction and expectations that feed into the following stage. SDLC represents Programming Advancement Life Cycle and is likewise alluded to as the Application Improvement life-cycle. Figures 2 : SDLC The entire SDLC process divided into the following SDLC steps: Requirement collection and analysis: The necessity is the primary stage in the SDLC interaction. It is led by the senior colleagues with contributions from every one of the partners and space specialists in the business. Anticipating the quality confirmation necessities and recognition of the dangers implied is additionally done at this stage. This stage gives a clearer image of the extent of the whole task and the expected issues, openings, and orders which set off the undertaking. Prerequisites Social occasion stage need groups to get definite and exact necessities. This assists organizations with concluding the essential course of events to complete crafted by that framework. Feasibility study: This process conducted with the help of 'Software Requirement Specification' document also known as 'SRS' document. It includes everything which should be designed and developed during the project life cycle. Design: In this third stage, the framework and programming configuration reports are ready according to the prerequisite detail archive. This characterizes in general framework engineering. This plan stage fills in as contribution for the following period of the model. Coding: When the design stage is finished, the following stage is coding. In this stage, engineers start construct the whole framework by composing code utilizing the picked programming language. In the

coding stage, undertakings are separated into units or modules and allotted to the different engineers. It is the longest period of the Product Advancement Life Cycle measure. In this stage, Designer needs to follow certain predefined coding rules. They likewise need to utilize programming devices like compiler, translators, debugger to create and execute the code. Testing: When the product is finished, and it is conveyed in the testing climate. The testing group begins testing the usefulness of the whole framework. This is done to confirm that the whole application works as indicated by the client necessity. During this stage, QA and testing group may discover a few bugs/absconds which they convey to designers. The improvement group fixes the mess with and send back to QA for a re-test. This interaction proceeds until the product is sans bug, stable, and working as indicated by the business needs of that framework. Deployment: When the product testing stage is finished and no bugs or mistakes left in the framework then the last arrangement measure begins. In view of the criticism given by the venture chief, the last programming is delivered and checked for arrangement issues assuming any. Maintenance: When the framework is sent, and clients begin utilizing the created framework, following 3 exercises happen

  • Bug fixing - bugs are accounted for due to certain situations which are not tried by any stretch of the imagination
  • Update - Overhauling the application to the more up to date forms of the Product
  • Upgrade - Adding some new highlights into the current programming The principle focal point of this SDLC stage is to guarantee that requirements keep on being met and that the framework keeps on proceeding according to the detail referenced in the main stage.
    1. V-Shape: In this kind of SDLC model testing and the turn of events, the stage is arranged in equal. Along these lines, there are check periods of SDLC as an afterthought and the approval stage on the opposite side. VModel joins by Coding stage. Before going to how does it work, there are two declaration we must define first: Validation: is the confirmation that an item, administration, or system addresses the issues of the client and other identified partners. It frequently includes acknowledgment and appropriateness with outside clients. Verification: is the assessment of whether an item, administration, or system conforms to a guideline, requirement, determination, or forced condition. It is normal an internal process.

User acceptance testing: Customer users directly test the project to guarantee that they have conveyed the right programming according to the determinations. Advantages:

  1. Easy and simple to perform.
  2. Testing exercises are arranged prior to coding. This saves a ton of time and furthermore helps in fostering an awesome comprehension of the task at the starting state.
  3. Each stage has explicit expectations.
  4. Works for little tasks.
  5. Functions admirably for where necessities are without any problem. Disadvantages:
  6. The greatest weakness of V-model is that it's very unbending and the most un-adaptable.
  7. It isn't proposed for momentary activities as it requires reviews at each stage.
  8. If any progressions happen mid-way, not just the necessities reports yet in addition the test documentation should be refreshed. All in all, V-model is a model easily to use, necessities must be exceptionally clear before the venture begins, since it is normally costly to return and make changes. There are some of the most suitable scenarios to use the V-model:
  • Requirements are distinct, obviously reported and fixed.
  • Technology isn't dynamic and is surely known by the designer group.
  • The project is short.
  • There are no equivocal or unclear requirements.
  • Item definition is stable. Example: Military projects, Space shuttle, etc.
    1. Scrum: Scrum is a one the agile practices, it is a incremental methodology and iterative in nature used to deal with the complex work implies develop the complex software products with the much of the time changing business necessities (Hema and Thota, 2020). There are 3 roles in Scrum: Scrum master: keeps up scrum processes. Owner of the product: customer or stockholder. Scrum team: 7 people. The entire product is partitioned into little augmentations which are shippable expectations that can be checked at each sprint's end.

Figures 4 : Scrum Scrum events: Sprint: controls the hauling instrument that limits inflow over-burden. Sprint planning: permits self-evaluation of each task that starts clarity and development with respects DoD (Definition of Done). Daily Scrum meeting: upgrades the coordination among team to show and communicate their thoughts Sprint review: Incorporates scrum team alongside different stockholders. Which takes the feedback from the scrum team and furthermore assessment has been taken here. Sprint retrospective: supplies an opportunity to examine at deterrents for the second and to get supplements for the coming sprint.

Int Age, Id, n, choice, change Natural numbers we will enter String Name, user, password, ten String of characters, so we will be use string types Float Gpa Number of type to enter List Student Create a list to enter student information Funtion Input, Output, Search, Delete Contain codes, functions will be executed when calling the functions out. In my program, example, I use function input to executed codes to input student information Tables 1: Data type, data structures b. Conditional statements needed in the problem: If statement: Check to see if the command is still running or if it is being blocked by the condition. In my software, I'll utilize it to check if the user and pass you enter are correct before running the function. Otherwise, the code will not be run. Figures 6 : If statement Switch: used to choose a function from the program, and the function will execute the code. My program has five functions to pick from, and if the number you enter does not correspond to one of them, it will return you to the main menu.

Figures 7 : Switch c. Loop statement needed in the problem: For: storing, exporting, and inspecting array values. Example, in my program, code will run from 0 to all of data I input if them find it in list, them will display result with name, age, id and gpa. Figures 8 : For Do-while: Check the condition after running the code. The code will terminate if the condition is not met. I'll utilize it in my software to check the password and username; if there are more than three attempts, you won't be allowed to enter username, password, or quit the application.

b. Main Figures 12 : Main flowchart c. Input information:

Figures 13 : Input flowchart d. Display information:

Figures 15 : Search flowchart

f. Delete information Figures 16 : Delete Flowchart IV. Implementation:

  1. Introduce how the problem was solved: With the software's login function, student information input function, display student list function,