Complete the if statements in the following program skeleton.
#include
#include
using namespace std;
int main()
{
const int SIZE = 20;
char iceCream[SIZE];
cout << "What flavor of ice cream do you like best? ";
cout << "Chocolate, Vanilla, or Pralines and Pecan? ";
cin.getline(iceCream, SIZE);
cout << "Here is the number of fat grams for a half ";
cout << "cup serving:\n";
/ / Finish the following if/else if statement
/ / so the program will select the ice cream entered
// by the user.
//
if (/* insert your code here */)
cout << "Chocolate: 9 fat grams.\ n”;
else if (/* insert your code here */)
cout << "Vanilla: 10 fat grams.\n";
else if (/* insert your code here */)
cout << "Pralines & Pecan: 14 fat grams.\n";
else cout << "That's not one of our flavor:31\n";
return 0;
}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.