




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
asm2 1618 effective for everyone
Typology: Assignments
1 / 28
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 Student ID Class Assessor name 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
Grade: Assessor Signature: Date: Lecturer Signature:
The objective of this report is to clarify the definition and the properties of procedural programming, object-oriented programming, and event-driven programming, giving a few fundamental provisions of an Integrated Development Environment (IDE). Additionally, referencing the most common way of utilizing debug and coding standard, how it helped during the development. Likewise, this report will present a program utilizing an IDE: Bookshop System.
Procedural programming may likewise allude to a programming paradigm, which is gotten from organized programming dependent on the procedural call concept. Procedures, otherwise called routines, sub routines, methods, or functions, involve a progression of computational strides to be performed. During the execution of a program, some given method can be named at any stage, referring by different function or by itself (Bhatia, 2021). Figure 1 : Procedural programming.
Polymorphism: is a Greek word that signifies “one name for many forms.” All in all, one object has many forms or has one name with various components. “Poly” connotes many structures and “morph” signifies forms. Polymorphism permits a class the option to have a few executions with a similar name. After encapsulation and inheritance, it is one of the core standards of OOP. Abstraction: is one of the core standards for the languages of OOP. The fundamental goal is to manage disarray by concealing superfluous client data.
Event-driven programming is the paradigm used for graphical user interfaces and different applications. In an event-driven application, there is for the most part a fundamental circle that listens to occasions and afterward triggers a callback function when one of those occasions is identified. The equivalent can be accomplished in installed frameworks utilizing hardware interrupts rather than a constant main loop. Event-driven programs can be written in any programming language, in spite of the fact that work is simpler in high-level languages like pausing and shutting (UKEssays, 2018). Figure 3 : Event driven programming.
Examples about properties (UKEssays, 2018):
According to (Parsons and Oja, 2012), I realized that there is a connection between Procedural programming, Object-oriented programming, and Event-driven programming. Procedural programming implies you define a program as a progression of steps, just as its sub- program. Conversely, revelatory projects endeavor to portray the result regardless to the means taken to register it but instead some depiction or signification of the desired result. Object-oriented programming is an approach to coordinate code around the standards of encapsulation, inheritance, replacement, interface programming, etc. Object-oriented programs are generally procedural in nature. Event-driven programming is about coding processes for occasion taking care of and having the underlying system give the center event loop. Along these lines, you can save the difficulty of composing your own event loop and advantage from various libraries that as of now work with the event loop provide to the system. Event-driven programs very often compose, yet not continually, utilizing object-oriented style.
I have applied for a post as a trainee with a software development organization and have been invited for an interview. I have been passed the demonstration to exhibit my critical thinking and essential programming abilities. Presently I am given a more test errand to make a completely working, secure application that has been created utilizing an IDE and clings to coding guidelines for a detailed business issue.
Figure 5 : Main.
Beginning of the program, we will need to login to the program. If you enter correct user name and password, you will go to the main program. If not, the program will close. Here are the codes for login form. The first function is the button login click event, the second is exit button click event. If you click to Exit button, the program will close. If you click to Login button, program will check the username and password you entered. If the username and password you entered are correct, the program will call up a new Main form named “fo”. If false, the program will terminate. Figure 6 : Login form. Figure 7 : Login and Exit button.
Here are the 4 buttons to choose items from lstItemlist. Item you chose from lstItemlist will be added to lstSelected and removed from lstItemlist. Figure 9 : Select and Remove buttons
When the Main form is shown, items will be add to lstItemlist. If you click Exit button, program will end. If you click Reset button, all text from txtName, txtOrder, and txtTotal will be deleted; check box chkCash and chkCreditcard’s check state will be change to unchecked; all items from lstSelected will be removed and added to lstItemlist. Figure 10 : Exit, Reset buttons, Form load.
I run the program then I entered name of customer, choose items form left list box and payment method below. Items chosen was shown in right list box. Then I press Add button, the order information was shown in below text box and total price was shown in total textbox.
The Integrated Development Environment (IDE) is a software environment that furnishes software engineers with broad programming improvement facilities. IDEs increment developer productivity by consolidating normal activities of composing programming into a solitary application: editing source code, building executables, and debugging (Walker, 2018). Example of the IDEs: .NET. Figure 12 : Result.
According to Walker (2018), there are several common features of IDE:
Here are several IDE features I used in my program: Smart code editing: It help me complete command I’m entering and show what properties is go with variables, what method is gone with object so I can save my time and effort. Figure 13 : Smart code editing.
Debugging is the method involved with discovering blunders during application execution. It doesn’t mean syntax errors, with which the application can’t be compiled, yet on logical errors. Debugging is utilized to discover and fix program errors or flaws. Once in a while troubleshooting a program takes additional time than coding it. At the point when various subsystems or modules are firmly connected together, bugs can be harder to track down (Stojanovic, 2018).
According to Jana (2010), here are the steps of debugging process: Breakpoints (a red circle) are areas where the program will stop and afterward the software engineers can watch variables changes through each command line, in this way distinguishing the area of error lines of code. The easiest way to make a breakpoint is by tapping on the start of the code line. To drop a breakpoint simply click again on the breakpoint. You can likewise make/drop breakpoints utilizing the F9 key, as well. Run the program: Thus, a program will take a gander the code in its fundamental function. There are especially “straight” sections, there are “branching” fragments (if/switch), there are “loops” segments (for/while/…), there are more modest sections (functions). To fix the error of the program, it is important to discover its “tangles”, that is figuring out where mistakes are probably going to be produced by the code. Watch windows: In the debug process, after the program stops at a breakpoint, we need to genuinely take a look at the difference in upsides of variables, functions, and so forth through each line of code to see error in the algorithm. Watch window is an assortment of tools that assist software developer with monitoring the value of the current variable. These windows can be found in the menu Debug->Windows (just show up while debugging is in progress). Data tip: At the point when you move the mouse pointer anyplace inside the current {} (scope) to a variable name, the value of the variable will show up on the screen. In the interim, for simple survey, you can “pin” that variable on the screen, or add it to Watch window, duplicate the value, change the variable’s value, … Locals: The locals window will consequently show all variables related with the current line of code. Variables displayed here are changed by each line of code. The color of variables further assists us with understanding those that have quite recently changed the value. Autos: As with locals, the Autos window shows the variable are at this point no needed and eliminates them from the Autos window.
Watch: Visual Studio can’t distinguish all which a developer requires. Sometimes, a particular value should be followed, for example, the tenth component in a number exhibit or the fifth person of the “Studio Tutorial” string, and so on we should utilize this to the Watch window. It permits software engineers to enter explicit variable names, functions, and so forth in the current degree. The value of the variable and function will show close to the name of the variable. Debug the program: you need to make the fundamental breakpoints to discover and fix errors in the program prior to troubleshooting. To begin debugging a program, go to the menu Debug-> Start Debugging or press F5 on the console. The program will be worked by Visual Studio. The Debug window will show up after the form is finished and there is no aggregate error. In case there are no orders waiting for data section will stop the screen, the program will stop at the first breakpoint. A Debug toolbar will show up. There are significant instrument fastens as follows (from left to right is step into, step over, step out):