# CMIS 102a - March 2007

Mon Mar 26
  - Topics: Introductions. Overview. Handout CDs. First Program.
  - Handout 1. CMIS102A Syllabus
  - Handout 2. Java: CMIS 102A Java Summary - v9 - This is pretty much the Java "vocabulary" we'll cover.
  - Programming Assignment 1: Write a one-line greeting program for next Monday (extended to Wednesday).
Mon Mar 28
  - Topics: Basic program structure and Input-Output. Variables.
  - Handout 3. Java Example: Do Nothing
  - Handout 4. Java Example: Console: Hello Earthling
  - Handout 5. Java Example: Console: Take me to your leader
  - Handout 6. Java Example: Console: Capitalize
  - Handout 7. Java Example: Console: Kilometers to Miles
  - Handout 8. Java Example: Dialog: Hello Earthling
  - Handout 9. Java Example: Dialog: Take me to your leader
  - Handout 10. Java Example: Dialog: Capitalize
  - Handout 11. Example: Dialog: Kilometers to Miles
  - Handout 12. Numeric Expression Exercises (ignore after 10)
  - Programming Assignment 2: Write a calculator or conversion program.
Mon Apr 2
  - Topics: Review basic conversion type program. Numeric expressions.
  - Handout x.
  - Quiz 1. Write a program to print a greeting.
Wed Apr 4
  - Topics: String methods. Start "if" statement discussion. Comparison operators (`< <= == != > >`) and logical operators (`&& and ||`)
  - Handout: Student list.
  - Handout 13. Java Programming: Initials v2 - Programming assignment 3.
  - Due today: Program 2 - Calculator.
  - Programming assignment 3: Java Programming: Initials v2. Due next Wed.
  - Reading: Chapter 3 and the beginning of Chapter 5. We're skipping Chapter 4.
Mon Apr 9
  - Topics: If statements. Boolean expressions.
  - Quiz: Write a simple "calculator".
  - Handout 14. Java: String Exercises 1 (Handout was titled "Expression Exercises 1")
Wed Apr 11
  - Topics: More if. Boolean. Comparing strings eg `name.equals("Mickey")`.
  - Quiz: Retake writing a simple calculator. This quiz is a replacement for the previous quiz.
  - Due: Initials program.
  - Handout 15. If Statement - Overview
  - Handout 16. Braces are your friend
  - Handout 17. NetBeans IDE - NetBeans is a professional-level IDE, along with Eclipse and IntelliJ IDEA. I'm hesitant to recommend it for most beginning students because learning to use NetBeans in addition to Java is more than most students want to take on, but if you're ready to take on a little more, NetBeans will reward you for the effort. It's easy to use once you've made a couple of projects.
  - Handout 18: Programming assignment 4: Programming Craps - First Stage Due next Wednesday - This only implements the first roll of the dice. Use JOptionPane for the IO. The next project will be to extend this with a loop for all the rolls to make a point.
  - Reading: Read Chapter 6 on loops. We'll be working with loops for the next couple of class sessions.
Mon Apr 16
  - Handout 19. if' Exercise 1 We did Part I on the screen. Try Part II.
  - Quiz on if -- similar to the above exercises.
  - Handout 20: JOptionPane.showOptionDialog
  - Main topic: loops.
  - Handout 21. While Loop Exercises 1
  - Additional topic: How to make a double-clickable jar file.
  - Additional topic: How to use JOptionPane.showConfirmDialog.
Wed Apr 18
  - Programming Problems
    - Due today. The first stage (roll) of the craps problem was due today.
    - Programming Craps Stage 2 - Making the Point was handing out. This involves an enhancement to the previous program to play the part of the game when a point is rolled. In the part of the if statement which is neither a win or a loss, you need to add a loop to keep rolling until either the point is rolled, or a 7 is rolled.
  - Handout 22. While Loop Exercises 1 - Exercise done in class. This online version has minor changes/fixes to problems 6 and 7.
  - Main topic: Review of
  - Handout 20: JOptionPane.showOptionDialog
  - Main topic: loops.
  - Handout 21. While Loop Exercises 1
  - Additional topic: How to make a double-clickable jar file.
  - Additional topic: How to use JOptionPane.showConfirmDialog.