Assignment 2-1618-C#, Assignments of Programming Languages

Pass Pass Pass Pass Pass Pass Pass Pass

Typology: Assignments

2021/2022

Uploaded on 05/29/2023

trantuantd14
trantuantd14 🇻🇳

4.3

(4)

25 documents

1 / 49

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ASSIGNMENT 2 FRONT SHEET
Qualification
BTEC Level 5 HND Diploma in Computing
Unit number and title
Unit 1: Programming
Submission date
28th of December 2021
Date Received 1st submission
Re-submission Date
Date Received 2nd submission
Student Name
Tran Anh Tuan
Student ID
GCD201675
Class
GCD1001
Assessor name
Do Duy Thao
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
Tuan
Grading grid
P2
P3
P4
P5
M2
M3
M4
D2
D3
D4
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31

Partial preview of the text

Download Assignment 2-1618-C# and more Assignments Programming Languages in PDF only on Docsity!

ASSIGNMENT 2 FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Unit 1: Programming Submission date 28 th^ of December 2021 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Tran Anh Tuan Student ID GCD Class GCD1001 Assessor name Do Duy Thao 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 Tuan Grading grid P2 P3 P4 P5 M2 M3 M4 D2 D3 D

 Summative Feedback:  Resubmission Feedback:

Grade: Assessor Signature: Date: Lecturer Signature:

I. Introduction to your program

1. Introduce the Overview

Currently, the Covid-19 epidemic is spreading strongly and dangerously, affecting many service industries, especially education. Students must miss school to reduce the risk of illness. Students must learn online, with limited time, information, and equipment. So, I had the idea to develop a student management app that could help teachers enter student information into different lists and locate classrooms and other resources. You can quickly look up students. As in the previous report, I implemented the idea and followed the program diagram. Now, the more difficult task is that I will develop a definition of my program. In general, in the program, I will use the objecting method to guide and develop the application using Visual Studio 2022.

2. List out application’s requirements

In this program, the user requests the following:

  • Create: CREATE command is used to create a new record in the database.
  • Read: The READ function will be the one used to see, or read, that record. CREATE is a feature that allows you to create a new record in the database.
  • Update: CREATE is a database functionality that lets you make a new record. The READ option will allow you to view, or read, that record.
  • Delete: The DELETE command in CRUD is used to delete existing data, such as data created by CREATE.

II. Explain programming paradigms

1. Procedural Programming

1.1. Definition

Procedural programming is a programming paradigm built round the concept programs are sequences of instructions to be executed. They focus clearly on splitting up programs into named sets of instructions called procedures, analogous to functions. Procedure can store local data that is not accessible from outside the procedure’s scope and may also access and modify global data variables. Figure 1. Procedural working

  • Divided into blocks of codes called functions, where each function performs a specific task. Figure 4. Data can share freely

1.3. Scope of variable

  • Local variables A local variable is a variable type that is declared by declaring a local variable at the start of the block where the variable will be used. Figure 5. Local variable

2. Object – Oriented Programming

2 .1. Definition

Object-Oriented programming (OOP) is a programming paradigm that follow on the concept of classes and objects. It is used to structure a software program into simple, reusable code blueprints (called class), it is used to create individual instances of objects. OOP focuses on the objects that developers want to manipulate rather than the logic required to manipulate them. Figure 7. Object – Oriented programming

2.2. Charactetistics

  • Class - Basic building blocks OOP and a single entity which has data and operations on data together. Figure 8. Class example
  • Abstraction – Specifying what to do but not how to do, a flexible feature for having an overall view of an object’s functionality Figure 10. Abstraction
  • Encapsulation - Binding data and operations of data together in a single unit – A class adhere this feature. Figure 11. Encapsulation
  • Inheritance and class hierarchy - Reusability and extension of existing classes. Figure 12. Inheritance and class hierarchy characteristics

In my program, every event is programmed with the Object-Oriented method. Because they bring the convenience and collapse, so it is good for programming as well as a perfect software development. Figure 14. Object – Oriented paradigms

3. Event – Driven Programming

3.1. Definition

Event-Driven programming is a programming paradigm in which the flow of the program is determined by events such as user actions (mouse clicks, key presses), sensor outputs, or messages from other programs or threads. Event-driven programming is the dominant paradigm used in graphical user interfaces and other applications, that are centered on performing certain actions in response to user input. Figure 15. Event – Driven Programming