



























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




























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 Phạm Hoàng Gia Khang Student ID GCS
Class GCS1002^ Assessor name Nguyễn Tuấn Đă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
Grading grid
P2 P3 P4 P5 M2 M3 M4 D2 D3 D
Summative Feedback: Resubmission Feedback:
Grade: Assessor Signature: Date: Lecturer Signature:
In Assignment 1, I presented the general system about the book management system. The system includes types, such as adding books, displaying the data on the screen, sorting, and searching book users want to find.
The Internet nowadays is very developed, and the book management system also, instead of entering the information on the paper, the users can enter it through the computer. This way is the best decision because it’s fast and effective.
Well, to the system management operations, it needs some following requirements:
There are functions: Add, display, sort, and search. The program needs to run on Console App(C#) in Microsoft Visual Studio 2022. The system must have a Main Menu that users can operate types. Check if the users input the data is missing or not.
Modularity : Modularity is when two dissimilar systems have two different tasks at hand but are grouped to conclude a bigger task first. Every group of systems then would have its tasks finished one after the opposite until all tasks are complete. Parameter Passing: Parameter Passing may be a mechanism wont to pass parameters to functions, subroutines, or procedures,s. Parameter Passing are often done through ‘pass by value’, ‘pass by reference’, ‘pass by result’, ‘pass by value results and ‘pass by the name’.
Procedural Programming comes with its own set of pros and cons, a number of which are mentioned below.
Advantages
Procedural Programming is superb for general-purpose programming. The coded simplicity along side simple implementation of compilers and interpreters An outsized sort of books and online course material available on tested algorithms, making it easier to find out along the way The ASCII text file is portable, therefore, it are often wont to target a special CPU also The code are often reused in several parts of the program, without the necessity to repeat it Through Procedural Programming technique, the memory requirement also slashes The program flow are often tracked easily
Disadvantages
The program code is harder to write down when Procedural Programming is used The Procedural code is usually not reusable, which can pose the necessity to recreate the code if is required to use in another application Difficult to relate with real-world objects The importance is given to the operation instead of the info , which could pose issues in some data-sensitive cases The info is exposed to the entire program, making it not such a lot security friendly
OOP is a programming style that understands life as a collection of objects that work together to solve a specific problem. The most important aspect of OOP is encapsulation, which is the concept that each object that holds the program is self-sustaining, meaning that all of the components that make up the object are contained inside it. Now that each module in this paradigm is self-sustaining, items from one program may be taken and utilized to address another problem with little or no changes.
OOP is easy to maintain because of its modularity and encapsulation. OOP simulates the real world, making it simpler to comprehend. Because objects are complete in and of themselves, they may be reused in other applications.
Object-Oriented applications are often sluggish and consume a lot of memory. Over-generalization Programs designed using this paradigm may take longer to develop.
Figure 1 : The characteristics of OOP (source: Definition of object-oriented programming | PCMag)
Software that is event-driven response primarily to user events or other comparable input. The notion of event-driven programming has inspired the rise of event handlers and other resources in application development and other types of programming.
Event-driven software is also known as an event-driven application.
In a typical event-driven application, there is a main loop that listens for events and then calls a callback function when one is detected. Instead of a continually running main loop, hardware interrupts can be used in embedded systems to accomplish the same result. Event- driven applications may be developed in any programming language, however, languages with high-level abstractions, such as to await and closures, make the work simpler.
My application is designed in Object-Oriented Programming.
Figure 2: The comparison between Procedural Programming and Object-Oriented Programming(OOP). (source: What is Procedural Programming? [Definition] - Key Features (hackr.io))
In my opinion, as I have outlined the benefits of OOP above, and the picture compares with Procedural Programming then I think it will suit my system program.
Integrated development environments (IDE) are applicatiofacilitateilitates the event of other applications. Designed to encompass all programming tasks in one application, one among the most benefits of an IDE is that they provide a central interface with all the tools a developer needs, including:
Code editor : Designed for writing and editing ASCII tefileile , these editors are distinguished from text editors because work to either simplify or enhance the
Visual Studio supports 36 distinct programing language s and allows the code editor and debugger to support (to varying degrees) nearly any programming language, provided a language-specific service exists. Built-in languages include C,[9] C++, C++/CLI, Visual Basic .NET, C#, F#,[10] JavaScript, TypeScript, XML, XSLT, HTML, and CSS. Support for other languages like Python,[11] Ruby, Node.js, and M among others is out there via plug-ins. Java (and J#) were supported within the past.
Figure 3 : Visual Studio 2017
(source: Download Microsoft Visual Studio 2017 bản chuẩn | Tinh tế (tinhte.vn))
Basic features of popular IDEs:
Text editor: Almost every IDE will have a text editor designed for writing and manipulating source code. Some tools may have visual elements for dragging and dropping user interface elements, but most have simple interfaces with language-specific syntax highlighting such as Turbo Pascal, Notepad++, etc. Debugger: Debugging tools help users identify and fix errors in the source code. They often simulate real-world scenarios to test functionality and performance. Programmers and
software engineers can often test different segments of code and identify bugs before an application is released. Compiler: Compilers are components that translate a programming language into a language that a computer can process, such as binary code. Machine code is analyzed to ensure its accuracy. The compiler then parses and optimizes the code to optimize performance. Code completion: Code complete features assist programmers by intelligently identifying and inserting common code elements. These features help developers save coding time and reduce the chance of syntax errors. Support programming language: IDEs are usually specific to one programming language, although some also offer multilingual support such as the Sublime Text IDE. As such, the first step is to find out what language you are using and choose an appropriate IDE. Multiple Plugins Support: With an integrated development environment, it is not surprising that integration needs to be considered when choosing IDEs. Your IDE is your development portal, so being able to combine all your other development tools improves development workflow and productivity.
“Debugging” explanation : Debugging is the process of detecting and removing of eting and potential errors (also called as ‘bugsduring a software code which will cause it to behave unexpectedly or crash. to stop incorrect operation of a software or system, debugging is employed to seek out and resolve bugs or defects. When various subsystems or modules are tightly coupled, debugging becomes harder as any change in one module may cause more bugs to seem in another. Sometimes it takes longer to debug a program than to code it.
Figure 4: Main Menu System
Figure 5: Add book
Figure 7: Main Menu Hub
After finishing the system, the main menu hub will appear.
The main menu hub in the program will have a do-while loop and switch-case. Its mission is to let users choose which options they want, with options from 1 to 6, in case users don’t insert the given numbers, the system will return to the main menu.
The main menu will have the following types of options: