Narcissistic, Perfectly Modest

    bank-interest-concept

    1.0.2 • Public • Published

    Bank interest concept

    Description

    A man wants to know how much money is generated from interest on the amount he has in investment in the bank. He will decide to reinvest the interest as long as it exceeds USD 351, and in that case he wants to know how much money he will finally have in his account.

    Usage

      let Bank=require("./Bank").Bank;
    
    let bank=new Bank(3569,10);
    let calc=bank.interest_concept();
    if(calc.interest>351)
    {
      console.log("The amount generated by interest is: USD "+calc.interest+" exceeds USD 351");  
    }
    else
    {
      console.log("The amount generated by interest is: USD "+calc.interest+" does not exceeds USD 351");  
    }
     
    console.log("                                              ");
    console.log("The balance generated in the account is: USD "+calc.balanced_generated);

    Install

    npm i bank-interest-concept

    DownloadsWeekly Downloads

    9

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    2.55 kB

    Total Files

    4

    Last publish

    Collaborators

    • carlosrodriguezz