| CS150 -- Lab 6: Arabian Legends |
|
|
OverviewIn this lab, you will generate a table displaying information related to an old Arabian legend. AcknowledgementThis laboratory assignment is based on an exercise from Program Development and Design Using C++, 2nd ed. by Gary Bronson. ProcedureA story is told of a wealthy king who agreed to give a beggar one cent the first day. For sixty-three additional days the king agreed to double the amount given on the previous day. Write a program that displays the amount of money the king must pay on each of the sixty-four days. Your program is required to make use a vector to store the amount paid each day. Your program should display the results as follows: Day Amount Paid === =========== 1 0.01 2 0.02 3 0.04 . . . . . . 64 . Do you think this king was an MSOE graduate? Lab Report (due beginning of week 9 lab)The lab report should be self-contained. That is, it should be possible for someone to understand what you did and why without seeing anything other than your report. Your report should include:
Your report should be typed, and as with any report you submit, correct spelling and grammar are required. 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 the instructor. |
| Office: CC-27C, Phone: 277-7339 |
| Last Updated: October 23, 2000 © 2000 Dr. Christopher C. Taylor |