Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Samsung Galaxy S23 Ultra Comprehensive User Manual

Authors: Leo Scott

1st Edition

B0BVPBJK5Q, 979-8377286455

More Books

Students also viewed these Databases questions