subject

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 get 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 .

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 07:30
Write a program that inserts the digits of an integer into an array in originalorderfollowed by reverse order. first, promptthe user to enter a positive integer(> 0). determine the number of digits of the integer. create a dynamically allocated integer arrayof a size twice the number of digits.now insert the digits in original order which will occupy half of the array. then, insert the digits in reverse order.finally, output thedigits in thearray.use at least two functions to organize your program.
Answers: 3
question
Computers and Technology, 23.06.2019 09:00
What provides an array of buttons for quick access to commonly used commands and tools
Answers: 1
question
Computers and Technology, 23.06.2019 16:50
15: 28read the summary of "an indian's view of indian affairs."15 betterin "an indian's view of indian affairs," it is asserted that conflicts could be reduced if white americansunderstood native americans..pswhich of the following would make this summary more complete? eleo the fact that chief joseph believes the great spirit sees everythinthe fact that chief joseph was born in oregon and is thirty-eight years oldo the fact that chief joseph states that he speaks from the hearthehehethe fact that chief joseph of the nez percé tribe made this claimebell- ==feetle===-felsefe ==submitmark this and retum.=
Answers: 3
question
Computers and Technology, 23.06.2019 17:00
*! 20 points! *jeff wants to create a website with interactive and dynamic content. which programming language will he use? a. dhtml b. html c. css d. javascript
Answers: 1
You know the right answer?
In this program, you will create an object and display it. create a class nerf gun that includes dat...
Questions
question
Biology, 24.11.2020 05:10
question
Mathematics, 24.11.2020 05:10
question
Mathematics, 24.11.2020 05:10
question
Chemistry, 24.11.2020 05:10
question
English, 24.11.2020 05:10
Questions on the website: 13722363