Skip to content

jmathtech/Compound-Interest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compound Interest

A java application to calculate the compound interest with the principal amount measured with time.

What I've learned

  • Math.pow() is used to calculate a number which is raise to the power of any variety of another number.
import static java.lang.Math.pow;
  • Scanner class in java is used to obtain primitive data types such as int, double, string, char, etc. It uses the java.util package in order to 'scan' for user input instead of using the 'get' and 'set' methods.
Scanner sc = new Scanner(System.in);

Example of the java application

image

About

A java application to calculate the compound interest of the principal amount measured with time.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages