×

Simple and Compound Interest calculator

Using Python to Calculate Percentages

Purpose of the project:

I started this project to better understand how programs are created that take user input and perform mathematical calculations, and to reinforce programming skills such as handling user input and using conditional statements. The goal was to create a calculator to calculate percentages, which also helped develop my skills in working with conditions and arithmetic operations in Python. This project helped me understand how to program solutions to problems that people often solve themselves, such as calculating percentages.

Objective:

I created a calculator for solving problems with percentages that can find an unknown value, whether it is the amount of the principal debt, the interest rate, time, or accrued interest. The program displays the result with the correct units of measurement and can round the result to two decimal places.

Approach:

To implement the program, I used the if-elif-else condition structure, which allows the program to choose the correct solution depending on which variable the user wants to calculate. I also added the ability to enter data from the user through a text interface and output the results with the correct units of measurement. I implemented an additional option for rounding the result to two decimal places, and also added the ability to calculate compound interest. This allowed me to expand the functionality of the program and make the calculator more flexible and useful.

Project duration:

The project took me about 10 days, including time for planning, learning formulas, writing and testing the program.

My role:

I developed the entire project myself from start to finish. My role included researching the necessary formulas, writing the code, creating the interface for user input, and testing the program for various scenarios. Working on this project allowed me to improve my skills in working with user input, conditional structures, and mathematical calculations in Python.

Other Works