Skip to content

nick-rebrik/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cash & Calories calculator

A calorie / finance calculator that helps you keep track of the balance of your funds or calories before consumption.

To get started with the calculator, create a class object with a limit of funds / calories:

  • CashCalculator(Calculator) - for finance calculator
  • CaloriesCalculator(Calculator) - for calorie calculator

Common functionality of calculators:

  • Add a new record of spending or consuming calories - add_record()
  • Calculate the consumption of funds / calories for today - get_today_stats()
  • Calculate the consumption of funds / calories for the last week - get_week_stats()

Finance calculator can:

  • get_today_cash_remained(currency) - Determines the balance and accepts the argument of one of the three available currencies:
    • Euro - 'eur'
    • Dollars - 'usd'
    • Ruble - 'rub'

Calorie calculator can:

  • Calculate how many calories you can still consume today - get_calories_remained()

Releases

No releases published

Packages

No packages published

Languages