An Object-Oriented Approach to Programming Logic and Design 4e Joyce Farrell (Solutions Manual All Chapters) (Download link at the end of this File)
- / 3
Object-Oriented Programming Logic and Design, 4e Solutions 1-1
An Object-Oriented Approach to Programming Logic and Design, 4rd Edition
Chapter 1
Exercises
- Which of the following are examples of hardware? Which are examples of software?
- Microsoft Word e. a laptop battery
- iTunes f. Super Mario Bros. game
- a laser printer g. Facebook
- A USB flash drive
Answer:
- software e. hardware
- software f. software
- hardware g. software
- hardware
- Suppose that Donna has called her friends Carlos and Ramona to ask them over for
- Donna asked Carlos to lunch. d. Donna ast Ramona to dinner.
- Donna asked Carlos to dinner. e. Carlos and Donna are friends.
- Ramona asked Donna to
- Carlos and Ramona are friends.
dinner. Which of the following are similar to syntax errors, and which are like logic errors?
dinner.
Answer:
- logical error d. syntax error
- no error e. no error
- logical error f. logical error
- Of each of the following pairs of tasks, which one should be completed first?
- testing a program or translating a program
- developing the logic for a program or coding a program
- coding a program or translating a program
- translating a program or developing the logic for a program
Answer:
- translating a program
- developing the logic for a program 2 / 3
Object-Oriented Programming Logic and Design, 4e Solutions 1-2
- coding a program
- developing the logic for a program
- Using pseudocode or a flowchart, develop the logic for a program that accepts a
number as input and displays the value that is 10 more than the number.
Answer:
Flowchart
Pseudocode
start input myNumber myAnswer = myNumber + 10 output myAnswer stop
- Using pseudocode or a flowchart, develop the logic for a program that accepts two
numbers as input and displays the product of the numbers.
Answer:
Flowchart
- / 3