Re-do the VarVec and the Queue classes as templated classes - start the assignment with the VarVec and/or Queue classes that had the [ ] operator assignment.
Test Cases - use existing test cases with doubles THEN once those are working then test maybe with point class such that varVec and/or queue can hold point objects.
Make sure VarVec template is in 1 .h file not in the .cpp file
Thursday, November 4, 2010
Saturday, October 30, 2010
November 11 - December 9 class schedule
Thurs 11/11 NO CLASSES Veteran's Day
Tues 11/16 Start Language Presentation
Thurs 11/18 Language Presentations continue
Tues 11/23 Language Presentations
Thurs 11/25 No class
Tues 11/30 Group Project Presentations Begin
Thurs 12/2 Group Project Presentations continue
Thurs 12/9 Language Papers and group project papers are due
Thurs 12/9 Final Opportunity Session
Tues 11/16 Start Language Presentation
Thurs 11/18 Language Presentations continue
Tues 11/23 Language Presentations
Thurs 11/25 No class
Tues 11/30 Group Project Presentations Begin
Thurs 12/2 Group Project Presentations continue
Thurs 12/9 Language Papers and group project papers are due
Thurs 12/9 Final Opportunity Session
Tuesday, October 26, 2010
Thursday, October 21, 2010
Individual Paper Topics
Papers are to be 5-7 pages in length, include why the language is important, areas of application for the language, why the language is useful and key features of the language. (Of course the above applies if the paper topic is a language as not all of the options are languages). Be sure and sign up on the Paper Topic sign up sheet that Hugh has to ensure the topic has not already been taken.
- Pearl(2)
- Lisp
- PHp
- C#
- Python
- .net(2)
- E
- Prolog
- JavaScript(2)
- Ruby
Thursday, October 7, 2010
Homework Assignment Due October 21, 2010
Polymorphism Assignment from our class notes, page VFun/Poly 9
Abstract base class called Figure, with int dem
Constructor, no destructor
Methods: area, objectType
concrete classes derived from the Figure class are:
Square - dem is the side
Circle - dem is the Radious
Eq. Triangle - dem is the side
Abstract base class called Figure, with int dem
Constructor, no destructor
Methods: area, objectType
concrete classes derived from the Figure class are:
Square - dem is the side
Circle - dem is the Radious
Eq. Triangle - dem is the side
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.
Wednesday, September 29, 2010
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
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 30thPart 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
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)
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.
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.
Thursday, August 26, 2010
Want to be a contributor/author of this blog?
If you would like to be a contributor/author of this blog, please send me an email request at:
slka46@gmail.com
slka46@gmail.com
Welcome to the WSU CS415 Course Blog
I have created this blog spot as a way to communicate with fellow classmates about this course. I hope you find this communication vehicle helpful during the semester.
Subscribe to:
Comments (Atom)