#include <iostream>
usingnamespace std;
double percent(int, int);
int main()
{
int ptsEarned, // number of points earned on a test
ptsPossible; // number of points possible on a test
double testPercent; // percent of points possible earned on a test
cout << "This program will test the percent function you wrote." << endl;
cout << "Let's use it to calculate the percent earned on a test." << endl;
cout << "Please enter the number of points possible on a test: " << endl;
cin >> ptsPossible;
cout << "Now enter the number of points earned on the test: ";
cin >> ptsEarned;
// Write the line of code to call function percent
cout << "The percent for that test result is " << testPercent << endl;
return 0;
You have a function prototype however you are completely missing a function declaration. Also for the prototype you should have double percent(int ptsEarned, int ptsPossible);
Also for the prototype you should have double percent(int ptsEarned, int ptsPossible);
For a function declaration/definition there is no requirement to name a parameter if it's not used. So for the prototype (declaration), double percent (int, int); is fine - although for the definition then names would be needed.