Monday
November 24, 2014

Homework Help: C++ Programming

Posted by Robert on Monday, April 7, 2014 at 12:55pm.

Create a class that holds robot warriors. Each has a string for their
name, a number of hit points (an float), armor (a defensive modifier(an int)), and weaponry (an offensive
multiplier(another int)). You will create 5 robots with a random number in each category (500 – 100 hit
points, 1 – 5 armor, 4 – 8 weaponry) and give them each a name. You will then have the five face off in
a little robo-warfare. For now, this just means that you will “sort” the list of objects by the highest hit
points, then by armor, then by weapons if needed. We will develop this further later on. Print out the
list as the output.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

Programming - The code below shows some of the text for a class called City. Now...
Programming II - Create a test program that defines and uses both the default ...
Programming - Here is the source code for the Kitty class: public class Kitty { ...
c# programming - Trying to create a program using following algorithms. ...
Java Programming - I need to create a pseudocode for the follwing application: ...
programming - m trying to create an arraylist that's sorted but I have no idea ...
programming - Design a class named Book that holds a stock number, author, title...
computer science - I need to see if someone can hepl me with a c# programming ...
C++ Programming - create a class called DataSet. This class will have a default ...
computer science - i have two numbers... 1564656 1981676 i want to check if the ...

Search
Members