Answer:
The function is as follows:
void sendEmail(string name, string prize, string win_lose){
cout << "Dear "<<name<<", " << endl;
cout << "You are the "<<win_lose<<" of our raffle for charity." << endl;
cout << "The prize was: "<<prize<< endl;
cout << "Thank you for giving to charity!" << endl;
cout << "Sincerely," << endl;
cout << "The Boolean Foundation" << endl;
}
Explanation:
This defines the function along the three parameters
void sendEmail(string name, string prize, string win_lose){
This prints the salutation with the person's name
cout << "Dear "<<name<<", " << endl;
This prints if the person won or lost
cout << "You are the "<<win_lose<<" of our raffle for charity." << endl;
This prints the prize, if any
cout << "The prize was: "<<prize<< endl;
The following is the closing remark
<em>cout << "Thank you for giving to charity!" << endl;</em>
<em>cout << "Sincerely," << endl;</em>
<em>cout << "The Boolean Foundation" << endl;</em>
<em>}</em>