Hi all. I was wondering if I could get some advice on a program im working on.
I need to write a program that tells what coins to give out for any amount of change from 1 cent to 99 cents and i have to use this function without modification. void compute_coin(int coin_value, int& number, int& amount_left).
I can write the program fine, but I cant get my mind around how to use only the varibales my teacher is using to get it to work. here is the working code for the program as it stands.
// Include Section
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
// Main Program
int main( )
{
// Constant Declarations
// Variable Declations
int coin_value;
int quarters;
int dimes;
int nickles;
int pennies;
int total_amount;
char yes = 'y';
char Yes = 'Y';
char agian;