C++ Programming

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.

  1. 👍 0
  2. 👎 0
  3. 👁 284

Respond to this Question

First Name

Your Response

Similar Questions

  1. help me pls :(

    1. m – 7 < 6 (1 point)m < –13 m < 1 m < –1 m < 13 2. n – 8 > 5 (1 point)n > 13 n > 3 n > –3 n > –13 3. p + 5 < 10 (1 point)p < –15 p < 5 p < 15 p < –5 4. The science class is taking a trip to the Science Center.

  2. PHYSICS

    To see how two traveling waves of the same frequency create a standing wave. Consider a traveling wave described by the formula y1(x,t)=Asin(kx−ωt). This function might represent the lateral displacement of a string, a local

  3. world history

    Which of the following groups belonged to the Sumerian middle class? A. government officials B. warriors C. merchants D. enslaved people I think the answer is C. Am i correct?

  4. programming

    Design a class named Book that holds a stock number, author, title, price, and number of pages for a book. Include a method that sets all the data files and another that prints the values for each data field. Create the class

  1. Physics

    A distance of 5.00 cm is measured between two adjacent nodes of a standing wave on a 20.0 cm long string. A) In which harmonic number is the string vibrating? B) Find the frequency of this harmonic if the string has a mass of 1.75

  2. English

    14. Read the following lines from Edgar Allan Poe's "The Raven" And the Raven, never flitting, still is sitting, still is sitting On the pallid bust of Pallas just above my chamber door; And his eyes have all the seeming of a

  3. Java Programming

    1. What is Java SE? A. Java Standard Edition* B. Java Software Editor C. Java Scientific Edition D. Java Software Emulator 2. Which of the following is the correct header for the main method of a Java program? A. public static

  4. maths

    A bucket holds 10.5litters. A cup holds about 320ml. Estimate the number of cups of water that the bucket holds In 2008,the value of plot of land is 23800. It value raise at about 10percent each year. Estimate its value in 2009 to

  1. Java Programming

    1. Which of the following is not the name of a Java wrapper class from the Java API? A. Byte B. Int C. Long D. Boolean* 2. Which of the following statements will cause a compiler error? A. Integer i = new integer ( ) ;* B. Integer

  2. geometry

    Kendra is flying a kite 35 feet in the air. The angle of depression from the kite to where Kendra holds the string is 32 degrees. If Kendra holds the string 3 feet off the ground, what is the distance from her hands to the kite?

  3. Math

    A bucket holds 10.5litters. A cup holds about 320ml. Estimate the number of cups of water that the bucket holds

  4. math

    I have 2 questions that i need help on, please help! Thank you and God bless you. 1. A shoebox holds a number of disks of the same size. There are 5 red, 6 white, and 7 blue disks. You pick out a disk, record its color, and return

You can view more similar questions or ask a new question.