/ File: calcDisplay.h
/ This file contains prototypes for functions that
/ calculate loan monthly payments and display a row
/ of an amortization table.
/ Returns a monthly payment value calculated from
using namespace std;
int month = 1;
cout < "Loan Cal
/* Assignment 2
CST 116 - C+ Programming I
In this assignment you will implement a number guessing game.
The program will start by asking the user for the maximum
number for a range. The program will then pick a random
number between 1 and the maximum nu
Initial values for all the settings maintained by your program (principal, annual interest rate,
number of years) should be zero.
Present menu with:
Validate the menu option the user selects. You can assume the menu input is a number, but you
do need to m
/ Pre: template parameter T must be either ifstream or ofstream type.
template <typename T>
void fileopen (T & filestr, const string promptpart)
const int MAX_TRIES = 5;
int count = 0;
cout < "Enter the name of " < promptpart < "