Homework 4: Due October 14th
- Read chapter 3, sections 3.1 through 3.4.
- Answer the study questions.
Study Questions
- In flowcharting, which symbol is used to represent a true/false condition?
- Define a Boolean expression.
- List the relational operators used in Java and their meanings.
- Correct this statement so it conforms to good programming style as described in
your textbook:
if (age<21) System.out.println("You are too young to drink alcohol!");
- What will be the output of the following code? Watch Out!
int x = 0, y = 10;
if (x > y);
System.out.println("x is greater than y");
System.out.println("The end");
- Define a flag and describe how it is used to program.
- Complete checkpoint questions 3.1-3.7.
- Complete checkpoint questions 3.8-3.11.
- What is a trailing else?
- Complete checkpoint question 3.12 and 3.13.
- Complete checkpoint questions 3.14 and 3.15.
- Multiple Choice and True/False: questions 1-3, 5-7
- Find the Error: 2, 3
- Algorithm Workbench: 1-3
Email Me |
Office Hours |
My Home Page |
Department Home |
MCC Home Page
© Copyright Emmi Schatz 2013