113k views
2 votes
In this program, you will create an object and display it. Create a class nerf Gun that includes data members model (string), range(int), capacity (int), and number of darts (int). Your class should have a constructor with three parameters (assume the toy is fully loaded when created). Assume that model and range is correct, but check to make sure capacity is <= 144. Provide a member function getModel(), get Capacity(), getupDateCount(), fire() and reload(quantity). The method fire() reduces the number of darts.The method reload(quantity) should increase the number of darts by the quantity provided but must ensure the number of darts do not exceed the toy’s capacity .

User ElvisLives
by
5.8k points

1 Answer

5 votes

Answer:

Range: 100 feet (unlimited with aimbot)

Capacity:50 rounds(unlimited with never ending clip modifier)

Members/Creators: Joe, Yura, Moe, Mike, and Hugh

Reload Time. .69 seconds

Step-by-step explanation:

User Michelange
by
6.0k points