You are on page 1of 1

#include <iostream>

#include <string>

using namespace std;

int main() {

cout << "Enter Father's Name: ";


string fatherName;
cin.ignore();
getline(cin, fatherName);

cout << "Enter Father's Age: ";


int fatherAge;
cin >> fatherAge;

cout << "Enter Father's Occupation: ";


string fatherOccupation;
cin.ignore();
getline(cin, fatherOccupation);

cout << "Enter Mother's Name: ";


string motherName;
cin.ignore();
getline(cin, motherName);

cout << "Enter Mother's Age: ";


int motherAge;
cin >> motherAge;

cout << "Enter Mother's Occupation: ";


string motherOccupation;
cin.ignore();
getline(cin, motherOccupation);

cout << "Enter Sibling's Name: ";


string siblingName;
cin.ignore();
getline(cin, siblingName);

cout << "Enter Sibling's Age: ";


int siblingAge;
cin >> siblingAge;

cout << "Enter Sibling's Occupation/Year level: ";


string siblingOccupation;
cin.ignore();
getline(cin, siblingOccupation);

// Get entered information

cout << "Father Name: " << fatherName << "\n";


cout << "Father Age: " << fatherAge << "\n";
cout << "Father Occupation: " << fatherOccupation << "\n";
cout << "Mother Name: " << motherName << "\n";
cout << "Mother Age: " << motherAge << "\n";
cout << "Mother Occupation: " << motherOccupation << "\n";
cout << "Sibling Name: " << siblingName << "\n";
cout << "Sibling Age: " << siblingAge << "\n";
cout << "Sibling Occupation/Year level: " << siblingOccupation << "\n";

return 0;
}

You might also like