1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
#include <iostream>
#include <Windows.h>
#include <fstream>
#include <string>
#include <sstream>
using namespace std;
int main()
{
string firstname, middlename, lastname, day, month, year, color, place, favoritetime, food, drink, game, placetoeat, book, electronicdevice, laptopbrand, desktopbrand, fullname, fulldateofbirth, favoritemeal;
cout << "What is your first name?" << endl;
getline(cin, firstname);
cout << "What is your middle name?" << endl;
getline(cin, middlename);
cout << "What is your last name?" << endl;
getline(cin, lastname);
cout << "On what day were you born?" << endl;
getline(cin, day);
cout << "In what month were you born?" << endl;
getline(cin, month);
cout << "In what year were you born?" << endl;
getline(cin, year);
cout << "What is your favorite time of day? (Morning; Afternoon; Evening;)" << endl;
getline(cin, favoritetime);
cout << "What is your favorite color?" << endl;
getline(cin, color);
cout << "What is your favorite food?" << endl;
getline(cin, food);
cout << "What is your favorite drink?" << endl;
getline(cin, drink);
cout << "What is your favorite place to eat?" << endl;
getline(cin, placetoeat);
cout << "What is your favorite game?" << endl;
getline(cin, game);
cout << "What is your favorite electronic device? (Laptop, iPad, TV, etc.)" << endl;
getline(cin, electronicdevice);
cout << "What is your favorite laptop brand?" << endl;
getline(cin, laptopbrand);
cout << "What is your favorite desktop computer brand?" << endl;
getline(cin, desktopbrand);
fullname = firstname + " " + middlename + " " + lastname + ".";
fulldateofbirth = month + " " + day + "," + " " + year + ".";
food += " and ";
drink += ",";
favoritemeal = food + drink;
favoritetime += ".";
color += ".";
placetoeat += ".";
electronicdevice += ".";
laptopbrand += ",";
desktopbrand += ".";
cout << "Processing Information..." << endl;
Sleep(5000);
cout << "Your full name is " << fullname << "You were born on " << fulldateofbirth << "Your favorite time of day is the " << favoritetime << endl << "Your favorite color is " << color << "Your favorite meal consists of " << favoritemeal << " and your favorite place to eat is " << placetoeat << endl << " Your favorite game is " << game << " and your favorite electronic device is a " << electronicdevice << " Your favorite laptop brand is " << laptopbrand << " and your favorite desktop brand is " << desktopbrand << " Thank you for taking the Introduction quiz!" << endl;
return 0;
}
|