Suggested Projects

 < Day Day Up > 



  1. STL: Use the stack STL component to write a program that emulates a hand-held calculator. Use reverse polish notation (RPN) to perform the operations.

  2. Queuing Theory: Study queuing theory. Use the STL component queue and component adapter priority_queue to write a program to model the teller operations of a bank. Answer the following question: If customers arrive at the rate of three per minute during the noon rush, how many tellers are needed to keep the wait in line to five minutes or less? Assume each transaction takes an average of three minutes normally distributed.

  3. Modify Robot Rat: Knowing what you know now about templates and the STL, what modifications can be made to RobotRat to make it even better? Perform those modifications. If you can't think of any, shame on you!

  4. Modify Employee: Revisit the Employee example given in chapter 13. Use the STL map component to store employee records using Employee number as the key.



 < Day Day Up > 



C++ for Artists. The Art, Philosophy, and Science of Object-Oriented Programming
C++ For Artists: The Art, Philosophy, And Science Of Object-Oriented Programming
ISBN: 1932504028
EAN: 2147483647
Year: 2003
Pages: 340
Authors: Rick Miller

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net