Monthly Budget Calculator

Developing Data Products Assignment

Jianyi

Introduction - Goal

Hi:)

Thanks for using my Monthly Budget Calculator!

This is a tool to help you evaluate whether your budget is reasonable, and prevent you from getting bankruptted out of blue.

The interface is simple. It's easy to use. Let's get started!

How to Use

How to use:

Type in your expecetd expenses on the left and hit submit, the evaluation will be shown on the right.

The input are monthly total income, as well as the expenses of different catorogies, including rent, food, clothing, transportation, social, books, and others

The output is the sum of all expenses, and the evaluation whether the expenses exceeds the total income

Application Code

E.g if the monthly total income is 2000, yet the rent, clothing, transportation, social, books, and others are 1000, 200, 50, 50, 50, 100000, then the outout would be

income=2000
expense=1000+200+50+50+50+100000

and when compared with the total income, it will gives you the evaluation and comment

 print(
      if (income>expense) "Good"
      else if (10*income<expense) "You know how to spend money, so start cutting trees so that you can find a diamond mine one day ;)"
      else "Overdrawn, please rebudget")
## [1] "You know how to spend money, so start cutting trees so that you can find a diamond mine one day ;)"

(please exacuse me for using an unlikely case, I really like this joke line)

Application-Link