

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Line 2: The ā>ā is missing after <iostream. After this line, two more lines are missing: #include
cout << endl; cout << "Value of plateType: " << plateType << endl; cout << "Value of classification: " << classification << endl;
// PrintName program // This program prints a name in three different formats //**************************************************************** #include
using namespace std;
const string FIRST = "Herman"; // Personās first name const string LAST = "Smith"; // Personās last name const string MIDDLE = "G"; // Personās middle initial
int main() { string firstLast; // Name in firstālast format string lastFirst; // Name in lastāfirst format string firstMidLast; // Name in firstāinitialālast format
firstLast = FIRST + " " + LAST; cout << "Name in firstālast format is " << firstLast << endl;
lastFirst = LAST + ", " + FIRST + ", "; cout << "Name in lastāfirstāinitial format is "; cout << lastFirst << MIDDLE << ā.ā << endl;
firstMidLast = FIRST + " " + MIDDLE + ". " + LAST; cout << "Name in firstāinitialālast format is " << firstMidLast << endl;
return 0; }
a. cout << "Four score" << endl; cout << "and seven years ago" << endl; or cout << "Four score" << endl << "and seven years ago" << endl; or cout << "Four score" << endl << "and seven years ago" << endl;
b. cout << "Four score" << endl << "and seven" << endl << "years ago" << endl;
c. cout << "Four score" << endl << "and" << endl << endl << "seven" << endl << "years ago" << endl;
d. cout << "Four" << endl << " score" << endl << " and" << endl << "seven" << endl << " years" << endl << " ago" << endl;