Source Code

session7.py

import random
import math
# import counter
# import dog
# import bug
# import recipe

def main():
    print("Menu System")
    print("E1 - Example 1")
    print("Q - Quit")
    choice = input("Choice: ").upper()
    if choice == "E1":
        print("Example 1")
        # example1 function call
        example1()

    elif choice == "E2":
        print("Example 2")
        # example2 function call
        example2()

    elif choice == "E3":
        print("Example 3")
        # example3 function call
        example3()

    elif choice == "E4":
        # example4 function call
        example4()

    elif choice == "E5":
        # example5 function call
        example5()

    elif choice == "E6":
        # example6 function call
        example6()

    elif choice == "E7":
        # example7 function call
        example7()

    elif choice == "E8":
        # example8 function call
        example8()

    elif choice == "Q":
        print("Quitting!")
    else:
        print("Invalid choice")

# example1 function definition
def example1():
    print("Example 1")
    # create counter object

    # print the value of tally


    # call the click method on the object

# example2 function definition
def example2():
    print("Example 2")
    # create counter object
    

# example3 function definition
def example3():
    print("Example 3")
    # create dog object
    

    # print the object
    

# example4 function definition
def example4():
    print("Example 4")
    # create dog object
    

    # print spunky's attributes
    

# example5 function definition
def example5():
    print("Example 5")
    # create first bug
    

    # create second bug
   

    # create a third bug
    

    # add the bugs to a list
    
    
# example6 function definition
def example6():
    print("Example 6")
    # create object
    
    

# example7 function definition
def example7():
    print("Example 7")
    # create object
    


# call the main function, do not delete!
main()

counter.py

dog.py

bug.py

recipe.py

Last updated