Can you make this into a flowchart? //user info UserName Student; Student.Input(); do { cout << "Gender: "; getline (cin, (Gender)); cout << endl; if (Gender == "M" || Gender == "m" || Gender == "Male" || Gender == "male" || Gender == "MALE") Gender = "Male"; else if (Gender == "F" || Gender == "f" || Gender == "Female" || Gender == "female" || Gender == "FEMALE") Gender = "Female"; else Gender = "N/A"; } while (Gender == "N/A"); do { cout << "Birthday (MM/DD/YYYY)" << endl; cout << "Month: "; cin >> Bmonth; cout << "Day: "; cin >> Bday; cout << "Year: "; cin >> Byear; cin.ignore(numeric_limits::max(), '\n'); cout << endl; if (Bmonth==1 && Bday>=1 && Bday<=31) Month = "January"; else if (Bmonth==2 && Bday>=1 && Bday<=29) Month = "February"; else if (Bmonth==3 && Bday>=1 && Bday<=31) Month = "March"; else if (Bmonth==4 && Bday>=1 && Bday<=30) Month = "April"; else if (Bmonth==5 && Bday>=1 && Bday<=31) Month = "May"; else if (Bmonth==6 && Bday>=1 && Bday<=30) Month = "June"; else if (Bmonth==7 && Bday>=1 && Bday<=31) Month = "July"; else if (Bmonth==8 && Bday>=1 && Bday<=31) Month = "August"; else if (Bmonth==9 && Bday>=1 && Bday<=30) Month = "September"; else if (Bmonth==10 && Bday>=1 && Bday<=31) Month = "October"; else if (Bmonth==11 && Bday>=1 && Bday<=30) Month = "November"; else if (Bmonth==12 && Bday>=1 && Bday<=31) Month = "December"; else cout << "Invalid date! Please try again." << endl; } while ((Bmonth!=1 && Bmonth!=2 && Bmonth!=3 && Bmonth!=4 && Bmonth!=5 && Bmonth!=6 && Bmonth!=7 && Bmonth!=8 && Bmonth!=9 && Bmonth!=10 && Bmonth!=11 && Bmonth!=12) || (Bmonth==1 && Bday<1 || Bday>31) || (Bmonth==2 && Bday<1 || Bday>29) || (Bmonth==3 && Bday<1 || Bday>31) || (Bmonth==4 && Bday<1 || Bday>30) || (Bmonth==5 && Bday<1|| Bday>31) || (Bmonth==6 && Bday<1 || Bday>30) || (Bmonth==7 && Bday<1 || Bday>31) || (Bmonth==8 && Bday<1 || Bday>31) || (Bmonth==9 && Bday<1 || Bday>30) || (Bmonth==10 && Bday<1 || Bday>31) || (Bmonth==11 && Bday<1 || Bday>30) || (Bmonth==12 && Bday<1 || Bday>31) ); cout << "Birthplace: "; getline (cin, (Birthplace)); cout << endl; cout << "Address: "; getline (cin, (Address)); cout << endl; Student.Number(); cout << "Nationality: "; getline (cin, (Nationality)); cout << endl; cout << "Religion: "; getline (cin, (Religion)); cout << endl;
Can you make this into a flowchart?
//user info
UserName Student;
Student.Input();
do
{
cout << "Gender: ";
getline (cin, (Gender));
cout << endl;
if (Gender == "M" || Gender == "m" || Gender == "Male" || Gender == "male" || Gender == "MALE")
Gender = "Male";
else if (Gender == "F" || Gender == "f" || Gender == "Female" || Gender == "female" || Gender == "FEMALE")
Gender = "Female";
else
Gender = "N/A";
}
while (Gender == "N/A");
do
{
cout << "Birthday (MM/DD/YYYY)" << endl;
cout << "Month: ";
cin >> Bmonth;
cout << "Day: ";
cin >> Bday;
cout << "Year: ";
cin >> Byear;
cin.ignore(numeric_limits<streamsize>::max(), '\n');
cout << endl;
if (Bmonth==1 && Bday>=1 && Bday<=31)
Month = "January";
else if (Bmonth==2 && Bday>=1 && Bday<=29)
Month = "February";
else if (Bmonth==3 && Bday>=1 && Bday<=31)
Month = "March";
else if (Bmonth==4 && Bday>=1 && Bday<=30)
Month = "April";
else if (Bmonth==5 && Bday>=1 && Bday<=31)
Month = "May";
else if (Bmonth==6 && Bday>=1 && Bday<=30)
Month = "June";
else if (Bmonth==7 && Bday>=1 && Bday<=31)
Month = "July";
else if (Bmonth==8 && Bday>=1 && Bday<=31)
Month = "August";
else if (Bmonth==9 && Bday>=1 && Bday<=30)
Month = "September";
else if (Bmonth==10 && Bday>=1 && Bday<=31)
Month = "October";
else if (Bmonth==11 && Bday>=1 && Bday<=30)
Month = "November";
else if (Bmonth==12 && Bday>=1 && Bday<=31)
Month = "December";
else cout << "Invalid date! Please try again." << endl;
}
while ((Bmonth!=1 && Bmonth!=2 && Bmonth!=3 && Bmonth!=4 && Bmonth!=5 && Bmonth!=6 && Bmonth!=7 && Bmonth!=8 && Bmonth!=9 && Bmonth!=10
&& Bmonth!=11 && Bmonth!=12) || (Bmonth==1 && Bday<1 || Bday>31) || (Bmonth==2 && Bday<1 || Bday>29) || (Bmonth==3 && Bday<1 || Bday>31) ||
(Bmonth==4 && Bday<1 || Bday>30) || (Bmonth==5 && Bday<1|| Bday>31) || (Bmonth==6 && Bday<1 || Bday>30) || (Bmonth==7 && Bday<1 || Bday>31)
|| (Bmonth==8 && Bday<1 || Bday>31) || (Bmonth==9 && Bday<1 || Bday>30) || (Bmonth==10 && Bday<1 || Bday>31) || (Bmonth==11 && Bday<1 || Bday>30)
|| (Bmonth==12 && Bday<1 || Bday>31) );
cout << "Birthplace: ";
getline (cin, (Birthplace));
cout << endl;
cout << "Address: ";
getline (cin, (Address));
cout << endl;
Student.Number();
cout << "Nationality: ";
getline (cin, (Nationality));
cout << endl;
cout << "Religion: ";
getline (cin, (Religion));
cout << endl;
Step by step
Solved in 2 steps with 4 images