A simple Java mini-project for practicing user input, math operations, and console formatting.
- Input principal amount, annual interest rate, compounding frequency, and years
- Calculate final amount and total interest earned
- Formatted output with two decimal places
- Colorful thank-you message with ASCII art
- Runs in IntelliJ or terminal
- Clone or download the repo
- Open in IntelliJ IDEA
- Run
Main.java - Enter the required values when prompted
- See your results and thank-you message
Enter the principal amount: 1000
Enter the annual interest rate (in %): 5
Enter the number of times interest is compounded per year: 4
Enter the number of years: 10
Output:
Final amount after 10 years: $1647.01
Total interest earned: $647.01
Thank you for using our calculator!
Made by CodingNORVIN
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@%..*@@@@@@+.#@@@@#=:....:=%@@@@#..:::::-*@@+.=@@@@@@@@=.#@@-.%@@@:.+@@@@@@#.=@@@@@@@@@@@@
@@@@@@@@@@% =@@@@@+ *@@@- :*%%%%+. =@@@* -@@%%#- -@@. *@@@@@@* :@@@. #@@@ -@@@@@# -@@@@@@@@@@@@
@@@@@@@@@@% -= -@@@@+ *@@: +@@@+#@@@- -@@* -@@@@@@ %@# .@@@@@@. %@@@. #@@@ :+ :%@@@# =@@@@@@@@@@@@
@@@@@@@@@@% -@+ .%@@+ *@* :@@%* :#@@@. %@* -@@@@%- -@@@= -@@@@- *@@@@. #@@@ :@* .#@@# =@@@@@@@@@@@@
@@@@@@@@@@% -@@# *@+ *@+ -@*= .=#@: #@* ::...-*@@@@@: *@@* -@@@@@. #@@@ :@@#. *@# =@@@@@@@@@@@@
@@@@@@@@@@% -@@@%. *+ *@# .@@@%.=@@@% %@* -%%* .%@@@@@@% .@@..%@@@@@. #@@@ :@@@%: =# =@@@@@@@@@@@@
@@@@@@@@@@% -@@@@@- . *@@= :%@@#@@@#. *@@* -@@@# #@@@@@@+ -- *@@@@@@. #@@@ :@@@@@= . =@@@@@@@@@@@@
@@@@@@@@@@% -@@@@@@= *@@@*. -+**+: :#@@@* -@@@@#. *@@@@@@: -@@@@@@@. #@@@ .@@@@@@+ -@@@@@@@@@@@@
@@@@@@@@@@%=*@@@@@@@*=#@@@@@#=----+#@@@@@%=*@@@@@%==@@@@@@%==@@@@@@@@+=%@@@=+@@@@@@@#=*@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Enter the principal amount: 500
Enter the annual interest rate (in %): 3
Enter the number of times interest is compounded per year: 12
Enter the number of years: 5
Output:
Final amount after 5 years: $580.81
Total interest earned: $80.81
Thank you for using our calculator!
Made by CodingNORVIN
- Currency: USD ($) by default
- Formatted numbers with two decimal places
- Colors: ANSI escape codes for styled console output
- ASCII Art: Included in thank-you message
MIT © CodingNORVIN