Monday, October 3, 2011

WebAdvisor - interval 2

Today is the end of the second WebAdvisor monitoring interval. Students with attendance issues, poor homework performance, and/or missing assignments should take this warning seriously.

Thursday, September 29, 2011

Quiz #3 - results

This week's quiz results were significantly improved over the previous two weeks. The class average this week was 70.0% and four students earned full credit. Be sure to review truth tables, if decisions, and switch statements for next week's quiz.

Grade distribution follows:

Wednesday, September 28, 2011

Building a tidy string

When we use the console for our output, we can carefully format the output using the System.out.printf method. We can format the strings for a JOptionPane dialog box, too, but there are a few extra steps involved. This example shows one way to build a formatted string using a Formatter from the java.util package.

Reading assignment - chapter 4

Read chapter 4, Loops.

Due Date
Tuesday, October 4th, 7:00pm

Tuesday, September 27, 2011

Lab 3 - DaysInMonth.java

You are to complete exercise 3.11
(6th ed, p94; 7th ed, p100; 8th ed, p108).

The class name must be DaysInMonth and it must be written as a GUI application.

Homework 4 - QuadraticEquation.java

You are to complete exercise 3.1, p 106

The class name must be QuadraticEquation and it must be written as a console application. You must use the Math.sqrt method, not the Math.pow method.

Monday, September 26, 2011

Just say no to "magic numbers"

It is unacceptable to use "magic numbers" in your source code. When dealing with trivial programs, using a naked number doesn't look like such a big deal (the code is short and, if well commented, the intent of the programmer is clear) but it is still a very bad habit to develop. The problem is both clearer to see and greatly magnified once the size of the code in question is larger.