Explain the 3 Paradigms
Event driven Programming
In Event Driven Programming stuff is executed based on triggers that occur when events happen. The program is determined by user actions e.g mouse clicks, keyboard strokes and other peripherals in which users interact with, the program is coded to take in these actions. An example of Event driven programming happening would be the user inputting a name into a dialogue box using a keyboard.
This line of code will bring up a dialog box in which the user can type in. Then once the program is running you will have this
i have inputted my name into the box using a keyboard. When the user presses ok the program will look for the first letter of the name using the charAt function and you will receive back a quote saying "Hi, I don't to know who you are but i know your name starts with J". This is event driven because you are inputting a string and the program is feeding logical information back to you.
Procedural Programming
The procedural programming language is still used today, the program relies on a programmer coding the solution to the problem as an algorithm or to make it easier to understand. any given piece of code can be called at anytime during the programs execution. an example of Procedural would be this piece of code i did in which it has logical steps to work out how many eggs are shipped in day.
The variables at the top which say int add up the eggs and then a simple System.out.println shows the answer to the complex equation.
Object Orientated Programming
Object Orientated Programming represents objects that have attributes that describe that object. Objects are usually instances or classes, they are used to interact with one another to design applications and computer programs. This means for the variables you make you can assign data to that variable and use it anywhere in your code for example.
I made some variables, I will now assign some attributes to these
I have set some data for the variables along with some other code which you cant see but in the end we create a new object called someguy, when we do this the someguy will have information tied to him because we have data in the variables




