1 / 19

Identify object-oriented programming languages

Identify object-oriented programming languages. XML. Visual Basic.NET 2003. C++. Perl. Java. Flash. HTML. For Y=1 to 300 X=X+3 Next Y. if Count = 250 then Quit.

feleti
Download Presentation

Identify object-oriented programming languages

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Identify object-oriented programming languages XML Visual Basic.NET 2003 C++ Perl Java Flash HTML

  2. For Y=1 to 300 X=X+3 Next Y if Count = 250 then Quit A computer program is a series of instructionsthat direct a computer to perform specific tasks.A programming language is a set of words, symbols, and codes that enable a programmer to instruct the computer to perform a set of tasks. Programming languages are either low-level or high-level. Computer Programs Input "What is your first name";Name$

  3. Low-level Programming Languages • Machine Language - a first generation computer language • Assembly Language – a second generation computer language

  4. Machine language uses a series of binary digits (1s and 0s), or combinations of numbers and letters that represent binary digits, and is the only language a computer directly understands. Machine Language (First Generation Language)

  5. Assembly Language (Second Generation Language) Assembly language uses symbolic instruction codes. Symbolic instruction codes are meaningful abbreviations & codes in which “A” might stand for addition, “C” might stand for compare, or “M” might stand for multiply. Assembly languages also use symbolic addresses to identify storage locations. For example, RATE might refer to a storage location that contains the pay rate being used in the program. This language is slightly more user friendly than machine language.

  6. High-Level Languages (Procedural Programming Languages) With a procedural language, or third-generation language (3GL), programmers write instructions using code that is very similar to the English language, which simplifies the program development process. For example, ADD stands for addition and PRINT means to print. Arithmetic operations are represented by + for addition, - for subtraction, / for division, and * for multiplication.

  7. Popular Standard procedural languages are:BASIC—a simple, interactive problem-solving languageCOBOL—a language designed for business applicationsC—a powerful language that requires professional programming skills High-Level Languages (Procedural Programming Languages)

  8. Below is an example of code written in BASIC: High-Level Languages (BASIC) Sample 2: Modern Structured BASIC (e.g. QBASIC) Sample 1: Unstructured original BASIC (Applesoft BASIC)

  9. An example of code written in COBOL.COBOL stands for Common Business Oriented Language High-Level Languages (COBOL)

  10. Below is an example of code written in “C”: High-Level Languages (C)

  11. A tcompiler or an interpreter ranslates the 3GL source program into a machine language object code that a computer can execute.An interpreted program runs each line of code individually and translates it into machine language while it is executing the program.A compiled program is run through a compilation process that converts the entire program from the source code into machine code. Compiled programs run much faster than interpreted programs and are usually identified by the filename extension of .exe. Compiling or Interpreting Computer Code

  12. Visual programming languages are sometimes called fifth-generation languages (5GL) and provide a visual or graphical interface, called a visual programming environment (VPE) for creating source code. Visual Programming

  13. Visual programming languages are often used in a rapid application development (RAD) environment. RAD allows programmers to implement a program in segments and use pre-built components which simplify program development. Visual Programming Rapid Application Development (RAD) An example of RAD would be the icons shown on the above desktop and folder. The icon of the diskdrive representing the computer drives is used in several places – but the same routine is used to create all of them.

  14. Visual Programming • Visual programming languages include: • Visual Basic .NET 2003 • Visual C++ .NET 2003 • Visual C# .NET 2003 • Delphi • PowerBuilder This is an example of a Visual Basic 6.0 environment used to create a program in Visual Basic.

  15. Characteristics of Object-Oriented Programming Languages Programmers use an object-oriented programming (OOP) language to implement object-oriented design. An object is an item that can contain both data and the procedures that read or manipulate the data. A major benefit of OOP is its ability to reuse and modify existing objects, which allows programmers to create applications faster. OOP languages include C++, which is an object-oriented extension of the C programming language, and Java, which is similar to C++ but uses a just-in-time (JIT) compiler to convert its source code into machine code.

  16. Web Page Written in HTML On the right is the HTML code that produced the webpage shown on the left. Examine the code and see if you can determine what some of it does.See if you can explain what the code in red does. <html> <Head> <center> <Title>DogieO's Homepage</title> <br> </head> <body bgcolor="#FFFFFF" text="#OOOOOO"> <h1>DoggieO's Home Page</h1> <br> <image src="doggieo.gif"> <br> Hello, my name is DoggieO. I enjoy all aspects of life, especially chasing other animals.<br> I am a freshman at Cannine High School where I am on the Fetch Team.<br> Below are my favoriate links.<br> <br> <a href="http://www.Petsmart.com">Petsmart where I get my food and toys.</a><br> <a href="http://www.google.com">Google Search Engine where I get all my information.</a><br> <br></center> </body> </html>

  17. Web Page Written in Java On the right is the Java code that makes the buttons on the left page change color. When the user “mouse-overs” the button, it switches the graphic which represents the button so that the button appears to change colors or “light up” showing it is active. Below are the two buttons that switch in and out of the page as a result of the Java script code below. <title>Pop Activities Page</title> script LANGUAGE="JavaScript"><!-- if (navigator.userAgent.indexOf("Mozilla") != -1) { if (parseInt(navigator.appVersion) > 2) BrowserOK = 1; else BrowserOK = 0; } function highlight(img) { if (BrowserOK == 0) return; document[img].src = img + "G.jpg"; } function unhighlight(img) { if (BrowserOK == 0) return; document[img].src = img + "S.JPG"; } // --> </script>

  18. As you can see, we have many languages. Below are just a few. Languages are improved upon or new languages are developed as we find new applications and uses for computers. XML Visual Basic.NET 2003 C++ Perl Java Flash HTML

  19. Although we have many languages, they all share common elements; so it is easy to learn and program in other languages once you are exposed to writing code for one program language. if Count = 250 then Quit XML For Y=1 to 300 X=X+3 Next Y Visual Basic.NET 2003 C++ Perl Flash Java HTML Input "What is your first name";Name$

More Related