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 than you need! (where is the element they entered)

If they entered two known elements (earth, fire, or water):

o Print out and combined make

(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 and didnt combine.

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!