#include using namespace std; // unrealistically short example of function with default param(s) // (to keep simple) int CalcPct (double score, double max = 100){ // alt versions to show what happens if ... // int CalcPct (double score = 100, double max = 100){ // int CalcPct (double max = 100, double score){ double pct = score / max; cout << "Score: " << score << " Max: " << max << " Pct: " << pct << endl; return pct; } int main() { double percent; percent = CalcPct(74.1); percent = CalcPct(135.5,200); // percent = CalcPct(); return 0; }