CS-182 Lab 2: C++ Environment

Dr. Mark J. Sebern


CS-182 Main Page Schedule General lab information

Overview

The purpose of this lab is to become familiar with building console-mode applications in the C++ environment.

Activities

In this lab, you will:

Detailed instructions

If you have difficulties with any part of the lab, consult the instructor for assistance. The basic sequence is:

  1. Download the change maker program (file cmaker1a.cpp) from the Web. To do this in most browsers, right click on the file link, and select "save as". The browser will ask you for a location to store the file; on the warp network, you would normally create a directory on the F: drive. Ask the instructor for assistance, if needed.
  2. Build a project, following the instructions for your compiler.
  3. Test the program by running it and supplying different input values.
  4. Modify the change maker program to handle two-dollar ($2) bills and half-dollar ($0.50) coins, as well as the currency and coins that are already in the program. Add header comments with your name and a brief description of your modifications.
  5. Compile, build, and test the modified program.
  6. Submit the lab report (details below).

Lab report

The lab report should consist of the following:

You may submit this report in hard-copy form, or email it to the instructor. If you choose email, it may be convenient to put the textual portion of the report directly in the message, and to attach the modified source file. Ask the instructor for the details on this procedure if you wish to try it. Be sure to keep copies of all your files, in case something gets lost; it may be wise to keep a diskette backup as well.

The lab report is due by the beginning of the following lab period, though you are encouraged to submit it sooner if you can. If you have any questions, consult the instructor.


This page was last updated on August 27, 1997; send comments to Mark Sebern.