Monday
March 2, 2015

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

c# programming - Trying to create a program using following algorithms. ...
programming - m trying to create an arraylist that's sorted but I have no idea ...
Programming - The code below shows some of the text for a class called City. Now...
Programming Language - Create a method called countSelected, which takes an ...
Computers - //program that puts two lists in order in one single list with all ...
Computer Science - //program that puts two lists in order in one single list ...
computer science - Im trying to create an arraylist that's sorted but I have no ...
computer - construct function prototypes for descriptions given below: 1) Rarb...
Computer Science - public class RandomPhoneNumber { public static void main(...
Java Programming - I need to create a pseudocode for the follwing application: ...

Members