Programming Principles and Practice using C++
latest
Contents:
Chapter 1 - Computers People and Programming
Review
1. What is software?
2. Why is software important?
3. Where is software important?
4. What could go wrong if some software fails? List some examples.
5. Where does software play an important role? List some examples.
6. What are some jobs related to software development? List some.
7. What’s the difference between computer science and programming?
8. Where in the design, construction, and use of a ship is software used?
9. What is a server farm?
10. What kinds of queries do you ask online? List some.
11. What are some uses of software in science? List some.
12. What are some uses of software in medicine? List some.
13. What are some uses of software in entertainment? List some.
14. What general properties do we expect from good software?
15. What does a software developer look like?
16. What are the stages of software development?
17. Why can software development be difficult? List some reasons.
18. What are some uses of software that make your life easier?
19. What are some uses of software that make your life more difficult?
Terms
affordability
analysis
blackboard
CAD/CAM
communication
correctness
customer
design
feedback
GUI
ideals
implementation
programmer
programming
software
stereotype
testing
user
Exercises
Chapter 2 - Hello World!
Review
1. What is the purpose of the “Hello, World!” program?
2. Name the four parts of a function.
3. Name a function that must appear in every C++ program.
4. In the “Hello, World!” program, what is the purpose of the line return 0;?
5. What is the purpose of the compiler?
6. What is the purpose of the #include directive?
7. What does a .h suffix at the end of a file name signify in C++?
8. What does the linker do for your program?
9. What is the difference between a source file and an object file?
10. What is an IDE and what does it do for you?
11. If you understand everything in the textbook, why is it necessary to practice?
Terms
//
<<
C++
comment
compiler
compile-time
error
cout
executable
function
header
IDE
#include
library
linker
main()
object code
output
program
source code
statement
Exercises
Chapter 3 - Objects, Types and Values
Drill
Review
Terms
assignment
cin
concatenation
conversion
declaration
decrement
definition
increment
initialization
name
narrowing
object
operation
operator
type
typesafety
value
variable
Try This
Name and Age
Operators
Repeated Words
Exercises
Exercise 02
Exercise 03
Exercise 04
Exercise 05
Exercise 06
Exercise 07
Exercise 08
Exercise 09
Exercise 10
Exercise 11
Chapter 4 - Computation
Drill
Review
Terms
abstraction
begin()
computation
conditional statement
declaration
definition
divide and conquer
else
end()
expression
for
-statement
range-
for
-statement
function
if
-statement
increment
input
iteration
loop
lvalue
member function
output
push_back()
repetition
rvalue
selection
size()
sort()
statement
switch
-statement
vector
Traversing a vector:
Growing a
vector
while
-statement
Try This
Currency Converter
Currency Converter
switch
Character Loop
Character Loop
for
Square
Bleep
Exercises
Exercise 02
Exercise 03
Exercise 04
Exercise 05
Exercise 06
Exercise 07
Exercise 08
Exercise 09
Exercise 10
Exercise 11
Exercise 12
Exercise 13
Exercise 14
Exercise 15
Exercise 16
Exercise 17
Exercise 18
Exercise 19
Exercise 20
Exercise 21
Chapter 5 - Errors
Drill
Review
Terms
argument error
assertion
catch
compile-time error
container
debugging
error
exception
invariant
link-time error
logic error
post-condition
pre-condition
range error
requirement
run-time error
syntax error
testing
throw
type error
Try This
Compiler Response
Compiler Response 2
Error Reporting
Uncaught Exception
Uncaught Exception
Locic Errors
Estimation - Hexagon Area
Estimation - Driving Times
Post-conditions
Exercises
Programming Principles and Practice using C++
Docs
»
Index
Edit on GitHub
Index
Read the Docs
v: latest
Versions
latest
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.