Interest question w/functions

So I have to create a program for my class. The prompt is as follows:

Write a program that has 2 functions. One function computes the amount using qauterly compounding at 3%. The other function computes the amount using continuous compounding at 3%. The user chooses function and enters an amount, The program shows amount for 1,2,3,4,5 years.

//i am extremely new at this and genuinely want to get better at this so please help. i can't even complete the program because i don't even know how to start it off

#include<iostream>
#include<cmath>
using namespace std;


int main()
{

double P=0, A=0, r=0.03, n=4.0, t=5.0;

cout<<"enter number "<<endl;
cin>>P;

Last edited on
Topic archived. No new replies allowed.