Programming Paradigms and IDEs: A Practical Guide for Software Development, Assignments of Windows Programming

Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass

Typology: Assignments

2020/2021

Uploaded on 09/16/2021

imissyou
imissyou 🇻🇳

4.6

(33)

9 documents

1 / 33

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
Date Received 1st submission
Re-submission Date
Date Received 2nd submission
Student Name
Đinh Xuân Trường
Student ID
GCH200308
Class
GCH0908
Assessor name
Lại Mạnh Dũng
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
Trường
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

Partial preview of the text

Download Programming Paradigms and IDEs: A Practical Guide for Software Development and more Assignments Windows Programming 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 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Đinh Xuân Trường Student ID GCH Class GCH0908 Assessor name Lại Mạnh Dũng 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 Trường Grading grid P2 P3 P4 P5 M2 M3 M4 D2 D3 D

 Summative Feedback:  Resubmission Feedback:

Grade: Assessor Signature: Date: Lecturer Signature:

2.2 (^) 2.

I. Introduction

I have applied for a post as a trainee with a software development company and have been invited for an interview. I have been passed the presentation to demonstrate my problem solving and basic programming skills. Right now, I have given a more challenge task to create a fully working, secure application that has been developed using an IDE and adheres to coding standards for a detailed business problem.

II. Give explanations of what procedural, object-oriented and event-driven

paradigms are; their characteristics and the relationship between them

  1. Procedural Programming 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. Procedural working

Procedural paradigms Here is an example, it shows the procedural model. Specifically, it must take turns adding the numbers together in the order of the number before plus the number after it in the sequence. Then, iterating continuously until the last number, we get the sum of the sequence of numbers. Characteristics:

  • Procedural programming follows a top-down approach Top-down characteristics
  • Divided into blocks of codes called functions, where each function performs a specific task.
  • The data moves freely in a program and a function can access other function's data by calling that function. The data and functions are detached from each other.

Class example

  • Objects - The instances of a class which are used in real functionality – its variables and operations. Object characteristics
  • Abstraction - Specifying what to do but not how to do, a flexible feature for having an overall view of an object’s functionality.

An example of abstraction

  • Encapsulation - Binding data and operations of data together in a single unit – A class adhere this feature. An example of encapsulation
  • Inheritance and class hierarchy - Reusability and extension of existing classes

Object-Oriented paradigms

  1. Event-Driven Programming 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. Event-driven working

Characteristics:

  • Event handlers is a function that takes place when a certain event happens, they are executed in response to a certain event that takes place. Event handlers’ characteristics
  • Trigger functions decide what code is ran when a specific event occurs, they are used to choose when event handlers are running for the event occurs. Trigger function example
  • Event (Mouse, keyboard) must be triggered in this program. This means the user must interact with an object in this program. We can create any button in form program, select on it and write code in any button. This is very clearly when build a software that has enough request to the programmer wants to create. Event-driven paradigms

The benefits of using IDE:

  • Faster setup. By integrating an IDE, programmers can have the same set of capabilities in one place without needing to constantly switch tools.
  • Faster development tasks. The tools and features of the IDE help programmers organize resources, prevent mistakes, and implement shortcuts.
  • Standardization, helping programmers work together seamlessly and assisting new hires with getting up to speed so they can hit the ground running. In a way, the IDE will help you more convenient in the development process applications.
  1. User requirements Create a clearly working, secure application that has been developed using an IDE and adheres to coding standards for a detailed business problem. The specific design here is "Manage Premium User Spotify" Manage Premium Spotify User
  2. Design Flow chart

Flowchart Input button

Flowchart Edit button Flowchart Exit button

Flowchart Find button

IV. Explain the debugging process and explain the debugging facilities available in

the IDE

  1. Microsoft Visual Studio Microsoft Visual Studio is an IDE used to develop web applications, computer programs, mobile applications, and more. We can build Android app and Windows app smoothly. It supports 36 languages.

When programmers or software engineers double click on the element, Visual Studio will create the event for that element. DoubleClick and Visual Studio automatically generate code to the Form 1 .cs and edit code inside. Double click feature

  • Intellisense IntelliSense is a general term for various code editing features including: code completion, parameter info, quick info, and member lists. IntelliSense features are sometimes called by other names such as "code completion", "content assist", and "code hinting." Intellisense feature
  • Complier A line of code created to allow running a program made of compiler. To run compiler feature, we need an IDE to translate the code to let computer understand this language and run. Compiler feature
  • Format code The format code feature help developer automatically format code, make it looks clearly. In the example with C#, we see the code is crooked, not aligned, we can use the tool in the IDE to reformat it automatically

Format code feature

  • Debugging code A debugger is a computer program used by programmers to test and debug a target program. Debuggers may use instruction-set simulators, rather than running a program directly on the processor to achieve a higher level of control over its execution. Debugging feature
  1. Explain the debugging process a, Problem In my program, after managing the information of user, I want to edit the User name because I was wrong input, but when I selected on this Row, the text box of user name is unable. So, there is an error.