Hi all,
could someone with a kind heart help with this program?
Question: Write a function NumberOfPennies() that returns the total number of pennies given a number of dollars and (optionally) a number of pennies. Ex: 5 dollars and 6 pennies returns 506.
Here's what I have so far;
#include <iostream>
using namespace std;
int NumberOfPennies(int UsrDollars, int UsrPennies){
int totalPennies = 0;
int penniesInDollar = 100;