Download Programming network essay and more Essays (university) 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 13 /11/2021 Date Received 1st submission Re-submission Date 22 /11/2021 Date Received 2nd submission Student Name Huynh Bao Trong Student ID GCC Class GCC0902 Assessor name Le Huynh Quoc Bao 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:
● 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. Case Studies You can choose one of following case studies to implement Hotel Management System: A Hotel Management System is a software built to handle all online hotel activities easily and safely. This System will give the hotel management power and flexibility to manage the entire system from a single online portal. The system allows the manager to keep track of all the available rooms in the system as well as to book rooms and generate bills.
- The system should support the booking of different room types like standard, deluxe, family suite, etc.
- Guests should be able to search the room inventory and book any available room.
- The system should be able to retrieve information, such as who booked a particular room, or what rooms were booked by a specific customer. Library Management System A Library Management System is a software built to handle the primary housekeeping functions of a library. Libraries rely on library management systems to manage asset collections as well as relationships with their members. Library management systems help libraries keep track of the books and their checkouts, as well as members’ subscriptions and profiles. Library management systems also involve maintaining the database for entering new books and recording books that have been borrowed with their respective due dates.
- Any library member should be able to search books by their title, author, subject category as well by the publication date.
- The system should be able to retrieve information like who took a particular book or what are the books checked-out by a specific library member.
- User can add books with its information such as: title, author, publication date, category etc and update it 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.
- 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. Airline Management System An Airline Management System is a managerial software which targets to control all operations of an airline. Airlines provide transport services for their passengers. They carry or hire aircraft for this purpose. All operations of an airline company are controlled by their airline management system. This system involves the scheduling of flights, air ticket reservations, flight cancellations, customer support, and staff management. Daily flights updates can also be retrieved by using the system.
- Customers should be able to search for flights for a given date and source/destination airport.
- Customers should be able to reserve a ticket for any scheduled flight. Customers can also build a multi-flight itinerary.
Learning Outcomes and Assessment Criteria (Assignment 2): Learning Outcome Pass Merit Distinction LO 2 P2 Give explanations of what procedural, object- oriented and event- driven paradigms are; their characteristics and the relationship between them. M2 Analyse the common features that a developer has access to in an IDE. D2 Critically evaluate the source code of an application which implements the programming paradigms, in terms of the code structure and characteristics. LO3 P3 Write a program that implements an algorithm using an IDE. M3 Use the IDE to manage the development process of the program. D3 Evaluate the use of an IDE for development of applications contrasted with not using an IDE. LO4 (^) P4 Explain the debugging process and explain the debugging facilities available in the IDE. P5 Outline the coding standard you have used in your code. M4 Evaluate how the debugging process can be used to help develop more secure, robust applications. D4 Critically evaluate why a coding standard is necessary in a team as well as for the individual.
Table of Contents
- Programming paradigms
- Procedural programming
- Object-oriented programming
- Event-driven programming
- The relationship
- The program
- Introduction to program..................................................................................................................
- The result of the program
- The debugging process and the debugging facility available in the IDE
- The debugging process and the debugging facility:
- Proof that you used debugging during implementation:
- The coding standard you have used in your
- Analysis of common features that developers have access to in the IDE
- Common features provided by an IDE
- Some examples of specific IDE
- Analysis of IDE features
- Use the IDE to manage program development
- The Benefits of Using IDEs
- Proof of how the IDE is used to manage the development of your code
- Evaluate how the debugging process
- References
- Encapsulation: Encapsulation is capturing data and keeping it safely and securely from outside interfaces.
- Inheritance: This is the process by which a class can be derived from a base class with all features of base class and some of its own. This increases code reusability.
- Polymorphism: This is the ability to exist in various forms. For example an operator can be overloaded so as to add two integer numbers and two floats.
- Abstraction: The ability to represent data at a very conceptual level without any details. (careerride, 2016) 3. Event-driven programming
- Introduction: Event-driven programming is a programming paradigm in which program execution is determined by new user events (mouse clicks, keypresses), sensor outputs, or message passing from other programs. Programmers use Event-driven programming in graphical user interfaces and other applications that focus on performing user actions in response to user input (user clicks). We can also define event-driven programming as a way of building a computer program, in which, in the essential function of the program, the main event loop of the application is explicitly highlighted in the code, the body of which consists of two parts: fetching the event and event handling. In an event-driven application, the main loop listens for events and triggers a callback function when one of those events is detected. (Kolesnikova, 2021)
- Characteristics:
- Service-Oriented: Service-focused is a key feature in event-driven programming used to create programs created for services, and it does not slow down the computer. The service-oriented only take in little of the computer control vitality, and usually, services run in the backdrop of OS.
- Time-Driven: In motivated event programming, time influenced is a paradigm. From the code that runs on a period trigger, time motivated can be considered a specific code that works in a particular time, which could be once one hour, once a week, or once a month. This means from the pre-set to do the activity. For example, house windows
revise is the exemplary case of time motivated, which individual can establish when to revise or when to check and download the revise.
- Trigger Functions: Trigger functions in event-driven coding are functions that decide on what code to perform whenever there is a specific event occurs. Programmers use these functions to select which event handler to use for the function when you can find specific event occurred.
- Events: Events include mouse, computer keyboard, and user interface, which events have to be triggered in this program. This means the user has to interact with an object in this program, for example, click a button by a mouse, use the computer keyboard to choose a button, etc.
- The Simplicity of Programming and Ease of Development: Event-driven programming is simple and much more straightforward to program than another kind of programming as it's very aesthetic. For example, you can place a button by selecting it and place it onto a form and write a code for this. Event-driven development is also easy for the user to place a pre-written code script into an existing application. It allows the user to pause the code while running. Which makes expanding using event-driven programming is easy. (Kolesnikova, 2021) 4. The relationship between procedural programming, object-oriented programming and event-driven programming All programming languages used in OOP share several features. The first feature is that they utilize objects and classes in code development. An object is a unit of information that contains procedures referred to as methods, as well as data fields referred as attributes (Schach, 2006). Classes define the methods and properties of an object. The data fields (attributes) hold the properties of an object, while the methods of an object are the procedures that force the object to carry out a specific function. The second feature common in OOP languages is encapsulation. Encapsulation involves packing together the data that describes the object together with the instructions that outline data manipulation (methods) (Farell, 2011). The third feature inherent in OOP is inheritance. Inheritance denotes the grouping together of classes in a hierarchical manner according to their similarity in functions. Inheritance means that
Procedural Programming on the other hand only utilizes in-built instruction and cannot accept external instructions once executed. The user needs to specify each instruction required to execute the program. (IvayPanda, 2020)
2. The program
1. Introduction to program The program I wrote is intended to assist service warehouse owners in storing goods information. The program uses the manager graphics to make the program more efficient to use. The program also provides almost complete functions and cargo information. In addition, the program will also handle basic errors and exceptions that users may encounter while using the program, which makes my program reliable and the best choice for users. use. First of all, the user needs to enter the necessary information: Goods ID,Goods' name, Quantity, Unit price, Bill. The program will provide a Total button to calculate the total amount of the goods and display it on the screen. Besides, it also provides some functions: Add, Update, Delete, Sort, Search, Total. - Add button: Has the function of storing goods information into the datagrid and displaying it on the screen. - Update button: There is a function that allows the user to update the information of the goods when the user has entered the information into the program if there is an error and displays it on the screen again. - Delete button: There is a function that allows users to delete goods information when the user has entered the program. - Sort button: Has a function that allows users to sort goods names alphabetically (a - > z) allowing users to easily control goods information. - Search button: There is a function that allows users to search for entered product information. - Total buttton: The button has the function of calculating the total amount of goods in stock when the user has entered the Quantity and Unit price. 2. The result of the program - Screenshots of the program:
When the program launches, this is the first interface of program: The user needs to fill in the goods information in each corresponding box, including Goods ID, Goods import date, Goods' name, Quantity, Unit price.
When the user uses the Add function when entering the missing Goods ID:
When the user uses the Add function when entering the missing Goods' name:
When the user uses the Add function when entering the missing Unit price:
After entering all the goods information and calculating the bill with the Total button, the user will use the Add function to display the goods information: