|
course.wilkes.edu/CS125Labs |
||||||
Hands On C++: Project 6
Objectives
1. Practice designing programs that use loops.
IntroductionYour instructor will assign you one of the following projects, each of which uses loops controlled by conditions.
Projects6.1. Write a program that will read a sequence of numbers from the keyboard, and display the minimum, maximum, average, and range of the entered values. Make the input step "fool-proof".
6.2. Extend
6.3. Write two "graphics" functions:
* * * * * * XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
* * * * *
* * * * * * XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
* * * * *
* * * * * * XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
* * * * *
* * * * * * XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
* * * * *
* * * * * * XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Try and draw your picture efficiently
(i.e., using loops to minimize the number of statements).
Feel free to create additional "graphics" functions.
6.4. Build a "police sketch artist" program as described in Hands On C++: Project 5, but write a dymanic program that lets the user experiment with different combinations of facial parts in a single execution. (Hint: Control the program using a loop. Start with a 'blank' face. Allow the user to modify this face using a two-level hierarchical menu, with the first level allowing the user to select which facial part they want to modify (i.e., a menu of menus), and the second level allowing the user to select from among the choices for that particular facial part.)
Turn In:
Don't forget to clean up your directory when you are all finished...
|
Home Membership
|
|||||
|
Last update: Wednesday, August 23, 2000 at 2:05:52 PM. |
||||||