Thursday, September 30, 2010

Mid-Term Opportunity Session, Thursday October 14

The Mid-term Opportunity Session is scheduled for Thursday, October 14th.  Review will be held the first week of October.

Monday, September 27, 2010

WSU Student Rachel Beauchene Pepsi refresh projects needs your vote

Please take 2 minutes to vote for a fellow students Pepsi refresh project.  Voting ends on 9/30/2010 so please vote as soon as you can AND pass on the link to all your contacts.

http://www.refresheverything.com/lacrossespayandrescue

Thursday, September 23, 2010

Part 2 of Assignment due on Thursday, September 30

Please note the due date change of Thursday, September 30th
Parts 1 and 2 are due on Thursday, September 30th

Part 2:
Create a class called Queue - you can use inheritance or containment of the VarVec class for the queue.

Class Queue
variables:  front, back, count
Methods: add, remove, print, isfull, isempty
Default constructor queue(int s = 3)

The queue class is a circular queue, put new items onto the back of the queue and take things off the front of the queue.

Wednesday, September 22, 2010

Part 1 of Assignment due for Tuesday, Sept 28

Part II of this assignment will be given in class on Thursday, Sept 23.


Write a program called VarVec
.h file
_______________________________________
class VarVec
{
private:
     int size;
     double *pD; // * indicates a pointer to a double


public:
    VarVec(int sz = 5); // default size is 5 for this assignment, most commonly used size is 10

void putValue(int index, double d)
void print( ) // walks down each element of the array and displays

~VarVec ( ); //dstrcr

void resize (int ns);// change the size of the pD array, if smaller than original, just don't copy the end elements or you could just update the size, if larger than original, copy all elements from old array to new array, update pointer, change size variable and destruct the old array.
___________________________________________

.cpp file
______________________________________________________
VarVec::VarVec(int s)
:size(s), pD(new double[s]) {

size = s;
pD = new double[s];

double VarVec::getValue(int index){
   if(index<0 || index > size -1)
      cout<< "some error message";
      exit(); // to cancel the program
return *(pD + index);
_______________________________________________________

Monday, September 13, 2010

Assignment 2 Due Thursday, Sept 16

Some of the notes I have for the assignment are:
Three constructors:
Rectangle(Point , Point)
Rectangle(Point           Point)//with default values
Rectangle(pt l   w) //

Methods to be sure and include:
void draw( ) //draw on screen
print( )
void erase( ) //re-draw but put blank in for border
move(Point neworigin)

// must do one or more of the resize methods
resize(Point newOrigin, Point newCorner)
resize(Point newCorner)
resize(Int l, Int w)

Wednesday, September 1, 2010

Make sure your development environment is setup by class on 9/2

Follow the instructions handed out in class on Thursday 8/26/10 to ensure that the C++ Builder 5 environment is setup and working. 

Windows 7 and C++ Builder 5:
There have been 2 class members who have been able to C++ Builder 5 installed on their machines with Windows 7 OS - I think successfully.  If you have problems getting this to work for you, post the question(s) here and I'm sure someone in the class can help you resolve the install issue.