A C++ program:
You are working as a programmer designing a space ship weaponsystem for the newly
forced
Space Force
. The weapon system is a generic weapon housing that can fit anumber
of different weapons that are all controlled by a ship pilot inthe same way. Most im-
portantly, is the emphasis on safety. During combat, the weaponsystems cannot become
unreliable or fail lest the pilots be put in unnecessary danger.Therefore you will need to
provide mechanisms to combat this.
2.2.1 weaponMount
This is the mounting system for the weapons. It can store anumber of weapons and
control them as well as handle problems. It is defined asfollows:
2
weaponMount
-weapons:weapon **
-numWeapons: int
—————————
+weaponMount(numWeapons:int,
PayPal Gateway not configured
PayPal Gateway not configured