CSCI 1110 - C++ Lecture Notes
Chapter 1 - Overview of Programming
and Problem Solving


Programming

The Programming Process

Basic Computer Components

Programming Languages

Problem Solving

Case Study - Payroll Program


Programming

 
 
Small Programs
Large Programs
 Programming Time A few minutes to several hours Months to years - usually an ongoing process
 Complexity Relatively simple Complexity at the level of large building architecture, aircraft design, the tax code, etc.
 Reliability Can be made almost error free Will contain quite a few errors (bugs), some of them serious; but still very reliable
 Users Few, often the programmer Many different users with varing levels of skill and a wide range of problems to be solved
 Planning and Design Not absolutely needed Accounts for 75 to 80% of the total cost of producing the program
 Documentation Usually not required An absolute necessity so the users can use the program and so that the program can be changed in the future

The Programming Process

 

Basic Computer Components


Programming Languages

 
Machine Language
Assembly Language
100101
ADD
011001
SUB
001101
MPY
100111
CMP
100011
JMP
110011
JNZ
 
 
Assembler Language
C++
LDA X
ADD Y
SUB Z
STO A
a = x + y - z;
 


Problem Solving

 

Case Study - Payroll Program



Updated January 20, 1999 by Tom Irby.
Copyright 1999 by Thomas C. Irby.