##InputQuestions##
Month=str(input("What Month:"))
Category=str(input("Which Accounting Category:"))

##Arithmetic Operations##
def Add(num1,num2,num3,num4,num5):
    return (num1 + num2 + num3 + num4 + num5)
def subtract(num1,num2,num3,num4,num5):
    return(num1-num2-num3-num4-num5)
def multiply(num1,num2,num3,num4,num5):
    return(num1 * num2 * num3 * num4 * num5)
def divide(num1,num2,num3,num4,num5):
    return(num1 / num2 / num3 / num4 / num5)

##JanuarySetup##
January_Income_List = [
    'January - Paycheck/Salary',
    'January - Other Income',
    'January - ATM Deposits',
    'January - Transfers',
    'January - Reimbursements']  
January_Expense_List = [
    'January - Automotive Expenses',
    'January - Miscellaneous Expenses',
    'January - Food Expenses',
    'January - Medical Expenses',
    'January - Clothing Expenses']
if Month == 'January' and Category == 'Income':

    ##Input configuration for Monthly Income##
    January_Primary_Income = float(input("January Primary Income:"))
    January_Other_Income = float(input("January Other Income:"))
    January_ATM_Deposits = float(input("January ATM Deposits:"))
    January_Transfers = float(input("January Transfers:"))
    January_Reimbursements = float(input("January Reimbursements:"))

    ##Arithmetic Operations##
    print("Select operation.")
    print("1.Add")
    print("2.Subtract")
    print("3.Multiply")
    print("4.Divide")
    operation = input("Enter operation(1/2/3/4): ")
if Month == 'January' and Category == 'Expenses':
    
    ##Input configuration for january monthly expenses##
    January_Automotive_Expenses = float(input("January Automotive Expenses:"))
    January_Miscellaneous_Expenses = float(input("January Miscellaneous Expenses:"))
    January_Food_Expenses = float(input("January Food Expenses:"))
    January_Medical_Expenses = float(input("January Medical Expenses:"))
    January_Clothing_Expenses = float(input("January Clothing Expenses:"))

    ##Arithmetic Operations##
    print("Select operation.")
    print("1.Add")
    print("2.Subtract")
    print("3.Multiply")
    print("4.Divide")
    operation = input("Enter operation(1/2/3/4): ")

##FebruarySetup##
February_Income_List = [
    'February - Paycheck/Salary',
    'February - Other Income',
    'February - ATM Deposits',
    'February - Transfers',
    'February - Reimbursements']
February_Expenses_List = [
    'February - Automotive Expenses',
    'February - Miscellaneous Expenses',
    'February - Food Expenses',
    'February - Medical Expenses',
    'February - Clothing Expenses']
if Month == 'February' and Category == 'Income':

    ##Input configuration for february monthly income##
    February_Primary_Income = float(input("February Primary Income:"))
    February_Other_Income = float(input("February Other Income:"))
    February_ATM_Deposits = float(input("February ATM Deposits:"))
    February_Transfers = float(input("February Transfers:"))
    February_Reimbursements = float(input("February Reimbursements:"))

    ##Arithmetic Operations##
    print("Select operation.")
    print("1.Add")
    print("2.Subtract")
    print("3.Multiply")
    print("4.Divide")
    operation = input("Enter operation(1/2/3/4): ")
if Month == 'February' and Category == 'Expenses':

    ##Input configuration for february monthly expenses##
    February_Automotive_Expenses = float(input("February Automotive Expenses:"))
    February_Miscellaneous_Expenses = float(input("February Miscellaneous Expenses:"))
    February_Food_Expenses = float(input("February Food Expenses:"))
    February_Medical_Expenses = float(input("February Medical Expenses:"))
    February_Clothing_Expenses = float(input("February Clothing Expenses:"))

    ##Arithmetic Operations##
    print("Select operation.")
    print("1.Add")
    print("2.Subtract")
    print("3.Multiply")
    print("4.Divide")
    operation = input("Enter operation(1/2/3/4): ")

###arithmetic operations setup using Month/Category/Operation##
while True:
    if Month == 'January' and Category == 'Income' and operation in ('1', '2', '3', '4'):
        num1 = January_Primary_Income
        num2 = January_Other_Income
        num3 = January_ATM_Deposits
        num4 = January_Transfers
        num5 = January_Reimbursements
    elif Month == 'January' and Category == 'Expenses' and operation in ('1', '2', '3', '4'):
        num1 = January_Automotive_Expenses
        num2 = January_Miscellaneous_Expenses   
        num3 = January_Food_Expenses
        num4 = January_Medical_Expenses
        num5 = January_Clothing_Expenses
    elif Month == 'February' and Category == 'Income' and operation in ('1', '2', '3', '4'):
        num1 = February_Primary_Income
        num2 = February_Other_Income
        num3 = February_ATM_Deposits
        num4 = February_Transfers
        num5 = February_Reimbursements
    if operation == '1':
        print(num1, "+", num2, "+", num3, "+", num4, "+", num5, "=", Add(num1, num2, num3, num4, num5))
    if operation == '2':
        print(num1,"-",num2,"-",num3,"-",num4,"-",num5,"=", subtract(num1,num2,num3,num4,num5))
    if operation == '3':
        print (num1, "*", num2, "*", num3, "*", num4, "*", num5, "=", multiply(num1,num2,num3,num4,num5))
    if operation == '4':
        print(num1, "/", num2, "/", num3, "/", num4, "/", num5, "=", divide(num1,num2,num3,num4,num5))
    break
else:
    print("Invalid Input")



    





