Friday, 31 January 2014

PYTHON TUTORIAL QUESTION 1 FROM: YEMISI TOYIN IDOWU

A man spent half of .his monthly income on foodstuffs.,one third on transport and he also save 1/4 of the ammount left, leaving 75 in his pocket. write a python program to calculate his monthly income?

SOLUTION

fd = 0.5

tp = 0.33

s = 0.042

sum = fd + tp + s

pf = 1 - sum

Income = 75 / pf

Print Income

No comments:

Post a Comment