Fall 2004

Welcome to CS 213

 

Announcements

Class Staff

Class Information

Lectures

Assignments

Grades

 

 

PRELIM #2 NEXT TUESDAY, 11/23

 

For practice, please download PRELIM2.pdf. I will not post answers to the prelim, but if you ask me if a particular answer is correct I will answer you!

 

 

 

ASSIGNMENT #9 POSTED (11/5)

 

Assignment #9 was posted at 10:00am on 11/5. It will be due next Thursday on 11/11.

 

 

PRELIM #1 ON 10/14/04, ASSIGNMENT SOLUTIONS POSTED (Updated, 10/13)

 

Remember, we have our first prelim IN CLASS on 10/14 (Thursday right after Fall Break). No one has asked for special arrangements to be made so I am assuming you will all be present to take the prelim. It counts for 20% of your grade. I have posted the solutions for assignments #1 - #5. I am holding office hours from 4PM to 5:30PM in 351 Upson if you'd like to go over the practice prelim!

 

 

ASSIGNMENT #6 POSTED (10/1)

 

Assignment #6 is finally posted, my apologies for putting it up late. I'm extending the due date a little bit (Friday morning by 8am) to give you an extra evening to work on it. Please check out the Assignments section for more details.

 

 

OFFICE HOURS CANCELED ON 9/29 (9/29)

 

Originally I had moved office hours up to 12:30pm today, but I am going to need to cancel them. Please feel free to email me with questions (rd29@cornell.edu). I will be available for appointments on campus Monday if needed.

 

 

 

PRACTICE PRELIM POSTED (10/1)

 

Please download PRELIM1.PDF to see a previous year's prelim as a study guide. I will not post answers, but you may ask questions about any of the questions.

 

 

HOMEWORK #5 DUE ON 10/5 (9/29)

 

Please hold on to Homework #5 and turn it in on Tuesday in class. Homework #6 will still be assigned on Thursday and will be due on 10/7.

 

 

CLASS CANCELED ON 9/30 (9/26)

 

I will not be on campus on Thursday, 9/30 and I am therefore cancelling class. We were scheduled to do a case study of the Project SALSA infrastructure which falls outside the curriculum for this course, but would be an interesting look at applied C++. We will not make up this lecture.

 

 

Amnesty for Assignment #3 (9/18)

 

A little under half of you did not submit Assignment #3. Assignments #3 and #4 are important for laying the groundwork for what we do the rest of class. I am therefore allowing additional late submissions of Assignment #3 under the door of 351 Upson until 8AM Monday morning (9/20).

 

 

 

Assignment #4 is Posted (9/17)

 

I apologize for the delay in posting Assignment #4, but it is up in the Assignments section. Take the time to read the assignment carefully and understand what you need to do before starting. Please feel free to email me with questions or email me to make an appointment if you need clarifications!

 

 

Assignment #3 Additional Info (9/11)

 

I received feedback which led me to realize that I wasn't totally clear on what I was expecting in Assignment #3. The last paragraph of the assignment description reads:

Finally, write a main function which utilizes the two classes you just wrote to test the dealership code. You should declare an instance of a Dealership, initialize it, set an appropriate inventory size, add cars to the inventory, print out the inventory and then free any dynamically allocated memory. You should try to add one more car than your maximum so that you can demonstrate that error condition being “caught”.

From the demos in Lecture #5, this may lead you to believe that you need to prompt the user to enter all of this information and get the inventory size from user input as well. This is not the case. For this assignment, there is no user interaction! Simply declare an instance of Dealership, initialize it, set an arbitrary inventory size (like 5), add more vehicles than you allocate space for (to show you are catching that), and then call Dealership::displayInventory() to display the inventory. That's it! Example output might look like this:

Error: no room left in inventory 
DEALER INVENTORY
=============================================
1. 1984 Honda Accord : 150000 miles, PRICE: $6999.99
2. 1990 Dodge Caravan : 124001 miles, PRICE: $7999.99
3. 1994 Ford F-150 : 89934 miles, PRICE: $4999.99
4. 2003 Mercury Mountaineer : 10554 miles, PRICE: $40999
5. 2002 Kia Sportage : 24355 miles, PRICE: $5990.05
A-03 has exited with status 0.

And this would be with having called Dealership::addToInventory() 6 times after setting the inventory size at 5 vehicles.

Hope this additional information helps, please feel free to make up your own car types, mileages and prices... Mine are probably way off so feel free to be a little more realistic!

Again, please email me with any questions.

 

 

Ron's Office Hours (9/1)

 

Ron will hold office hours in room 351 --Upson Hall from 4 - 5:30 on Wednesdays. If this time is not convenient for you, you can make an appointment with Ron by emailing him at rd29@cornell.edu.

 

 

STILL TIME TO ADD CS213! (8/30)

 

We've had one class already, but there is still plenty of time to add CS213 if you are looking for a course which covers the C++ language! Anyone adding the course will have extra time to complete assignment #1. Please contact Ron DiNapoli (CS213 Lecturer) for more details.

 

 

Web Site Fully Functional

 

The CS213 web site is now completely up. Please use the sidebar links to move around the site!