/**
 * p1.cpp
 * 07-may-2007/sklar
 *
 * this program motivates the use of simple classes in C++.
 *
 */

#include <iostream>
using namespace std;


void readData( string &last_name, string &first_name, 
	       string &cell_number, string &email, string &home_number, 
	       string &work_number, int &birth_day, int &birth_month, 
	       int &birth_year ) {
  cout << "enter last name: ";
  cin >> last_name;
  cout << "enter first name: ";
  cin >> first_name;
  cout << "enter cell number: ";
  cin >> cell_number;
  cout << "enter email: ";
  cin >> email;
  cout << "enter home number: ";
  cin >> home_number;
  cout << "enter work number: ";
  cin >> work_number;
  cout << "enter birthday (DD MM YY): ";
  cin >> birth_day;
  cin >> birth_month;
  cin >> birth_year;
  cout << "thanks!" << endl;
} // end of readData()


void writeData( string last_name, string first_name, 
		string cell_number, string email, string home_number, 
		string work_number, int birth_day, int birth_month, 
		int birth_year ) {
  cout << "name:  " << first_name << " " << last_name << endl;
  cout << "phone: " << cell_number << " (C)\n";
  cout << "       " << home_number << " (H)\n";
  cout << "       " << work_number << " (W)\n";
  cout << "email: " << email << endl;
  cout << "birthday: " << birth_day << "/" << birth_month << "/" <<
    birth_year << endl;
} // end of writeData()


int main() {
  string last_name;
  string first_name;
  string cell_number;
  string email;
  string home_number;
  string work_number;
  int birth_day;
  int birth_month;
  int birth_year;

  readData( last_name, first_name, cell_number, email, home_number, 
	    work_number, birth_day, birth_month, birth_year );

  writeData( last_name, first_name, cell_number, email, home_number, 
	     work_number, birth_day, birth_month, birth_year );

} // end of main()


