You are on page 1of 3

BAGTING, MARVIN D.

CPE 401 – COMPPROG


ME-1203 ACTUAL ACTIVITY 1.1

Actual Activity 1

Write a program that will calculate an Account Profit Income Statement. It is calculated
by totaling all of a business’s revenue sources and subtracting from that all the business’s
expenses that are related to revenue or simply the difference by subtracting total expenses
away from total income. The user will input the expenses and revenue and then the program will
analyze the financial performance by concluding whether a Profit or Loss Account based on the
calculated income statement. (Use a ternary operator to analyze the performance.)

Sample Output 1:

----Account Profit Income Statement ----

Business Income/Revenue: 100000

Business Expenses: 50000

Income Statement: 50000

Financial Performance: Profit

Sample Output 2:

----Account Profit Income Statement ----

Business Income/Revenue: 100000

Business Expenses: 120000

Income Statement: - 20000

Financial Performance: Loss


ANSWER:

PROGRAM CODE

#Bagting, Marvin D.
#ME1203
#Actual Activity 1.1

x=0

print("----Account Profit Income Statement----")

income = int(input("Business Income/Revenue: "))


expenses = int(input("Business Expenses: "))
statement = int(income - expenses)
print ("\nIncome Statement:", statement)

if statement > x:
print ("\nFinancial Performance: Profit")
elif statement < x:
print ("\nFinancial Performance: Loss")
else:
print ("\nFinancial Performance: Balanced")

PROGRAM SCREENSHOT

You might also like