Presentation is loading. Please wait.

Presentation is loading. Please wait.

Your Interactive Guide to the Digital World Discovering Computers 2012.

Similar presentations


Presentation on theme: "Your Interactive Guide to the Digital World Discovering Computers 2012."— Presentation transcript:

1 Your Interactive Guide to the Digital World Discovering Computers 2012

2 Computer Programs and Programming Languages A computer program is a series of instructions that directs a computer to perform tasks – Created by a programmer using a programming language Discovering Computers 2012: Chapter 13 2 Pages 664 – 665 Figure 13-1

3 Low-Level Languages Machine language is the first generation of programming languages Only language the computer directly recognizes Discovering Computers 2012: Chapter 13 3 Page 665 Figure 13-2

4 Low-Level Languages Assembly language is the second generation of programming languages Programmer writes instructions using symbolic instruction codes A source program contains the code to be converted to machine language Discovering Computers 2012: Chapter 13 4 Pages 665 – 666 Figure 13-3

5 Procedural Languages In a procedural language, the programmer writes instructions that tell the computer what to accomplish and how to do it – Third-generation language (3GL) Discovering Computers 2012: Chapter 13 5 Pages 666 - 667 A compiler translates an entire program before executing it An interpreter converts and executes one code statement at a time

6 Procedural Languages Discovering Computers 2012: Chapter 13 6 Page 667 Figures 13-4 – 13-5

7 Object-Oriented Programming Languages and Program Development Tools An object-oriented programming (OOP) language allows programmers the ability to reuse and modify existing objects Other advantages include: Discovering Computers 2012: Chapter 13 7 Page 669 Objects can be reused Programmers create applications faster Work well in a RAD environment Most program development tools are IDEs

8 Object-Oriented Programming Languages and Program Development Tools Java is an object-oriented programming language developed by Sun Microsystems The Just-in-time (JIT) compiler converts the bytecode into machine-dependent code Discovering Computers 2012: Chapter 13 8 Page 670 Figure 13-8

9 Object-Oriented Programming Languages and Program Development Tools The Microsoft.NET Framework allows almost any type of program to run on the Internet or an internal business network, as well as computers and mobile devices Discovering Computers 2012: Chapter 13 9 Page 670

10 Object-Oriented Programming Languages and Program Development Tools C++ is an extension of the C programming language C# is based on C++ and was developed by Microsoft F# combines the benefits of an object- oriented language with those of a functional language Discovering Computers 2012: Chapter 13 10 Page 671 Figure 13-9

11 Object-Oriented Programming Languages and Program Development Tools Visual Studio is Microsoft’s suite of program development tools Visual Basic is based on the BASIC programming language Visual C++ is based on C++ Visual C# combines the programming elements of C++ with an easier, rapid-development environment Discovering Computers 2012: Chapter 13 11 Pages 671 - 673

12 Object-Oriented Programming Languages and Program Development Tools A visual programming language is a language that uses a visual or graphical interface for creating all source code Discovering Computers 2012: Chapter 13 12 Page 673

13 Other Programming Languages and Development Tools A 4GL (fourth-generation language) is a nonprocedural language that enables users and programmers to access data in a database – One popular 4GL is SQL Discovering Computers 2012: Chapter 13 13 Page 674 Figure 13-13

14 Other Programming Languages and Development Tools An application generator is a program that creates source code or machine code from a specification of the required functionality – Often bundled as part of a DBMS ( Database Management System ) Discovering Computers 2012: Chapter 13 14 Page 676 Figure 13-15

15 Other Programming Languages and Development Tools A macro is a series of statements that instructs an application how to complete a task You usually create the macro in one of two ways: – Record the macro with a macro recorder – Write the macro Discovering Computers 2012: Chapter 13 15 Page 676

16 Program Development Program development consists of a series of steps programmers use to build computer programs Discovering Computers 2012: Chapter 13 16 Page 686 Figure 13-23

17 Step 0 System investigation Before any system planning is done, a feasibility study should be conducted to determine if creating a new or improved system is a viable solution. This will help to determine the costs, benefits, resource requirements, and specific user needs required for completion. Discovering Computers 2012: Chapter 13 17

18 Step 0 Following are different components of the feasibility study: Operational feasibility Economic feasibility Technical feasibility Human factors feasibility Legal/Political feasibility Discovering Computers 2012: Chapter 13 18

19 Step 1 Analyze Requirement The Two Types of Requirements: Functional Requirements In this category, developers list the functions that the software should be able to perform. These are practically the functions that the users will be looking for in the software, e.g. “Calculate from different resources and print them”. Non-Functional Requirements Non-functional type of requirement does not require actions but they are basically intrinsic in software. Without this, the software will never function or would have deficiency in its output, e.g. “the type of interface” Discovering Computers 2012: Chapter 13 19

20 Step 2 Design Solution Design: inputs and outputs.eg screens and report design; data eg data flow diagrams, data dictionaries, entity relationship diagrams; process descriptors eg decision tables, flow charts, structured English. Discovering Computers 2012: Chapter 13 20

21 Step 3 – Validate Design Check for logic errors using test data Discovering Computers 2012: Chapter 13 21 Pages 693 - 694 Develop various sets of test data Determine the expected result Step through the algorithm Compare the results Repeat steps for each set of test data

22 Step 4 – Implement Design Implementation of the design includes using a program development tool that assists the programmer by: – Generating or providing some or all code – Writing the code that translates the design into a computer program – Creating the user interface Extreme programming is a strategy where programmers immediately begin coding and testing solutions as soon as requirements are defined Discovering Computers 2012: Chapter 13 22 Pages 694 - 695

23 Step 5 – Test Solution The goal of program testing is to ensure the program runs correctly and is error free Errors include syntax errors and logic errors Debugging the program involves removing the bugs A beta is a program that has most or all of its features and functionality implemented but still is not the final program Discovering Computers 2012: Chapter 13 23 Pages 695 - 696

24 Step 6 – Document Solution In documenting the solution, the programmer performs two activities: Discovering Computers 2012: Chapter 13 24 Page 696 Review the program code Review all the documentation


Download ppt "Your Interactive Guide to the Digital World Discovering Computers 2012."

Similar presentations


Ads by Google