#include<iostream> 
#include<string>
using namespace std;

struct PersonInfo
	{   	
		string name, 
		       address, 
	           city;
	};
	
	struct Student
	{	   
		int studentID;
		PersonInfo pData;
		short yearInSchool;
		double gpa;
	};
	
	int main()
	{
		Student bio;
		
		//Get student's ID
		cout<<"Enter student's ID: ";
		cin>>bio.studentID;
		cin.ignore();
		
		//Get student's personal info
		cout<<"Now enter the student's name: ";
		getline(cin,bio.pData.name);
		cout<<"Address: ";
		getline(cin, bio.pData.address);
		cout<<"City: ";
		getline(cin, bio.pData.city);
		
		//Get student's study year in school
		cout<<"Enter the student study year in school: ";
		cin>> bio.yearInSchool;
		
		//Get student's gpa
		cout<<"Enter student's gpa: ";
		cin>>bio.gpa;
		
		//Display the information that entered
		cout<<"\nHere is the student's personal information:\n";
		cout<<"Student ID: "<<bio.studentID<<endl;
		cout<<"Name: "<< bio.pData.name<<endl;
		cout<<"Address: "<<bio.pData.address<<endl;
		cout<<"City: "<<bio.pData.city;
		cout<<"Year in school: "<<bio.yearInSchool<<endl;
		cout<<"Gpa: "<<bio.gpa;
		
		return 0 ;
	}

