Homework 4: Due October 14th

 

Study Questions

  1. In flowcharting, which symbol is used to represent a true/false condition?
  2. Define a Boolean expression.
  3. List the relational operators used in Java and their meanings.
  4. 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!");
    
  5. 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");
    
  6. Define a flag and describe how it is used to program.
  7. Complete checkpoint questions 3.1-3.7.
  8. Complete checkpoint questions 3.8-3.11.
  9. What is a trailing else?
  10. Complete checkpoint question 3.12 and 3.13.
  11. Complete checkpoint questions 3.14 and 3.15.

Email Me | Office Hours | My Home Page | Department Home | MCC Home Page

© Copyright Emmi Schatz 2013