










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!











PROGRAM TITLE: PROGRAMMING UNIT TITLE: PROGRAMMING ASSIGNMENT NUMBER: 1 ASSIGNMENT NAME:BOOK MANAGEMENT SYSTEM SUBMISSION DATE: ………………………………………. DATE RECEIVED: 7/12/ TUTORIAL LECTURER: NGUYỄN NGỌC TÂN WORD COUNT: 3179 STUDENT NAME: NGUYỄN TUẤN MINH STUDENT ID: BKC MOBILE NUMBER: 0985296959
Summative Feedback: Internal verification:
To start getting into the details we need to understand what is a programming model? Programming model also know as Programming Paradigm is a way of classifying programming languages based on their characteristics. Programming languages can be classified into many programming paradigms. Some common programming models: ‣ Imperative programming is a programming paradigm that uses statements to change the state of a program. ‣ Procedure-oriented programming executes groups of statements in procedures/functions. ‣ Object-oriented programming implements code that creates objects to abstract objects. ‣ Declarative programming in which the programmer declares the properties of the desired result, but does not compute it. ‣ Functional programming: The desired result is to be declared as the value sequence of the application function. ‣ Logical programming: based on mathematical logic in relationships and inferences. ‣ Mathematical programming where the desired result is the solution of optimization problems. And what will our exposure to different programming languages bring us? ‣ That is to give us more understanding of other languages, know how they work, and be able to apply many languages to solve problems, very simple to implement. ‣ But besides that, there are also some difficulties that make us confused, sometimes we do not know which language to use to solve it quickly, some languages are still quite difficult to learn as well as difficult to read programs, some language, the security is not high, parallel programming is not possible, … Now, let's dive deeper into popular programming paradigms like procedural programming, object-oriented programming, event-oriented programming, and more.
‣ Procedure-oriented programs focus on manipulation instead of data, which can cause problems in some data-sensitive cases ‣ Data is displayed for the entire program, making the data security not very good. Example: II. Object Oriented Programming (OOP)?
‣ Object-oriented programming (OOP) is a programming paradigm based on the concept of classes (classes) and objects (objects). It is used to organize a software program into simple, reusable source code blueprints (often called classes) that are used to create individual copies of objects. Since OOP is a programming paradigm, there are many object-oriented programming languages including: C++, C#, Java, and Python… ● Object:
● Encapsulation ‣ Encapsulation is simply understood that data and related functions/methods are "packed" into classes for easy management and use, allows hiding information and the internal processing properties of the object. Other objects cannot directly affect the data inside and change the state of the object, but must go through public methods provided by that object.This property helps to increase the security of the object and avoid unintentional data corruption. *** Example:**
Advantges Disadvantages
‣ Why need to use Polymorphism?
declare abstract class. an interface.
1. What is Event-Driven Programming? ‣ In computer programming, event-driven programming is a programming paradigm in which the flow of a program is determined by events such as user actions (clicks, key presses, etc.) ), sensor output, or messages from programs or streams. Event-driven programming is the dominant paradigm used in graphical user interfaces and other applications (e.g. JavaScript web applications) that focus on performing certain actions in response to input. user input. The same is true for programming for device drivers (e.g. P in the USB device driver stack).
‣ Serves the user with the quickest and most accurate responses and this usually translates into better user experience and business gains. Also, the whole focus of software development is on the actual people using the app and their actions, so it will produce better and more intuitive products for the end-users. ‣ It’s very intuitive, flexible and naturally well-suited to applications whose control flow are based, not on its structure, but rather on internal or external events. ‣ It can be practiced with any programming language.
‣ Since it offers the most value for GUI applications, some other use cases might not benefit from it. ‣ Some critics are also saying that event-driven programming is complex to master and not worth the trouble when your application is very simple and small. Example:
IV. The relationships between programming procedural, object-oriented and event-driven programming. ‣ Procedural paradigm is your looking at the process needed to solve a problem. I do A, then I do B, and then I do C. There’s a definite process and the flow of the data is highly predictable. ‣ Object oriented is looking at the actors and creating objects to represent those actors. For example, an emulator for a movie line queue. You’ve got people, the line, and a ticket booth. So, you build objects around those actors. ‣ Event driven, is used when you have spontaneous moments that need to be taken care of. You can add event handlers to both procedural and object oriented paradigms. So, as a stand alone, it’s not a complete paradigm. For instance your procedural report writer could have an event to handle out of paper. Or the object oriented program could have an event to handle when lightning hits a person standing line for the movie. ‣ Events are more a feature to add to other stuff.
VI. Critically evaluate the source code of an application which implements the programming paradigms, in terms of the code structure and characteristics. ‣ Computer programming languages permit us to give instructions to a computer in a language the computer understands. At a basic level, computers only understand binary language (1's and 0's), which makes no sense to humans. There are many programming languages in the computer world. ‣ In general, a computer program consists of the following components:
1. Program Structure The general type of a program, there is always a structure or format in which the programmer develop programs. A well-organized program uses suitable information structures and formats. 2. Variable Declaration A variable is used to store values at run time or time of execution. Some programming languages give flexibility to the programmer to avoid variable declaration, but a good programming language must have a proper variable declaration method. 3. Looping structures Looping in computer programming is used to repeat statements, under a given condition. There are many types of loops with minor difference in different computer programming languages. Loops will keep executing until the exit condition is met. 4. Control structures A control structure is a slab in computer programming that examines variables and chooses the execution direction in which to go, based on given parameters or conditions. 5. Sentence structure In computer programming, when a programmer writes a program they use programming notation in an expository. Thus, it is important that the notation has a sentence structure that can be easily expressed. VII. Analysis of some reviews of suitable IDEs ● What is IDE? ‣ An Integrated Development Environment (IDE for short) is an application that fully facilitates programming. ● Tools included in the IDE include: ‣ Code editor ‣ Compiler ‣ Debugger ‣ Build automation tools: ‣ Class Browser ‣ Object Browser ‣ Class Hierarchy Diagram ● **Some popular IDEs for java programming
‣ Built-in static code analysis ‣ Smart code five code completion and quick editing.
2. JDeveloper ● Features of JDeveloper: ‣ JDeveloper simplifies the development of Java-based applications by addressing each step of the application lifecycle. ‣ It mainly provides an integrated development framework with many features and some intuitive development tools. ‣ This JDeveloper has the ability to integrate with the Oracle Application Development Framework (Oracle ADF) to further simplify application development. 3. BlueJ ● BlueJ's top feature: ‣ Has a clutter-free interactive interface that is easy to use and test. ‣ Suitable for beginners to learn Java programming. ‣ Use boxes to represent classes. ‣ Multi-platform ‣ Easily check object values, call methods on objects, and pass objects as parameters.