Homework I

Due Sunday, April 10

Goals of this Assignment:

Problem I:

Write a C or C++ program named matedit, which serves as a matrix editor. With it one can create new matrices and save them to disk, and read in previously-saved ones and edit and save them to disk afterward. Here are the key requirements:

The TA will test your program on several examples of his choosing. But YOU must show the TA how to use the Linux od command to inspect the contents of your files.

Advice:

Independent programming skills:

You may be accustomed to having programming assignments that spell things out for you, in the sense of giving you an outline of the program, telling you what modules to break the program into and so on. Most CS professors in our department, and across the nation, do NOT make assignments this way, because you would never develop the skill to "see the big picture" to design programs on your own. So, here and in all my assignments, I simply state what the program is supposed to do, and it is up to you to design your code to make it work as required. Similarly, I do not typically tell you in advance where the pitfalls are; I simply warn that they exist, as I did above in my "lurking" remark.

As stated in our course syllabus, the TA will be happy to give you hints on getting started, etc., but you have to get as far as you can on your own before seeking our help, as that is where you truly learn. Again, this does NOT mean we are discouraging you from seeking help from us; on the contrary, we are happy to help you, but only after you've really thought about it.