CS197C Homework Assignments
First, some administrative details about the submission and evaluation process for the homeworks. The homeworks would consist
of two components. (1) Some simple questions which would not requires any compilation or programming. These questions you must
write up on paper and submit it in class (usually the deadline of assignment submission would be the beginning of the class
lecture). I will manually evaluate this part of the homeworks and would also put up the grades in your accounts. (2) There
would almost definately be at least one programming assignment per homework. You would have to write some code and submit
in your edlab account. Instructions may vary depending on the homework. However, some general information about using
edlab accounts can be found here.
The grading scheme for the homeworks is given here.
Homework # 1, Due : Wednesday, 6th February (In class)
The questions for the homework can be found here.
A link to the Makefile can be found here
Submission Procedure : Make sure that you have an edlab account. If you do not have an edlab account although you have registered for the course, send me an email immediately. The way you will use edlab can be found here. There are two questions in the homework which requires coding (question 2 and question 3).
You should first create a directory in your edlab account (/courses/cs100/cs197c) called HW1. The source code for problem 2 should be called hw1_2.cc and
for problem 3 should be called hw1_3.cc. Place the two source files in the HW1 directory. I will place a Makefile in the common directory (/courses/cs100/cs197c/cs197c/HW1). Copy the Makefile to your HW1 directory. Compile hw1_2.cc using
"make hw1_2" and hw1_3.cc using "make hw1_3.cc". I am providing you with the
Makefile for this assignment. From next homework onwards you would have to write your own Makefile, so make sure you understand the syntax. Running "make hw1_2" will create an executable called "hw1_2". You can run the executable using "./hw1_2". The same procedure holds for hw1_3. You would have to submit a hard copy of the assigment (with answers to all the problem written down) in class on Wednesday 6th of February.
Notes : Send me an email if anything is unclear in the homework. Come and talk to me if you facing problems with the coding assignment. Please do not wait till the last minute for feedback. Start early !!.
Homework # 2, Due : Wednesday, 13th February (In class)
The questions for the homework can be found here.
Submission Procedure : Make sure that you have an edlab account. If you do not have an edlab account although you have registered for the course, send me an email immediately. The way you will use edlab can be found here. There are two questions in the homework both of which require you to write code. You should first create a directory in your edlab account (/courses/cs100/cs197c) called HW2. The source code for problem 1 should be called hw2_1.cc and for problem 2 should be called hw2_2.cc. Place the two source files in the HW2 directory. I want you to write a Makefile to compile these sources. Place your Makefile in directory HW2. If you do not submit your Makefile I will take off 5 points from your homework (Sorry :( ).
Notes : Send me an email if anything is unclear in the homework. Come and talk to me if you facing problems with the coding assignment. Please do not wait till the last minute for feedback. Start early !!.
Homework # 3, Due : Wednesday, 20th February (In class)
The questions for the homework can be found here.
Submission Procedure : Make sure that you have an edlab account. There are three questions in the homework last two of which require you to write code. You should first create a directory in your edlab account (/courses/cs100/cs197c) called HW3. The source code for problem 2 should be called hw3_2.cc and for problem 3 should be called hw3_3.cc. Place the two source files in the HW3 directory. I want you to write a Makefile to compile these sources. Place your Makefile in directory HW3. If you do not submit your Makefile I will take off 5 points from your homework (Sorry :( ). You need to submit the hard copy of all your answers when you submit your assignment in class.
Notes : Send me an email if anything is unclear in the homework. Come and talk to me if you facing problems with the coding assignment. Please do not wait till the last minute for feedback. Start early !!.
Homework # 4, Due : End of Friday, 29th February
The questions for the homework can be found here.
Submission Procedure : Make sure that you have an edlab account. There are two questions in the homework which require you to write code. You should first create a directory in your edlab account (/courses/cs100/cs197c) called HW4. There should be three pieces of code for each question. For question 1 the header file should be called hw4_1.h, and the class implementation file should be called hw4_1.cc. The third file should be your driver file called StringTester.cc. Similarl naming convention should be followed for the second question. Place the six source files in the HW4 directory. I want you to write a Makefile to compile these sources. Place your Makefile in directory HW4. If you do not submit your Makefile I will take off 5 points from your homework (Sorry :( ). Just keep your sources in your accounts on edlab. You do not need to submit a hard copy. I will print out your homeworks for you.
Notes : Send me an email if anything is unclear in the homework. Come and talk to me if you facing problems with the coding assignment. Please do not wait till the last minute for feedback. Start early !!.
Homework # 5, Due : End of Friday, 7th March
The questions for the homework can be found here.
Submission Procedure : Make sure that you have an edlab account. There is one questions in the homework which requires you to write code. You should first create a directory in your edlab account (/courses/cs100/cs197c) called HW5. There should be three pieces of code for the question. The header file called Vector.h, implementation file called Vector.cc and the driver file called VectorTester.cc. You should also add your Makefile to the directory. If you do not submit your Makefile I will take off 5 points from your homework (Sorry :( ). Just keep your sources in your accounts on edlab. You do not need to submit a hard copy. I will print out your homeworks for you.
Notes : Send me an email if anything is unclear in the homework. Come and talk to me if you facing problems with the coding assignment. Please do not wait till the last minute for feedback. Start early !!.
Homework # 6, Due : Wednesday in class, 26th March
The questions for the homework can be found here.
Submission Procedure : Make sure that you have an edlab account. There are two questions in the homework which requires you to write code. You should first create a directory in your edlab account (/courses/cs100/cs197c) called HW6. The instructions for the program submissions are in the questions themselves. You should also add your Makefile to the directory. If you do not submit your Makefile I will take off 5 points from your homework (Sorry :( ).
You need to printout the solutions for me and submit the solutions to me in class.
Notes : Send me an email if anything is unclear in the homework. Come and talk to me if you facing problems with the coding assignment. This is a slightly harder assignment. Please do not wait till the last minute for feedback. Start early !!.
Homework # 7, Due : Friday, 4th April
The questions for the homework can be found here.
Submission Procedure : There is only one question in the homework which requires you to write code. You should first create a directory in your edlab account (/courses/cs100/cs197c) called HW7. You should also add your Makefile to the directory. If you do not submit your Makefile I will take off 5 points from your homework (Sorry :( ). You do not need to printout the solutions. I will evaluate it myself. You can name your files as hw7.cc and if you are using any header file you can name it hw7.h