leo/examples/interest
d0cd 48a1f0590b
Rename console.assert* to assert*. (#2205)
* Add assert statements to AST

* Add support in passes

* Add parser support

* Add tyc support

* Add support for assert statements in the remaining passes

* Fix examples, tests, and regen expectations

* Fmt

* Regen expectations
2022-12-06 21:56:48 -08:00
..
inputs [examples] Change 'period' to 'iteration'. 2022-08-08 16:51:37 -07:00
src Rename console.assert* to assert*. (#2205) 2022-12-06 21:56:48 -08:00
.gitignore [example] Simple interest calculation. 2022-08-04 10:32:04 -07:00
program.json [example] Simple interest calculation. 2022-08-04 10:32:04 -07:00
README.md [examples] Change 'period' to 'iteration'. 2022-08-08 16:51:37 -07:00

Calculating Interest

This program provides utilities for calculating interest over a fixed or bounded number of iterations.

Building the Program

To compile this program, run:

leo build

Running the Program

To run this program, run:

leo run <function_name>

where <function_name> is one of the following:

  • fixed_iteration_interest
  • bounded_iteration_interest

Be sure to update inputs/interest.in with the desired inputs.