Question: **** CREATE A PROGRAM USING PYTHON **** You have two apple trees in your backyard. You want to create a program that will display a

**** CREATE A PROGRAM USING PYTHON ****

You have two apple trees in your backyard. You want to create a program that will display a graph of how many apples your trees have lost in one day. Trees lose apples based on two factors: has the tree turned color yet and is it windy. If it is windy and the tree has turned color then your tree will lose 10 apples every 6 hours. If it is windy and your tree has not turned color, your tree will lose 3 apples every 6 hours. If it is not windy and your tree has turned color, your tree will loose 5 apples every 6 hours. Finally if it is not windy and your tree has not turned color, your tree will lose 1 apple per 6 hours. Your program, therefore, needs to ask the user if it is windy and if your two trees have turned color. The output for the program will be the display of a graph.

Your output should look similar to this:

Is it windy today (yes or no): no Has your first tree turned color yet (yes or no): no Has your second tree turned color yet (yes or no): yes 
Tree 1 | Tree 2 ========================  *** | ***  *** | ***  *** | ***  *** | ***  *** | ***  | ***  | ***  | ***  | ***  | ***  | ***  | ***  | ***  | ***  | ***  | ***  | ***  | ***  | ***  | ***  | *** 

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!