SOURCE FILE: payoutShell.cpp
#include <iostream>
#include <cmath>
using namespace std ;
/* Prototypes */
void PrintDirections() ;
double GetPrinc() ;
double GetPmt() ;
double GetRate() ;
int Compute_Months(double S, double P, double R) ;
void Report_Months(double S, double P, double R, int N) ;
/* **************************************** */
/* MAIN */
/* **************************************** */
int main ()
{
}
/* **************************************** */
/* PRINT DIRECTIONS */
/* **************************************** */
/* Print directions for the user of the program. */
void PrintDirections()
{
}
/* **************************************** */
/* GETPRINCIPAL */
/* **************************************** */
/* Prompt the user to enter the amount of principle
read it in, and return it to the caller. */
double GetPrinc()
{
}
/* **************************************** */
/* GETPMT */
/* **************************************** */
/* Prompt the user to enter the amount of the monthly payment,
read it in, and return it to the caller. */
double GetPmt()
{
}
/* **************************************** */
/* GETRATE */
/* **************************************** */
/* Prompt the user to enter the amount of the annual interest
rate, read it in, and return it to the caller. */
double GetRate()
{
}
/* **************************************** */
/* COMPUTE_MONTHS */
/* **************************************** */
/* Return the number of months until an initial S dollars runs
out if the account earns interest at an annual rate of R,
compounded monthly, and a payment of P dollars per month is
withdrawn. Precondition: S*R/1200 < P. */
int Compute_Months(double S, double P, double R)
{
}
/* **************************************** */
/* REPORT_MONTHS */
/* **************************************** */
/* Report to the user -- tell the user that N is the number of
months it will take for S dollars to completely run out, if
annual interest rate R, compounded monthly, is earned, and P
dollars are withdrawn per month. */
void Report_Months(double S, double P, double R, int N)
{
}
/* **************************************** */
/* END */
/* **************************************** */