Presentation is loading. Please wait.

Presentation is loading. Please wait.

Software Development CS 1 Rick Graziani Spring 2007.

Similar presentations


Presentation on theme: "Software Development CS 1 Rick Graziani Spring 2007."— Presentation transcript:

1 Software Development CS 1 Rick Graziani Spring 2007

2 Rick Graziani graziani@cabrillo.edu2 Definitions Software or Program Instructions that tell the computer what to do Programmer Someone who writes computer programs

3 Rick Graziani graziani@cabrillo.edu3 Instruction Set A vocabulary (list) of instructions which can be executed by the CPU The only instructions the CPU can run or execute Example of a CPU’s Instruction Set CPU Instruction Set

4 Rick Graziani graziani@cabrillo.edu4 First Generation Languages (Machine Language) Programming computers using the CPU’s instruction set Also known as Machine Language Machine Code File A software file which contains the instructions from the CPU’s instruction set.

5 Rick Graziani graziani@cabrillo.edu5 Advantages of First Gen. Software programs execute (run) relatively very quickly Software programs are relatively small in size (Insignificant advantages today) Disadvantages of First Gen. Difficult to write, very detailed and takes a long time Difficult to read Difficult to debug debug = the process to find mistakes in a software program First Generation Languages (Machine Language)

6 Rick Graziani graziani@cabrillo.edu6 Second Generation Languages (Assembly Language) Assembly Language = The English-like instructions which are equivalent to the CPU’s instruction set Source Code= The actual instructions written by a programmer Compiler = Software which translates source code instructions of a particular language into machine code

7 Rick Graziani graziani@cabrillo.edu7 Question: Which of these two files (source code file or machine code file) will the user need to run this software program? Advantages of Second Gen. Easier to read than first gen. Easier to write than first gen. Easier to debug than first gen. Disadvantages of Second Gen. Still very difficult to write programs Second Generation Languages (Assembly Language)

8 Rick Graziani graziani@cabrillo.edu8 Using a compiler

9 Rick Graziani graziani@cabrillo.edu9 Third Generation Languages (High level languages) Languages which are somewhere between machine language and the human language. FORTRAN (Formula Translation) - 1950's Language to allow scientists and engineers to program computers. COBOL (Common Business Oriented Language) - 1960 Language primarily designed for US government and defense contractors to program business applications on the computer. Grace Hopper was one of the developers of COBOL. BASIC (Beginner's All-purpose Symbolic Code) - 1960's Alternative language to FORTRAN for beginning programming students.

10 Rick Graziani graziani@cabrillo.edu10 Pascal (named after Blaise Pascal, 17th century French mathematician) - 1970's Language to teach proper structured programming. Structured programming = Programming technique used to make programming more productive and easier to write. Stresses simplistic, modular programs. ADA (named after Ada Lovelace (programmed the 19th century 'analytical engine') - late 1970's Language developed to replace COBOL. Third Generation Languages (High level languages)

11 Rick Graziani graziani@cabrillo.edu11 C (successor to BCPL or "B") - 1970's Popular programming language on computers from microcomputers to super computers. Faster and more efficient language. Very powerful language. Source code example of a C Program (Displays Hello World! on the screen.) #include main() { printf("Hello World!"); } C++ (pronounced "C plus plus") - 1980's Object oriented language which is compatible with C. Third Generation Languages (High level languages)

12 Rick Graziani graziani@cabrillo.edu12 Advantages Easier to read, write and debug Faster creation of programs Disadvantages Still not a tool for the average user to create software programs Requires very good knowledge of programming and of the language Third Generation Languages (High level languages)

13 Rick Graziani graziani@cabrillo.edu13 Advantages Easier to read, write and debug Faster creation of programs Disadvantages Still not a tool for the average user to create software programs Requires very good knowledge of programming and of the language Third Generation Languages (High level languages)

14 Rick Graziani graziani@cabrillo.edu14 Writing a Software Program Steps in writing a software program 1. Hardware (CPU) 2. Operating System 3. Programming Language 4. Brand of Compiler 5. Writing the Program

15 Rick Graziani graziani@cabrillo.edu15 Task Write a program to convert binary numbers to decimal and decimal numbers to binary Writing a Software Program

16 Rick Graziani graziani@cabrillo.edu16 1. Determine what kind of computer you want your program to run on Macintosh? Windows PC? Mainframe? Writing a Software Program

17 Rick Graziani graziani@cabrillo.edu17 2. Determine which operating system this computer (and the user) will be using Windows XP? Mac OSX? Linux? Writing a Software Program

18 Rick Graziani graziani@cabrillo.edu18 3. Determine which language you will be programming in. C? C++? Java? C++ Writing a Software Program

19 Rick Graziani graziani@cabrillo.edu19 4. Determine the compiler for your language, operating system and hardware Microsoft Visual C++? Borland C++? Watkins C++? Microsoft Visual C++ Writing a Software Program

20 Rick Graziani graziani@cabrillo.edu20 5. Write the program Writing a Software Program

21 Rick Graziani graziani@cabrillo.edu21 Compile the program into a machine code file and distribute it to the users via floppy diskette. Writing a Software Program

22 Rick Graziani graziani@cabrillo.edu22 Fourth Generation Languages Languages which are more like natural human languages uses English phrases common with data base languages search for name equals “graziani” and state equals “ca” Examples dBase FoxPro Access Oracle Informix SQL

23 Rick Graziani graziani@cabrillo.edu23 Fourth Generation Languages Advantages Average users can quickly learn to “query” the database Average users can easily learn how to write programs Programs are written faster Disadvantages Can not write sophisticate programs like word processors, graphics, etc. Mostly for data base applications like phone information.

24 Rick Graziani graziani@cabrillo.edu24 The Year 2000 What is the big deal? Older computer systems limited RAM memory limited disk storage slower processors (CPUs) The YEAR was stored using two bytes instead of four bytes, in order to save bytes in RAM and storage 67 instead of 1967

25 Rick Graziani graziani@cabrillo.edu25 Example: 500,000 records Save 1 million bytes 500,000 x 4 bytes (19xx) = 2 million bytes 500,000 x 2 bytes (xx) = 1 million bytes less storage on disk less RAM memory needed faster processing The Year 2000 What is the big deal?

26 Rick Graziani graziani@cabrillo.edu26 Problem The year 2000 will be “00” or looked at by the computers as the year “1900” Will cause miscalculations for everything from pension funds to horoscopes. The Year 2000 What is the big deal?

27 Databases and Relationships

28 Rick Graziani graziani@cabrillo.edu28 Relationships One-to-One One-to-Many Many-to-Many

29 Rick Graziani graziani@cabrillo.edu29 One-to-One Relationships

30 Rick Graziani graziani@cabrillo.edu30 One-to-Many Relationships

31 Rick Graziani graziani@cabrillo.edu31 One-to-Many Relationships

32 Rick Graziani graziani@cabrillo.edu32 Many-to-Many Relationships (Not recommended)

33 Software Development CS 1 Rick Graziani Spring 2007


Download ppt "Software Development CS 1 Rick Graziani Spring 2007."

Similar presentations


Ads by Google