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;

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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;

 

 

Expert Solution
steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Knowledge Booster
Unary Predicate
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY