topical media & game development
professional-program-14-Reservation-Reservation.c
? /
professional-program-14-Reservation-Reservation.c
include <iostream>
include <string>
using namespace std;
void getReservationData();
int main(int argc, char** argv)
{
getReservationData();
return 1;
}
void getReservationData()
{
string guestName;
int partySize;
cout << "Name and number of guests: ";
cin >> guestName >> partySize;
cout << "Thank you, " << guestName << "." << endl;
if (partySize > 10) {
cout << "An extra gratuity will apply." << endl;
}
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.