Wednesday, December 14, 2011

Exam #3 results

Exams have all been graded and you all did very well. I decided to count best five out of six as "the exam", given that time seemed to be against completion. For those who finished all six, kudos: you got some extra credit. Exam scores ranged from 95 to 110. Final grades have been posted on WebAdvisor and I'm pretty sure I emailed everyone their semester grades and/or let you know before you left last night.

Final grade distribution follows:

Monday, December 12, 2011

Registration reminder

Register for the spring term before the end of the fall semester! You will have a better selection of classes and sections if you do. Also, you should be aware that if you wait too long, there is the possibility that a section you want could be cancelled due to insufficient enrollment.

Tuition payments are not due until January 5th.

Exam #3 structure

The final exam is written. These are the six problems on the exam. Please prepare accordingly.
  1. Three required programs
    1. Numerical conversion
    2. Geometric calculation
    3. One regular expression testing
  2. Choice of one of two options in each category
    1. File I/O
    2. Decoupled class
    3. String manipulation

Saturday, December 10, 2011

Monday, December 5, 2011

Lab 11 - FileIO

As one of the requirements to earn a B- or higher,
you must complete exercise 8.22 (6th ed, p300) / 8.19 (7th ed, p299) /
9.19 (8th ed, p339).

The class name must be FileIO and it may execute either as a GUI application or as a command line application.

Friday, December 2, 2011

Exam #3 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 several of these practice problems.

Watch this post - more to come!

Enumerating

Sometimes when you are programming, you come across situations where you need some constants but the constants all have something significant in common. Take for example a program which tracks a person's food intake. You might want to categorize each of the foods in the program's database.

Exam #3 preparation

Your final exam is scheduled in class for December 13th. Next week, we will finish up new material and review the material for the exam. Keep an eye on the blog for test preparation suggestions. Programming problems on exams are often very similar to the end of chapter exercises.

Tuesday, November 29, 2011

Homework 12 - PwdValidator.java

You are to complete exercise 9.3, p336.

The class name must be PwdValidator and it must execute as a GUI application. You must use regular expressions and the matches method from the String class to complete this assignment.

Monday, November 28, 2011

Reading assignment - chapter 9

Read chapter 9, Strings and Text I/O.

Due Date
Tuesday, December 6th, 7:00pm

Wednesday, November 23, 2011

Connectivity

As of dinner time last night, Internet access was restored to the Lincroft campus. The IT staff continues to monitor the situation any signs of instability or trouble and Brookdale email seems to be working just fine now.

Tuesday, November 22, 2011

Homework 11 - Cube.java, CubeTest.java

You are to create a class Cube.

Cube contains:

Homework 10 - FlatStanley.java

You are to create a console application called FlatStanley which represents virtual rectangles.

FlatStanleycontains:

Lab 12 - Account.java, TestAccount.java

As one of the requirements to earn an A- or higher in this class, you must complete exercise 7.3 (6th ed, p256; 7th ed, p260) / 8.7 (8th ed, p297).

The primary class name must be Account, the driver class must be TestAccount, and it must execute as a command line application.

Lab 9 - Gregor.java

You are to complete exercise 7.5
(6th ed, p257; 7th ed, p261) /
8.5 (8th ed, p296).

The class name must be Gregor and your program must use methods from the GregorianCalendar class. You may write it as a command line or as a GUI application.

Monday, November 21, 2011

Reading assignment - chapter 8

Read chapter 8, Objects and Classes.

Due Date
Tuesday, November 22nd, 7:00pm

Sunday, November 20, 2011

Exam #2 results

For those who came to class and took the second exam, the tests are graded and the class average was 93.5% and one student had a perfect score. These scores are significantly improved over the first exam - well done!

Since only half the class has taken the exam, I am not going to post solutions yet.

Grade distribution follows:

Monday, November 14, 2011

WebAdvisor - final interval

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

Sunday, November 13, 2011

Exam #2 this week

Quick reminder that you that you have an exam Tuesday 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 likely contain

Tuesday, November 8, 2011

Exam #2 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 several of these practice problems. More than likely, there will be five program options on the test and you'll need to complete four of the five.

Exam #2 preparation

Your second exam, on chapters 5 through 7 of the textbook, is scheduled in class for one week from today. The format will be similar to the previous test.

Topics covered include:

Lab 10 - WeeklyHours

As one of the requirements to earn a B- or higher,
you must complete exercise 6.23 (6th ed, p207; 7th ed, p224) /
7.4 (8th ed, p252).

The class name must be WeeklyHours and it must execute as a command line application. This assignment requires that you use multi-dimensional arrays, specifically, you'll need an 8 x 7 array to hold the following data:

Homework 9 - AveragingArrays.java

You are to complete exercise 6.8, p228.

The class name must be AveragingArrays. You must write it as a command line application.

Lab 8 - ReverseArray.java

You are to complete exercise 6.13
(6th ed, p205) / 6.12 (7th ed, p223) / 6.12 (8th ed, p229).

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

Saturday, November 5, 2011

Register for classes

Priority registration is underway! In order to give yourself the best chance of getting all of the classes you need as well as the days and class meeting times you prefer, you should register early.

Tuition payments are not due until January 5th.

Friday, November 4, 2011

Jason and the for loop

You should've written it in Java, Jason

No doubt the teacher noticed that his for loop printed all of the output on a single line. Yeah, that's why she looks so unimpressed.

Wednesday, November 2, 2011

Why did the programmer die in the shower?

Sorting

Sorting algorithms can be implemented in almost any programming language but have you ever considered that they could be implemented in folk dance?

Tuesday, November 1, 2011

Lab 7 - CountingDigits.java

You are to complete exercise 6.7
(6th ed, p205; 7th ed, p222; 8th ed, p228).

The class name must be CountingDigits. You must write it as a command line application.

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.