Docsity

Overview of Programming and Problem Solving - Notes | CS 1044, Study notes of Computer Science

Toggle sidebar
bg1
CS 1044 Intro Programming in C++ Spring 2004
Introduction 1
January 22, 2004
1
Chapter 1
Overview of Programming and
Problem Solving
Dale/Weems/Headington
Slides by Sylvia Sorkin, Community College of Baltimore County - Essex
Campus
2
What is Computer Programming?
๎˜It is the process of planning a
sequence of steps (called
instructions) for a computer to
follow. STEP 1
STEP 2
STEP 3
. . .
pf3
pf4
pf5

Partial preview of the text

Download Overview of Programming and Problem Solving - Notes | CS 1044 and more Study notes Computer Science in PDF only on Docsity!

CS 1044 Intro Programming in C++ Spring 2004

1

Chapter 1

Overview of Programming and

Problem Solving

Dale/Weems/Headington

Slides by Sylvia Sorkin, Community College of Baltimore County - Essex Campus

2

What is Computer Programming?

 It is the process of planning a

sequence of steps (called

instructions) for a computer to

follow.

STEP 1
STEP 2
STEP 3

CS 1044 Intro Programming in C++ Spring 2004

3

Programming Life Cycle Phases

1 Problem-Solving

2 Implementation

3 Maintenance

4

Problem-Solving Phase

 ANALYZE the problem and SPECIFY

what the solution must do

 develop a GENERAL SOLUTION

(ALGORITHM) to solve the problem

 VERIFY that your solution really

solves the problem

CS 1044 Intro Programming in C++ Spring 2004

18

SELECTION (branch)

IF Condition THEN Statement1 ELSE Statement

Statement Statement

Statement

Condition (^)...

True

False

19

LOOP (repetition)

Statement

Condition...

False

True

WHILE Condition DO Statement

CS 1044 Intro Programming in C++ Spring 2004

20

SUBPROGRAM (function)

SUBPROGRAM...
SUBPROGRAM

a meaningful collection of SEQUENCE, SELECTION, LOOP, SUBPROGRAM

21

Computer Components

Arithmetic Logic Unit

Control Unit

Auxiliary Storage Device

Memory Unit ( RAM & Registers )

Central Processing Unit ( CPU ) Input Device

Output Device

Peripherals

CS 1044 Intro Programming in C++ Spring 2004

24

Peripherals

 are input, output, or auxiliary storage devices
attached to a computer
 Input Devices include keyboard and mouse.
 Output Devices include printers, video
display, LCD screens.
 Auxiliary Storage Devices include disk
drives, scanners, CD-ROM and DVD-ROM
drives, modems, sound cards, speakers,
and digital cameras.