Introduction To Computing: Outline
Introduction To Computing: Outline
Outline
Programming: A Five Step Procedure Five Generations of Programming Languages Some High Level Languages Object-Oriented Programming Internet Programming
Programming
A five step process for creating that list of instructions
Programming: Step 1
Clarify the Programming Needs
Clarify objectives and users Clarify desired outputs Clarify desired inputs Clarify the desired processing Double check the feasibility of implementing the program Document the analysis
5
Programming: Step 2
Design the program
To design the solution, one first needs to create an algorithm Algorithm
Is a formula or set of steps for solving a particular problem To be an algorithm, a set of rules must be unambiguous and have a clear stopping point
Programming: Step 2
Sequence
Statement
Statement
Programming: Step 2
Selection
Programming: Step 2
Iteration
Programming: Step 3
Code the Program
Select the appropriate high-level programming language
A programming language is a set of rules that tells the computer what operations to do Examples: C, C++, Java, etc.
Programming: Step 4
Test the program
Program testing involves running various tests and then running real-world data to make sure the program works Two principles techniques for alpha testing: deskchecking and debug Desk-checking: proofread the code Debug
Detect, locate, and remove all errors in a computer program Syntax errors- cause by typographical errors and incorrect use of the programming language Logic errors- cause by incorrect use of control structures
Programming: Step 5
Document and Maintain the Program
Write user documentation Write operator documentation
Tells computer operators what to do when the software malfunctions
12
14
15
16
19
Adv - easy to learn, graphics abilities, appropriate for scientific use Div - limited input/output capabilities
Object-Oriented Programming
Objects are concepts of code that can be reused for similar applications It is a self-contained module. Methods are used to process and object. Encapsulation Inheritance Polymorphism C++ is a common object oriented language Visual programming - allows users to create simple program using a GUI instead of writing code
22
Internet Programming
HTML - Hypertext Markup language XML - extensible markup language VRML - Virtual Reality Markup Language - make 3D web environments Java - platform independent interpreted language similar to C++ Javascript - developed independently from Java, used in web browser to create dynamic websites ActiveX - Also for creating interactive web pages developed by Microsoft, features reusable components. Currently in competition with Java for the next step in Web technology.
23