Question: This program simulates an alchemist mixing together different elements to see what happens. You have three different elements to mix together: earth, fire, and water.
This program simulates an alchemist mixing together different elements to see what happens. You have three different elements to mix together: earth, fire, and water.
Depending on the elements they provide, print out one of three responses:
If they entered the same element twice:
o Print out That just makes more
If they entered two known elements (earth, fire, or water):
o Print out
(where is the secondary element created)
Fire and water creates steam
Fire and earth creates lava
Water and earth creates mud
If they enter anything else:
o Print out
Your program only needs to work with lowercase letters; you do not need to worry about handling capitalization.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
