Monday, October 31, 2011

Reading assignment - chapter 7

Read chapter 7, Multi-Dimensional Arrays.

Due Date
Tuesday, November 8th, 7:00pm

Saturday, October 29, 2011

Reading assignment - chapter 6

Read chapter 6, Single-Dimensional Arrays.

Due Date
Tuesday, October 31st, 7:00pm

WebAdvisor - interval 4

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

Wednesday, October 26, 2011

Lab 4 - RateComparison.java - revisited

Screenshots from last night's implementation of RateComparison.java using methods. Note that this was a bit of quick and dirty work on the fly. A more complete and comprehensive treatment would have do while loops to control error handling on the user input etc.

Tuesday, October 25, 2011

Homework 8 - GSCookieOrders.java

Girl Scouts sell their signature cookies once a year. Each scout receives an order form and badgers everyone they know sells cookies. When order forms are collected by the Cookie Coordinator, she adds up all the individual box counts and places the troop order with the local council. The council only sells full cases of cookies so the Cookie Coordinator must round up the order if the troop has not sold an exact order of cases.

Lab 6 - TimeConversion.java

You are to complete exercise 5.25
(6th ed, p167; 7th ed, p176; 8th ed, p193).

The class name must be TimeConversion. You may write it as a command line or as a GUI application.

Lab 5 - FutureValue.java

You are to complete exercise 5.7
(6th ed, p163; 7th ed, p172; 8th ed, p189).

The class name must be FutureValue and it must execute as a command line application.

Sunday, October 23, 2011

Whitespace... it's free!

I was reviewing today's batch of source code submissions and I noticed that an awful lot of people were not making good use of their whitespace. Please observe the following rules in your code:

Friday, October 21, 2011

Reading assignment - chapter 5

Read chapter 5, Methods.

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

Thursday, October 20, 2011

Exam #1 results

Your first exams are all graded and the class average was 82.4% and one student had a perfect score. While there is plenty of room for improvement, this is not a bad baseline. If your personal score is a little less than you would like, keep this in mind: if you have an upward trend in your test results and finish strongly, I tend to weight the later exams sightly more heavily.

Grade distribution follows:

Monday, October 17, 2011

Elaine Lapham Memorial Scholarship


The Brookdale Community College Foundation has announced that The Elaine Lapham Memorial Scholarship is available for the spring 2012 semester. The scholarship is in the amount of $500.

Exam #1 tomorrow night

Drive-by posting to remind you that you have an exam tomorrow night. Please be on time. You will be taking the written portion of the exam closed book. For the programming part of the test, you may use your textbook as a reference but you may not bring pre-completed code with you. Practice today and tomorrow for the test by working on the exercises at the ends of the chapters and in the exam prep blog posts.

Your exam will contain

WebAdvisor - interval 3

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

Wednesday, October 12, 2011

Brookdale 5K

Notice to all students:


The first annual Brookdale Community College 5K run/walk to raise money for scholarships for the International Center Study Abroad Program is scheduled for Sunday, October 30th at 9:00 at Thompson Park. The cost is $25, and if you register before the 14th it includes a commemorative T-shirt. All of the donations go to the program.

You can download a race application here and a sponsorship form here.

Tuesday, October 11, 2011

Exam #1 pretest comments

Instead of me retyping the same comments to many students, I'm listing code critiques here by numbers and me return emails to you reference this list.

Note:
Not all students turned in code for last night's pretest. If you neglect to turn in code during next week's exam, you will receive a failing grade.

Homework 7 - SimplePrintMatrix.java

You are to write a program which is a modification on exercise 5.17, p 192. You will be writing a method to print a square matrix of randomly generated 1s and 0s, per the instructions in exercise 5.17. In addition, you will need to request and to accept the size of the matrix from the user.

The class name must be SimplePrintMatrix and it must be written as a console application.

Lab 4 - RateComparison.java

You are to complete exercise 4.21
(6th ed, p125; 7th ed, p135; 8th ed, p149).

The class name must be RateComparison and it must execute as a command line application.

Monday, October 10, 2011

Public service announcement #3

Notice to all students:

Though it does not affect our Comp171 class, Brookdale is NOT closed on Veterans Day. If you have Friday classes this semester, you have school on Friday, November 11th.

Friday, October 7, 2011

Exam #1 programming problems

I strongly suggest that each student develop a Java solution to the following problems in preparation for the coding portion of the first exam. While I do not promise that the practical part of the exam will be *exactly* the same as any one of these problems, the actual test question will at least be very similar to one or more of these practice problems.

Math.random( )

Sometimes you need to generate a random number. In Java, the easiest way to do this is to invoke Math.random(). This method returns a value from [0 - 1) which means from 0 (inclusive) up to but not including 1 (exclusive). You can adjust the output by multiplying by a constant and then (int) casting the result, to lop off the decimal part.

Here are some examples and what they return:

Wednesday, October 5, 2011

More on tidy string building

I have edited the Building a tidy string post to show how to append additional text to the formatted string. Both screenshots reflect the version 2 source code.

Tuesday, October 4, 2011

Quiz #4 - results

Overall performance continues to improve! The class average this week was 82.6% and three students earned full credit.

Grade distribution follows:

Homework 6 - SmallestNSquared.java

You are to complete exercise 4.12, p 148.

You'll be finding the smallest integer such that its square is strictly greater than 1994. You must provide proof that your calculation is correct. The class name must be SmallestNSquared and it must be written as a console application.

Homework 5 - FootedBmiGUI.java

You are to complete exercise 3.6, p 107, modifying the program in listing 3.5 on pages 84 and 85.

The class name must be FootedBmiGUI and it must be written as a GUI application. Instead of using pure numbers in your code, you must declare appropriately named constants. Follow the example in Building a tidy string to format your output nicely.

Monday, October 3, 2011

Exam #1 preparation

Your first exam, on chapters 1 through 4 of the textbook, is scheduled in class for two weeks from tomorrow. Next week, we will review the material for the exam and take a practice test. Keep an eye on the blog this week for test preparation suggestions. Programming problems on exams are often very similar to the end of chapter exercises.

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.