
Chapter 2: Prelab Assignment
C++ Syntax and Semantics, and the Program Development Process | 31
Name __________________________________________ Date _______________________
Section _________________________________________
Examine the following program and complete Exercises 1 through 5.
// Program Wrap writes out the contents of a sandwich wrap.
#include <iostream>
#include <string>
using namespace std;
const string TUNA = "tuna";
const string PICKLE = "pickle";
const string LETTUCE = "lettuce";
const string WRAP = "tortilla";
int main()
{
string filling;
string wrap;
filling = TUNA + " and " + PICKLE + " with " + LETTUCE;
wrap = filling + " in " + WRAP + '.'; ...