Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started