# In Class Code

#change.py

# A program to calculate change

def main():

print(“Change Counter”)

print()

print(“Please enter the count of each coin type”)

quarters = eval(input(“Quarters: “))

dimes = eval(input(“Dimes: “))

nickels = eval(input(“Nickels: “))

pennies = eval(input(“Pennies: “))

total = quarters * .25 + dimes * .10 + nickels * .05 + pennies * .01

print()

print(“The total value of your change is “, total)

main()

————————————

#fact.py

import math

def main():

n = eval(input(“Please enter a whole number: “))

fact = math.factorial(n)

print(“The factorial of “, n, ” is “, fact)

main()