CSCI 3133 Section 2 Instructor: Bindra Shrestha - PowerPoint PPT Presentation

1 / 13
About This Presentation
Title:

CSCI 3133 Section 2 Instructor: Bindra Shrestha

Description:

CSCI 3133 Programming with C Instructor: Bindra Shrestha University of Houston Clear Lake Computer Software 1. System Software Operating System 2. – PowerPoint PPT presentation

Number of Views:76
Avg rating:3.0/5.0
Slides: 14
Provided by: bind7
Category:

less

Transcript and Presenter's Notes

Title: CSCI 3133 Section 2 Instructor: Bindra Shrestha


1
CSCI 3133 Programming with C Instructor Bindra
Shrestha University of Houston Clear Lake
2
Computer Software
  • 1. System Software
  • Operating System
  • 2. Application Software
  • General-purpose software-word processors,
    database management systems
  • Application Specific Software-ledger system used
    by accountants

3
Computing Environments
  • 1. Personal Computing Environment
  • A Personal Computer
  • 2. Time-Sharing Environment
  • Many users are connected to one or more
    computers in shared environment.
  • 3. Client/Server Environment
  • Splits the computing function between a
    central computers and users computers

4
Computer Languages
  • Machine Language -1940s
  • streams of 0s and 1s. Program 1-1 pg.7
  • Grace Hopper developed symbolic language in1950s
    which mirrored the machine language, uses symbols
  • As assembler translates symbolic language into a
    machine language, they soon became Assembly
    Language. Program 1-2 pg 8.

5
Computer Languages
  • High -Level Languages-1960s
  • must be converted to machine language, the
    process is known as compilation
  • FORTRAN,COBAL,C

6
Building a C Program
7
Building a C Program
  • 1. Writing and Editing Programs
  • 2. Compiling the Program
  • 3. Linking the program with library modules

8
Program Development
  • 1. Understand the problem
  • 2. Develop a solution
  • 3. Write the program
  • 4. Test the program

9
Tools to develop the solution
  • 1. Structure Chart -shows how a problem can be
    broken into logical steps. figure 1-12, pg 15
  • 2. Pseudocode -steps to accomplish the task in
    English-like statements
  • 3. Flowchart-steps to accomplish the task in
    graphical symbols

10
Flowchart Symbols
  • Oval Denotes begin or End
  • Flow line(arrow) direction of logical flow
  • Parallelogram denotes input/output operation
  • Rectangle denotes a process
  • Diamond denotes a decision point (if/then/else)

11
Example
  • Calculate the Area of a Rectangle
  • 1. Prompt the user for length and width
  • 2. Store length and width
  • 3. Set Arealengthwidth
  • 4. Return Area

12
Example of Flowchart
Begin
  • .

Prompt user length and width
Read length,width
Area lengthwidth
X
13
Flowchart contd.
  • .
Write a Comment
User Comments (0)
About PowerShow.com