CS1411 - Programming Principles I, Summer I 2005

Programming project 1

Problem Statement

As a problem you'll do the Programming Chalenge 7.17 from the book (page 167) with additional requirements.

Additional requirements

  • Please include a pseudocode for your program, similar to the ones done in the book
  • Include a UML activity diagram (flowchart) for your program, similar to the ones given in the book. You do not have to add comments, just the flow of control.
  • Please make sure that flowchart, pseudocode and program code match!

How it should be written

  • Your program should include your name in a comment!
  • Your programming style should be consistent (e.g. always use the same indentation)
  • The program should be written in C++ using only standard libraries (as we had in class)
  • The program must be your unique work. There should be no code sharing between students!

Notes on grading

You may use things that we have not had in class, you may add additional functionality, however: I can not grade you on creativity, just on the requirements. If you add extra functionality that does not work, it may bring your grade down.

Please make sure your program compiles. If it does not compile, this will cut down your grade a lot. It is better to pass in a version with less functionality than a not compiling one.


Mail your code (only your program, and only the .cpp file) to me and also bring a printout and the extra documentation to class on June 13 2005. If you cannot come to class either hand in the assignment early or make some arrangements with me. I will not accept just emailed programs or programs in my mailbox unless I have told you that it is ok to do so!

If the instructions are unclear or you have any other questions, please email me