Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write a python code to get out put like this Welcome to the Animal Accumulator. Animals cost and generate income according to their name length
write a python code to get out put like this "Welcome to the Animal Accumulator.
Animals cost and generate income according to their name length eg a Zebra costs
Each day, animals generate income based on luck. Sometimes they escape.
You can buy new animals with the income your animals generates.
Would you like to load your animals from animals.txt Yn y
Loaded.
You start with these animals:
Fox, Hippo, What Will I Buy With All These Income$ :
After days, you have animals and your total income is
Wait
Display animals
Add new animal
Quit
Choose: w
Today's lucky number is
Sadly, your Fox has escaped.
Hippo earned What Will I Buy With All These Income$ :) earned
After days, you have animals and your total income is
Wait
Display animals
Add new animal
Quit
Choose: W
Today's lucky number is
Sadly, your What Will I Buy With All These Income$ :) has escaped.
Hippo earned
After days, you have animals and your total income is
Wait
Display animals
Add new animal
Quit
Choose: w
Today's lucky number is
Sadly, your Hippo has escaped.
After days, you have animals and your total income is
Wait
Display animals
Add new animal
Quit
Choose: d
No animals.
After days, you have animals and your total income is
Wait
Display animals
Add new animal
Quit
Choose: q
You finished with no animals.
After days, you have animals and your total income is
Would you like to save your animals to animals.txt Yn N
Thank you for playing the Animal Accumulator :)
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