Assigned Date: Thursday, Oct. 16, 2008
Due Date: Tuesday, Oct. 28
Due Time: 1:40pm
Last modified on October 21, 2008, at 04:09 PM (see updates)
To get acquainted with variables, data types, arithmetic expressions, and I/O operations in Python.
Write a program that produces a personalized adventure about a band of explorers that find a stash of gold pieces. The player should be asked for the number of explorers, the number of explorers lost in battle, the name of the quest leader, and how many gold pieces were found. The program should then use the information to fill out a basic adventure story.
For a sample run, see our textbook (p. 52). Remember to add the number of the found gold pieces as another input.
Note how the program calculates the remaining coins, based on the input provided by the user.
(The above is based on exercise 5 in ch. 2 of our textbook.)
All identifiers should be meaningful.
The following comments should appear in your program as the first lines in the file. Items in angle brackets are either to be removed or replaced with what is specified within the brackets:
To submit your homework:
Your assignment will be graded based on its documentation (comments, meaningful identifiers), correctness, subject line of your email, and, in general, how well you followed the above instructions.