Docsity

1618 Assignment 2 (2021), Exercises of Information Technology

Toggle sidebar
bg1
1
Assignment Brief 2 (RQF)
Higher National Certificate/Diploma in Computing
Student Name/ID Number:
Luu Duc Manh / GCS210889
Unit Number and Title:
Unit 1: Programming
Academic Year:
2021 – 2022
Unit Assessor:
Vu Thanh Hien
Assignment Title:
Application development with IDE
Issue Date:
01 April 2021
Submission Date:
Internal Verifier Name:
Date:
Submission Format:
Format:
● The submission is in the form of an individual written report. This should be written in a concise, formal business
style using single spacing and font size 12. You are required to make use of headings, paragraphs and subsections
as appropriate, and all work must be supported with research and referenced using the Harvard referencing
system. Please also provide a bibliography using the Harvard referencing system.
Submission
● Students are compulsory to submit the assignment in due date and in a way requested by the Tutor.
● The form of submission will be a soft copy posted on http://cms.greenwich.edu.vn/.
● Remember to convert the word file into PDF file before the submission on CMS.
Note:
● The individual Assignment must be your own work, and not copied by or from another student.
● If you use ideas, quotes or data (such as diagrams) from books, journals or other sources, you must reference
your sources, using the Harvard style.
● Make sure that you understand and follow the guidelines to avoid plagiarism. Failure to comply this
requirement will result in a failed assignment.
Unit Learning Outcomes:
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

Partial preview of the text

Download 1618 Assignment 2 (2021) and more Exercises Information Technology in PDF only on Docsity!

Assignment Brief 2 (RQF)

Higher National Certificate/Diploma in Computing

Student Name/ID Number: Luu Duc Manh / GCS Unit Number and Title: Unit 1 : Programming Academic Year: 2021 – 2022 Unit Assessor: Vu Thanh Hien Assignment Title: Application development with IDE Issue Date: 01 April 2021 Submission Date: Internal Verifier Name: Date: Submission Format: Format: ● The submission is in the form of an individual written report. This should be written in a concise, formal business style using single spacing and font size 12. You are required to make use of headings, paragraphs and subsections as appropriate, and all work must be supported with research and referenced using the Harvard referencing system. Please also provide a bibliography using the Harvard referencing system. Submission ● Students are compulsory to submit the assignment in due date and in a way requested by the Tutor. ● The form of submission will be a soft copy posted on http://cms.greenwich.edu.vn/. ● Remember to convert the word file into PDF file before the submission on CMS. Note: ● The individual Assignment must be your own work, and not copied by or from another student. ● If you use ideas, quotes or data (such as diagrams) from books, journals or other sources, you must reference your sources, using the Harvard style. ● Make sure that you understand and follow the guidelines to avoid plagiarism. Failure to comply this requirement will result in a failed assignment. Unit Learning Outcomes:

LO2 Explain the characteristics of procedural, object-oriented and event-driven programming, conduct an analysis of a suitable Integrated Development Environment (IDE) LO3 Implement basic algorithms in code using an IDE LO4 Determine the debugging process and explain the importance of a coding standard Assignment Brief and Guidance: Assignment scenario Scenario : You have applied for a post as a trainee with a software development company and have been invited for an interview. You have been passed the presentation to demonstrate your problem solving and basic programming skills. Now you are 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. Tasks You will discuss a suitable problem with your mentor and list the user requirements before designing, implementing (coding) and testing a solution. You will create a report that should include: ● Introduction to your program (list of requirements and screenshots of program) ● Explain some of programming paradigms. Evaluate why and how your program use these (or some of) paradigms. ● Explain the common features of an IDE should have and evidence of how the IDE was used to manage the development of your code. ● An evaluation of developing applications using an IDE versus developing an application without using an IDE. ● An explanation and evaluation of the debugging process in the IDE used and how it helped with development. ● An explanation and evaluation of coding standards used in your program and the benefits to organisations of using them. The working application produced must also be demonstrated together with the presentation.

Table of Contents

Task 1 – Introduction to your program (P3)

  • Present list of user requirements of your application
  • Demonstrate a brief explanation how your application could solve the problem

Task 2 – Explain programming paradigms (P2)

  • Explain procedural paradigms and its characteristics
  • Explain object-oriented (Class and Object) paradigms and its characteristics
  • Explain event-driven paradigms and its characteristics
  • Explain why and how your program use these (or some of) paradigms.

Task 3 – IDE features (P4 - M2 - M3 - M4)

  • Introduction about IDE
  • An explanation and evaluation of the debugging process in the IDE used and how it helped with development.
  • Evidences that you have used debugging during the implementation

Task 4 – Design and Implementation (P3 – P5)

  • Flowchart of the given scernario
  • Screenshot of source code and result image
  • Outline the coding standards you have used in your code

Task 5 – Evaluate (D2-D3-D4)

  • Evaluate the source code of an application which implements the programming paradigms, in terms of the code structure and characteristics.
  • Evaluate the use of an IDE for development of applications contrasted with not using an IDE.
  • Evaluate why a coding standard is necessary in a team as well as for the individual

ASSIGNMENT 2

Task 1 – Introduction to your program (P3)

I use Movie Ticket Booking System scenario to demonstrate on Visual Studio 2019 IDE Movie Ticket Booking System An online movie ticket booking system facilitates the purchasing of movie tickets to its customers. E ticketing systems allow customers to browse through movies currently playing and book seats, anywhere and anytime. a. User requirements: Now let focus about the user requirements:

  • Each cinema can have multiple halls and each hall can run one movie show at a time.
  • Each Movie will have multiple shows.
  • Customers should be able to search movies by their title, language, genre, release date, and city name.
  • The customer should be able to select a show at a particular cinema and book their tickets. b. Short explanation about my application: My application has two main objects are customers and admin Customer: can search movies by their title, language, genre, release date, and city name and select a show at a particular cinema and book their tickets. After booking ticket, they are allowed to change movie’s their title, language, genre, release date and city name or cancel booking Admin: Who can add movies update movie and remove movies
  • Modularity : Modularity is when two dissimilar systems have two different tasks at hand but are grouped together to conclude a larger task first. Every group of systems then would have its own tasks finished one after the other until all tasks are complete.
  • Parameter Passing: Parameter Passing is a mechanism used to pass parameters to functions, subroutines or procedures. Parameter Passing can be done through ‘pass by value’, ‘pass by reference’, ‘pass by result’, ‘pass by value-result’ and ‘pass by the name’. c. Advantages and disadvantages of procedural programming:

Advantages:

  • Procedural Programming is excellent for general-purpose programming
  • The coded simplicity along with ease of implementation of compilers and interpreters
  • A large variety of books and online course material available on tested algorithms, making it easier to learn along the way
  • The source code is portable, therefore, it can be used to target a different CPU as well
  • The code can be reused in different parts of the program, without the need to copy it
  • Through Procedural Programming technique, the memory requirement also slashes
  • The program flow can be tracked easily

Disadvantages:

  • The program code is harder to write when Procedural Programming is employed
  • The Procedural code is often not reusable, which may pose the need to recreate the code if is needed to use in another application
  • Difficult to relate with real-world objects
  • The importance is given to the operation rather than the data, which might pose issues in some data-sensitive cases
  • The data is exposed to the whole program, making it not so much security friendly
  1. Object-Oriented Programming (OOP) a. Definition

Object Oriented programming (OOP) is a programming paradigm that relies on the concept of classes and objects. It is used to structure a software program into simple, reusable pieces of code blueprints (usually called classes), which are used to create individual instances of objects. There are many object-oriented programming languages including JavaScript, C++, Java, and Python. b. Characteristics

  • Class and object Objects are the basic run-time entities in an object-oriented system. They may represent a person, a place, a bank account, a table of data or any item that the program must handle. The fundamental idea behind object oriented approach is to combine both data and

function into a single unit and these units are called objects.

base class represent the most general description of a set of traits. The derived

class inherits those general traits and adds properties that are specific to that class.

  • Encapsulation In object-oriented programming (OOP), encapsulation refers to the bundling of data with the methods that operate on that data, or the restricting of direct access to some of an object's components. Encapsulation is used to hide the values or state of a structured data object inside a class, preventing direct access to them by clients in a way that could expose hidden implementation details or violate state invariance maintained by the methods.
  • Polymorphism Polymorphism is the method in an object-oriented programming language that performs different things as per the object’s class, which calls it. With Polymorphism, a message is sent to multiple class objects, and every object responds appropriately according to the properties of the class.

c. Event-Driven Programming

  1. Definition In computer programming, 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 message passing from other programs or threads. Event- driven programming is the dominant paradigm used in graphical user interfaces and other applications (e.g., JavaScript web applications) that are centered on performing certain actions in response to user input. This is also true of programming for device drivers (e.g., P in USB device driver stacks).
  1. How I manage to use procedural, object-oriented in my application These two categories are thus not related strictly hierarchically, but in common usage they are mostly nested within one another. POP vulnerabilities arise the need for OOP. OOP was born to recover from the errors of POP by introducing the concept of objects and classes. It enhances data security and automatically initializes & deletes objects. OOP allows creating multiple instances of an object without any understanding. First, If we want to solve a complicated or a simple problem, we have to divide the problem into fuctions which are suitable enough for us to implement and testing.So in my application the first thing that I do is using procedural paradigm to divide my application into functions such as SearchByTitle, SearchByLanguage,….

Code Example: Function PrintInfo() Because the given scenario include various object so I divided my application into 3 classes: Program, MovieManagement and Cinema Because each class has its own objects with different fuctions.And I must use all 6 characteristics of object-oriented paradigm include: Class and object, Inheritance, Encapsulation, Abstraction, Polymorphism to solve the problem Code example:

2.IDE features Text editor Virtually every IDE will have a text editor designed to write and manipulate source code. Some tools may have visual components to drag and drop front-end components, but most have a simple interface with language-specific syntax highlighting. Visual studio’s Text editor

Debugger Debugging tools assist users in identifying and remedying errors within source code. They often simulate real-world scenarios to test functionality and performance. Programmers and software engineers can usually test the various segments of code and identify errors before the application is released. Visual studio’s Debugger Compiler Compilers are components that translate programming language into a form machines can process, such as binary code. The machine code is analyzed to ensure its accuracy. The compiler then parses and optimizes the code to optimize performance.