Question: Program is to be done in C++ Write the algorithm and its corresponding program with the following requirements to demonstrate a tournament against some monsters.

Program is to be done in C++

Write the algorithm and its corresponding program with the following requirements to demonstrate a tournament against some monsters.

  • A switch to choose a weapon that does a certain amount of damage
  • A for loop that runs 5 times and adapts the difficulty of the monster
  • A random generator assigns points to a monster
  • A life points accumulator that awards the points for killing a monster
  • A decision making process that sees if your points plus the weapon is enough to kill a monster, or vice versa
  • A congratulatory remark as they win each battle

*This is a quick example. Your homework should be better.

Greeting, sir lancelot

You have 173000 points.

Choose a weapon from the following

A= sword of greyskull

B= wand of gandolf

C= battle of Gollum

A

By choosing the sword of greyskull you have defeated the monster

Greeting, sir lancelot

You have 173000 points.

Choose a weapon from the following

A= sword of greyskull

B= wand of gandolf

C= battle of Gollum

d

you have lost

*This is a quick example. Your homework should be better.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!