Skip to content

A financial calculation program for bond and investment purposes

Notifications You must be signed in to change notification settings

ReagWarner/FinancialCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Financial Calculator

For this task, assume that you have been approached by a small financial company and asked to create a program that allows the user to access two different financial calculators:

an investment calculator and a home loan repayment calculator.

● At the top of the file include the line import math

● Write the code that will do the following:

  1. The user should be allowed to choose which calculation they want to do.

How the user capitalises their selection should not affect how the program proceeds. I.e. ‘Bond’, ‘bond’, ‘BOND’ or ‘investment’, ‘Investment’, ‘INVESTMENT’, etc. should all be recognised as valid entries. If the user doesn’t type in a valid input, show an appropriate error message.

  1. If the user selects ‘investment’, do the following:

■ Ask the user to input:

● The amount of money that they are depositing.

● The interest rate (as a percentage). Only the number of the interest rate should be entered — don’t worry about having to deal with the added ‘%’, e.g. The user should enter 8 and not 8%.

● The number of years they plan on investing for.

● Then ask the user to input whether they want “simple” or “compound” interest, and store this in a variable called interest. Depending on whether they typed

About

A financial calculation program for bond and investment purposes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages