- overrriden constructor (string n, int b, int m, int ml)
- shoot : minus 1 bullet and notifies the user to reload if there are no bullets in the magazine
- reload :
fills the magazine with the number of bullets needed to fill it
example :
magazine has 14, it reloads 6 bullets to fill the magazine
if your you only have 3 bullets left then it reloads only 3 bullets in the magazine
reloaded bullets are subtracted to the bullets member data
- show details
outputs the
name
number of bullets left
magazine / magazineLimit
of the robot.
I can see that but please it'll be highly appreciated for someone who can create a program. This is my last sample work before i shift to Business(Dropping Web Development this week)
I still need it, i can use the topic "Classes" for creating a similar problem to my question but in Business form. That's the last shot i got, if someone can make a code out of it. I highly appreciate your help for this. Thanks :)
You have wasted a lot of time begging people. If you had used that time to actually try to create code you might have already done the assignment, or had a framework of code you could post that might entice people to help you.