
80 CHAPTER 2 Programming Building Blocks—Java Basics
2.7.1 Multiple Choice Exercises
Question 3
2.7.2 Reading and Understanding Code
Questions 14,15,16,17,18,19,20,21,22
2.7.3 Fill In the Code
Questions 28,30,31
2.7.4 Identifying Errors in Code
Questions 36,37
2.7.5 Debugging Area
Questions 42,43
2.7.6 Write a Short Program
Question 45
2.7.8 Technical Writing
Question 51
Skill Practice
with these end-of-chapter questions
2.5 Programming Activity 2: Exercising the Arithmetic Operators
In this Programming Activity, you will write a program that calculates the
sum, difference, product, quotient, and modulus of two integers.
Open the ShellApplication.java source code ...