chapter 1 introduction to computers science: a structured programming approach using c 7 1-2...
TRANSCRIPT
![Page 1: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/1.jpg)
Computer Science: A Structured Programming Approach Using C 1
Objectives ❏ To review basic computer systems concepts❏ To be able to understand the different computing environments
and their components❏ To review the history of computer languages❏ To be able to list and describe the classifications of computer
languages❏ To understand the steps in the development of a computer
program❏ To review the system development life cycle
Chapter 1Introduction to Computers
![Page 2: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/2.jpg)
Computer Science: A Structured Programming Approach Using C 2
1-1 Computer Systems
Today computer systems are found everywhere.Computers have become almost as common astelevisions. But what is a computer? A computer is asystem made of two major components: hardware andsoftware.
Computer HardwareComputer Software
Topics discussed in this section:
![Page 3: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/3.jpg)
Computer Science: A Structured Programming Approach Using C 3
FIGURE 1-1 A Computer System
![Page 4: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/4.jpg)
Computer Science: A Structured Programming Approach Using C 4
FIGURE 1-2 Basic Hardware Components
![Page 5: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/5.jpg)
Computer Science: A Structured Programming Approach Using C 5
FIGURE 1-3 Types of Software
![Page 6: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/6.jpg)
Computer Science: A Structured Programming Approach Using C 6
FIGURE 1-4 Relationship between system and application software
![Page 7: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/7.jpg)
Computer Science: A Structured Programming Approach Using C 7
1-2 Computing Environments
In the early days of computers, there was only one environment,the mainframe computer hidden in a central computingdepartment. With the advent of minicomputers and personalcomputers, the environment changed with computers onvirtually every desktop. In this section we describe severaldifferent environments.
Personal Computing EnvironmentTime-Sharing EnvironmentClient/Server EnvironmentDistributed Computing
Topics discussed in this section:
![Page 8: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/8.jpg)
Computer Science: A Structured Programming Approach Using C 8
FIGURE 1-5 Personal Computing Environment
![Page 9: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/9.jpg)
Computer Science: A Structured Programming Approach Using C 9
FIGURE 1-6 Time-sharing Environment
![Page 10: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/10.jpg)
Computer Science: A Structured Programming Approach Using C 10
FIGURE 1-7 The Client/Server Environment
![Page 11: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/11.jpg)
Computer Science: A Structured Programming Approach Using C 11
FIGURE 1-8 Distributed Computing
![Page 12: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/12.jpg)
Computer Science: A Structured Programming Approach Using C 12
1-3 Computer Languages
To write a program for a computer, we must use a computerlanguage. Over the years computer languages have evolvedfrom machine language to natural languages.
Machine LanguagesSymbolic LanguagesHigh-Level Languages
Topics discussed in this section:
![Page 13: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/13.jpg)
Computer Science: A Structured Programming Approach Using C 13
FIGURE 1-9 Computer Language Evolution
![Page 14: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/14.jpg)
Computer Science: A Structured Programming Approach Using C 14
PROGRAM 1-1 The Multiplication Program in Machine Language
![Page 15: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/15.jpg)
Computer Science: A Structured Programming Approach Using C 15
The only language understood by computer hardware is machine language.
Note
![Page 16: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/16.jpg)
Computer Science: A Structured Programming Approach Using C 16
PROGRAM 1-2 The Multiplication Program in Symbolic Language
![Page 17: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/17.jpg)
Computer Science: A Structured Programming Approach Using C 17
Symbolic language uses symbols, or mnemonics, to represent the various machine language instructions.
Note
![Page 18: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/18.jpg)
Computer Science: A Structured Programming Approach Using C 18
PROGRAM 1-3 The Multiplication Program in C
continued
![Page 19: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/19.jpg)
Computer Science: A Structured Programming Approach Using C 19
PROGRAM 1-3 The Multiplication Program in C (continued)
![Page 20: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/20.jpg)
Computer Science: A Structured Programming Approach Using C 20
1-4 Creating and Running Programs
In this section, we explain the procedure for turning a programwritten in C into machine language. The process is presented ina straightforward, linear fashion, but you should recognize thatthese steps are repeated many times during development tocorrect errors and make improvements to the code.
Writing and Editing Programs Compiling ProgramsLinking ProgramsExecuting Programs
Topics discussed in this section:
![Page 21: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/21.jpg)
Computer Science: A Structured Programming Approach Using C 21
FIGURE 1-10 Building a C Program
![Page 22: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/22.jpg)
Computer Science: A Structured Programming Approach Using C 22
1-5 System Development
We’ve now seen the steps that are necessary to build a program.In this section, we discuss how we go about developing aprogram. This critical process determines the overall qualityand success of our program. If we carefully design eachprogram using good structured development techniques, ourprograms will be efficient, error-free, and easy to maintain.
System Development Life CycleProgram Development
Topics discussed in this section:
![Page 23: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/23.jpg)
Computer Science: A Structured Programming Approach Using C 23
FIGURE 1-11 Waterfall Model
![Page 24: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/24.jpg)
Computer Science: A Structured Programming Approach Using C 24
An old programming proverb:Resist the temptation to code.
Note
![Page 25: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/25.jpg)
Computer Science: A Structured Programming Approach Using C 25
FIGURE 1-12 Structure Chart for Calculating Square Footage
![Page 26: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/26.jpg)
Computer Science: A Structured Programming Approach Using C 26
PseudocodeEnglish-like statements that follow a loosely defined syntax
and are used to convey the design of an algorithm.
Note
![Page 27: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/27.jpg)
Computer Science: A Structured Programming Approach Using C 27
ALGORITHM 1-1 Pseudocode for Calculate Bathrooms
![Page 28: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/28.jpg)
Computer Science: A Structured Programming Approach Using C 28
FIGURE 1-13 Flowchart for Calculate Bathrooms
![Page 29: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/29.jpg)
Computer Science: A Structured Programming Approach Using C 29
Except for the most simple program, one set oftest data will not completely validate a program.
Note
![Page 30: Chapter 1 Introduction to Computers Science: A Structured Programming Approach Using C 7 1-2 Computing Environments In the early days of computers, there was only one environment,](https://reader033.vdocuments.net/reader033/viewer/2022052712/5af5ee847f8b9a9e598eb680/html5/thumbnails/30.jpg)
Computer Science: A Structured Programming Approach Using C 30
1-6 Software Engineering
Software engineering is the establishment and use of sound engineering methods and principles to obtain software that is reliable and that works on real machines.
This definition, from the first international conference on software engineering in 1969, was proposed 30 years after the first computer was built. During that period, software was more of an art than a science.