Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Just part 3, please!! C++ CIS2542 - Homework 02 Gorg vs Booy Battle - Part 1 - Meet the Booy The Gorg can no longer

image text in transcribed

Just part 3, please!! C++ image text in transcribedimage text in transcribed

CIS2542 - Homework 02 Gorg vs Booy Battle - Part 1 - Meet the Booy The Gorg can no longer be reasoned with! Negotiations cannot go well if you have no idea what the other side wants! They are so strong and vicious that ignoring them only means Earth is indirectly conquered somehow? It's not my movie plot, but my retelling is totally butchering it for sure. The Boox are friends of all peoples across the galaxy. Or so we are told. These beloved creatures want nothing more than peace and harmony, as long as it is their version of peace and harmony. It turns out okay for everyone in the end suppose. Maybe you can tell from the descriptions, but the Boox are quite the underdogs here! Captain Smek will need to simulate a Gorg battle many times over to see what their odds of victory would be. For the first part of this simulation, let's create the Boov class. Here are their specifications. BODY Every one of them can have a different name. There is no default name for a Booy. Every individual Boox starts with a health point value in the range [10-15) randomly selected When a Boov gets attacked: 1/4 of the time randomly, the attack does no damage 1/4 of the time randomly, the attack does 1 damage 1/2 of the time randomly, the attack will hit them and do (2-5) random damage Requirements 1) Create a Boov class type Private string member variable for name Private int member variable for health Public constructor which initializes both member variables Public get function for the name Public get function for the health value Public boolean function called IsDefeated() A Booy is defeated when health

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

Explain why households do not hold diversified portfolios.

Answered: 1 week ago

Question

Did you add the logo at correct size and proportion?

Answered: 1 week ago