Monday, November 28, 2011

Reading assignment - chapter 9 cont'd

Read chapter 9, Arrays and Strings.

Due Date
Monday, December 5th, 6:00pm

Lab 8 - string manipulation

You are to complete Lab 8, the programming assignment on page 11 of the course syllabus. You will need to use several of the functions of the string class in order to complete this assignment. I am inserting notes for the functions required in the bullet list of requirements below.

Your C++ program must:

Saturday, November 26, 2011

Reading assignment - chapter 9

Read chapter 9, Arrays and Strings, pages 496-502.

Due Date
Monday, November 28th, 6:00pm

Reading assignment - chapter 8

Read chapter 8, User-Defined Simple Data Types, Namespaces, and the string Type.

Due Date
Monday, November 28th, 6:00pm

Wednesday, November 23, 2011

Exam #2 program submission

As of dinner time last night, connectivity was restored to 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.

Please be sure to email me your second exam source code files. I will be making my comments back to you in return emails.

Tuesday, November 22, 2011

Exam #2 results

For those who came to class and took the second exam, the tests are graded and five students earned full credit.

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

Grade distribution follows:

Friday, November 18, 2011

Exam #2 programming problems - part 2

I strongly suggest that each student develop a C++ solution to the this second set of practice problems in preparation for the coding portion of the second 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.

Note:
Keep an eye on this post as additional problems are highly likely!

Monday, November 14, 2011

Exam #2 programming problems

I strongly suggest that each student develop a C++ 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.

Sunday, November 13, 2011

Exam #2 preparation

Your second exam, on chapters 5 through 7 of the textbook, is scheduled for next Tuesday, November 22nd. 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.

Monday, November 7, 2011

String manipulations

For lab 12, you need to request a date from the user, in the format "mm-dd-yyyy". This is a string but you will need to parse it into its component integers. This is how you go about doing that.

File access and user input

Usually you don't want to hard-code filenames into your projects: you want to let the user decide what the filenames should be. Here is an easy way to do just that.

Lab 12 - day of year

As one of the requirements to earn a B- or higher, you must complete exercise 5 on p 409, a program to calculate which day of the year the user entered. At the very minimum, you will need to write two functions. These are their headers:

   bool isLeapYear(int y)
   int countDays(int m, int d, bool leap)

Lab 7 - calculating grades

You are to complete exercise 9, pp 409-410, writing a program which contains three user-defined functions: generateOutputFile, calculateAverage, and calculateGrade. Please note that I have changed the requirements from the exercise in the book slightly, in order to have a more intuitive solution. These are the headers:

   void calculateAverage(ifstream& fin,
      ofstream& fout, double& average)
   char calculateGrade(double average)
   bool generateOutputFile()

Sunday, November 6, 2011

Reading assignment - chapter 7

Read chapter 7, User-Defined Functions II.

Due Date
Monday, November 7th, 6:00pm

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


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