Implement a small deposit application:
PackageOperator. Application;
ImportJava. util. vendor;
Public
ClassSavemoney {/***
@ ParamARGs */
Public
Static
VoidMain (string [] ARGs ){//
TodoAuto-generated method stub
IntMoney;
DoubleMoney1, money2;
BooleanCompare; string STR; system.
Out. Println ("Enter the amount you want to store:"); required input =
NewUsing (system.
In); Money = input. nextint (); system.
Out. Println ("current interest rate for one year: 0.36%"); system.
Out. Println ("periodic interest rate per year: 2.25%"); // arithmetic operation money1 = money * (1 + 0.36/100); money2 = money * (1 + 2.25/100 ); system.
Out. Println (money + "one year current:" + money1); system.
Out. Println (money + "regular for one year:" + money2); // relational compare = money1> money2; // select the STR = compare? "Demand deposits are more cost-effective": "Time deposits are more cost-effective"; system.
Out. Println (STR );}}