This isn't an Homework, i just need a volunteer to code for me simply using C++. I highly appreciate on a user who can answer this. Please post the codes via comment section or send the CPP file on my email ronjiee@yahoo.com
1. Create a class named Robot
with the following member data :
- string name
- int bullets
- int magazine
- int magazineLimit
- 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.
You posted this three times in three different sections of the forum. That doesn't increase the chance someone will help you.
This is actually almost definitely homework. That, or a basic test of your programming ability. You yourself admitted in another post that you're currently in Web Development (side note, you're dealing with C++ in Web Development? Interesting) and planning to switch to Business.
As someone in another thread said, this isn't particularly hard to do. Copying C++ examples from the web and editing them a little would be enough to solve this. I strongly encourage you to actually try before panhandling for a solution.