Homework 01
Choose Your Own Adventure!
Due 09/11/2026 by 11:55PM
Objective:
Write a program that allows the
user to play a “Choose Your Own Adventure” game. In this game the user will be prompted with making decisions, which will then lead them to
different paths with different results until they reach the end.
Requirements:
Example Dialog:
*The following
Example Dialog demonstrates the interactions between a user and ONE possible
implementation of the required software’s front-end / user interface. The
software’s front-end / user interface may be implemented in MANY
different ways and will receive full credit as
long as it meets the most minimal of the above requirements. While you
may use the example dialog as a guide, it is strongly encouraged to create the
front-end / user interface in your own way. *
|
Key |
|
|
Unhighlighted Text |
Program’s Output |
|
Highlighted
Text |
User’s
Input |
Welcome to the land of Donkeydwarf! Will
you go to the inn, look for trouble, or talk to the shady
looking elf standing near the entrance? Enter “inn”, “trouble”, or
“elf”.
INN
You enter the musty inn and approach
the inn keeper. “Aye
you looking to rent a room? Yes or No?”, she rasps.
Yes
“The cheap rooms are filled up, but
if you do me a favor, then I’ll let you have a nice suite.” Enter true or
false.
true
“There’s this dragon ya see. He stole all
my pickles. I want him to pay! Go make
him pay!” You venture out and find the
pickle pilfering dragon. The dragon will
give you the pickles if you guess the number it is thinking between 1 and 10. Enter that number.
5
“That was not the number I thought
of”. The dragon roasts you alive and you
are consumed with the rest of the stolen pickles. THE END.