122 homework week 1


Reading

It is important to understand that programming requires the ability to draw skills from a wide variety of sources. In addition to learning the C++ language, you will also need to learn to use the tools of the trade such as emacs and UNIX. Some programs may also require you to search for "non CIS" information, such as temperature conversion formulas. To help you get used to this approach, we'll point out some areas where you may find useful information.
  1. Stay up to date with the readings listed on the syllabus.
  2. Refer to the links in lab1 as needed
  3. Refer to the class help pages as needed
  4. Check the class FAQ. We post answers to common questions here

The assignment

  1. Use Emacs to edit/compile/execute a program named dollars.cpp that solves problem 19, p. 62.
  2. Use Emacs to edit/compile/execute a program named hours.cpp that solves problem 21, p. 62.

Turn-in

You must send me an email with electronic copies of the source code (but not output) attached.
You must also turn in a paper copy of your source code AND the results of executing your code.

NOTE: submitting results that your code could not have produced is cheating. If you cannot get your code to compile or to run properly, simply submit a short paragraph describing what it is doing, including any compile errors you may be getting.