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:
Read chapter 4, Loops.
You are to complete exercise 3.11
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.
You can run your Java code in the Integrated Development Environment (IDE) Eclipse.
After you have created a Java source code file, you will want to compile and run your code. Using a simple HelloWorld class, here is how it is done at the command line.
The required textbook for this course is Introduction to Java Programming by Y. Daniel Liang.