| CS183 -- Lab 1: Using Existing Classes |
|
|
OverviewThe purpose of this lab is to design and implement a stand-alone program that incorporates basic C++ programming concepts. These concepts, covered in CS-182, are prerequisites for CS-183. AcknowledgementThis lab was developed by Dr. Chris Taylor. The database file was generated from data available at www.freedb.org. ActivitiesIn this lab, you will:
Problem StatementYou have been asked to design and implement a C++ program to read a CD database file and search the database. This program will make use of an existing class library containing the single class Disc. The Disc class holds information associated with a single compact disc. The definition of this class is in the file disc.h, while the implementation is in disc.cpp. Both files are contained in disc.zip. You should not modify the Disc files, but you will need to add them to your project. Your program should:
Your program must have at least two functions in addition to main(), although you may choose to have more than two. One of these functions should read in the CD database and store the entries in a vector, and the other should write the output file. You may not use any global data objects (at file scope). Detailed InstructionsIf you have difficulties with any part of the lab, consult the instructor for assistance. The basic sequence is:
Lab report (due 11:00pm, the day prior to week 3 lab)The lab report should consist of the following:
As with any report you submit, correct spelling and grammar are required. In addition, your report should be submitted electronically following the Electronic submission guidelines. (You may wish to consult the sample report before submitting your report.) 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. Your grade will depend on quality of design and clarity of the code and documentation, as well as whether your program produces the correct results. If you have any questions, consult your instructor. |
| © 2001 Dr. Christopher C. Taylor | Office: CC-27C | Phone: 277-7339 | Last Updated: April 18, 2001 |
| I am responsible for all content posted on these pages; MSOE is welcome to share these opinions but may not want to. | |||