Suggested Projects

 < Day Day Up > 



  1. Convert Engine Simulation: Convert the aircraft engine simulation code presented in chapter 12 to use abstract base classes. Essentially, all components should derive from an abstract base class. The Engine itself could be abstract and be an aggregate of abstract component types. Refer to the fleet simulator example in this chapter for an example of designing with abstract base class aggregates.

  2. Automobile Sensor System: Design and create an automobile sensor system. The design may me similar to the aircraft engine design in the previous project. Add another component called Computer that monitors the various engine components via the sensors.

  3. Extend Fleet Simulation: Extend the fleet simulation example presented in this chapter. Add several more weapon and plant types. Create several vessels using your new weapons and plants and test their functionality.

  4. Credit Card Validation System: Design and implement a credit card validation system. Start by writing a description of the various components that may be required to implement the system. From this description pick out potential objects and the messages that would need to be sent between them. Model your design in UML if you have a UML design tool.

  5. Fuel Oil System: Design and create an oil tanker ship tank fill, drain, and level control and indicator system. Assume your tanker ship has six oil cargo compartments as shown in the diagram below.

    click to expand

    Each compartment can be filled and drained from either the starboard or port oil service header. The oil service system consists of 16 valves, 2 pumps, and 6 tank level indicators. The values are remote controlled as are the pumps. The valves can be either open or shut. The pumps can be on or off. When a pump is on, it can be in one of two speed states: slow & fast, and one of two direction states: drain & fill. When running in the drain direction the pump is taking a suction from the tank side. When running in the fill direction it is taking a suction from the hull side.

    Now, to fill oil cargo tank A quickly you could open valves 1, 2, 14, 16, 13, & 15, start pumps P2 and P4 in the fast/ fill mode and monitor the tank level indicator on cargo tank A.

    Assume a tank capacity of 75,000 gallons and pump flow rate of 1000 gal/min. in fast mode.

  6. University Enrollment System: Create a university student enrollment tracking system. Identify the classes you will need. Reuse any code from this chapter you deem necessary. Research the iostream file input and output classes to save student and course data to disk for later use.



 < 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