Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program that produces a simple personalized adventure game called Lost Fortune about a band of explorers that finds a stash of 750

Write a C++ program that produces a simple personalized adventure game called Lost Fortune about a band of explorers that finds a stash of 750 gold pieces. Start by asking the player for the following information: the number of explorers and the number of explorers lost in battle. The program should then use the information input by the player(this information will be different EACH time the game is played) to generate and print a basic adventure story. Here's a sample run of the input and output of the game (program) where the player entered the following input: 17 (for the number of explorers), followed by 13 (for the number of explorers lost).

Welcome to Lost Fortune!

Please answer the following questions for your personalized adventure:

Enter the number of Explorers:

17

Enter the number of Explorers Lost in Battle:

13

You bravely led 17 adventurers on a quest for gold.

The group fought a band of ogres and lost 13 members.

Only 4 survived.

The party was about to give up when they stumbled upon the

buried fortune of 750 gold pieces. The group split the loot evenly

and as the quest leader you kept the extra 2 gold pieces.

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

Accounting And Auditing Research And Databases Practitioner's Desk Reference

Authors: Thomas R. Weirich, Natalie Tatiana Churyk, Thomas C. Pearson

1st Edition

1118334426, 978-1118334423

More Books

Students also viewed these Databases questions

Question

How flying airoplane?

Answered: 1 week ago