Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a c++ flowchart for student profile and information program this specific program #include #include using namespace std; int main() { // // --> Global
Create a c++ flowchart for student profile and information program this specific program #include #include using namespace std; int main() { // // --> Global Variables <-- // //Personal Infomation int studentnumber, day, year, postalcode, workingstatus, letter; string firstname, middlename, lastname, auxiliaryname, birthmonth, gender, religion, addressline1, addressline2, addressline3, addressline4, country, civilstatus, nationality, legalstatus, baptizedin, employertelephonenumber, birthplace, workingstatusview; //Course Infomation //Parents Infomation //Educational Background /* --> Input <-- */ cout << "--> Student Enrollment Profile <-- "; cout << " * Personal Information * "; cout << "Please Type the Following Information (put N/A if not applicable) "; cout << "> Type your First Name: "; getline(cin, firstname); cout << "> Type your Middle Name: "; getline(cin, middlename); cout << "> Type your Last Name: "; getline(cin, lastname); cout << "> Type your Auxilary Name: "; cin >> auxiliaryname; cout << " "; cout << "> Type your Birthday: "; cout << " - Year: "; cin >> year; cout << " - Month: "; cin >> birthmonth; cout << " - Day: "; cin >> day; cout << " "; cout << "> Type your Gender: "; cin >> gender; cout << "> Type your Birth Place: "; getline(cin, birthplace); getline(cin, birthplace); cout << "> Type where you Baptized in: "; getline(cin, baptizedin); cout << "> Type your Religion: "; getline(cin, religion); cout << "> Type your Civil Status: "; getline(cin, civilstatus); cout << "> Type your Nationality: "; getline(cin, nationality); cout << "> Type your Legal Status: "; getline(cin, legalstatus); cout << " "; cout << "> Type your Permanent Home Address: "; cout << " - Number and Street: "; getline(cin, addressline1); cout << " - Subdivision/Village, Barangay, District: "; getline(cin, addressline2); cout << " - Town/City: "; getline(cin, addressline3); cout << " - Province: "; getline(cin, addressline4); cout << " - Country: "; getline(cin, country); cout << " - Postal Code: "; cin >> postalcode; cout << " "; cout << "> Type your Working Status: "; cout << " - Type 0 if Working "; cout << " - Type 1 if Not-Working "; cout << " - Your Working Status: "; cin >> workingstatus; cout << "Type your Employer's Telephone Number: "; getline(cin, employertelephonenumber); getline(cin, employertelephonenumber); cout << " "; //Student Number Selection letter = firstname[0]; if (letter == 'A' || letter == 'a') { studentnumber = 2021010201; } else if (letter == 'B' || letter == 'b') { studentnumber = 2021010202; } else if (letter == 'C' || letter == 'c') { studentnumber = 2021010203; } else if (letter == 'D' || letter == 'd') { studentnumber = 2021010204; } else if (letter == 'E' || letter == 'e') { studentnumber = 2021010205; } else if (letter == 'F' || letter == 'f') { studentnumber = 2021010206; } else if (letter == 'G' || letter == 'g') { studentnumber = 2021010207; } else if (letter == 'H' || letter == 'h') { studentnumber = 2021010208; } else if (letter == 'I' || letter == 'i') { studentnumber = 2021010209; } else if (letter == 'J' || letter == 'j') { studentnumber = 2021010210; } else if (letter == 'K' || letter == 'k') { studentnumber = 2021010211; } else if (letter == 'L' || letter == 'l') { studentnumber = 2021010212; } else if (letter == 'M' || letter == 'm') { studentnumber = 2021010213; } else if (letter == 'N' || letter == 'n') { studentnumber = 2021010214; } else if (letter == 'O' || letter == 'o') { studentnumber = 2021010215; } else if (letter == 'P' || letter == 'p') { studentnumber = 2021010216; } else if (letter == 'Q' || letter == 'q') { studentnumber = 2021010217; } else if (letter == 'R' || letter == 'r') { studentnumber = 2021010218; } else if (letter == 'S' || letter == 's') { studentnumber = 2021010219; } else if (letter == 'T' || letter == 't') { studentnumber = 2021010220; } else if (letter == 'U' || letter == 'u') { studentnumber = 2021010221; } else if (letter == 'V' || letter == 'v') { studentnumber = 2021010222; } else if (letter == 'W' || letter == 'w') { studentnumber = 2021010223; } else if (letter == 'X' || letter == 'x') { studentnumber = 2021010224; } else if (letter == 'Y' || letter == 'y') { studentnumber = 2021010225; } else { studentnumber = 2021010226; } cout << " * Personal Information * "; cout << "Student Number: " << studentnumber << " "; cout << "Last Name: " << lastname << " "; cout << "First Name: " << firstname << " "; cout << "Middle Name: " << middlename << " "; cout << "Auxiliary Name: " << auxiliaryname << " "; cout << "Gender: " << gender << " "; cout << "Birth Date: " << day << " - " << birthmonth << " - " << year << " "; cout << "Birth Place: " << birthplace << " "; cout << "Nationality: " << nationality << " "; cout << "Legal Status: " << legalstatus << " "; cout << "Religion: " << religion << " "; cout << "Baptized In: " << baptizedin << " "; cout << "Civil Status: " << civilstatus << " "; cout << "Address Line 1: " << addressline1 << ", " << addressline2 << ", " << " "; cout << "Address Line 2: " << addressline3 << ", " << addressline4 << ", " << country << " "; cout << "Postal Code: " << postalcode << " "; if (workingstatus == 0) { workingstatusview = "Working"; } else { workingstatusview = "Non-Working"; } cout << "Working Status: " << workingstatusview << " "; cout << "Employer's Tel. No.: " << employertelephonenumber << " "; return 0; }
#include
#include
using namespace std;
int main()
{
//
// --> Global Variables <--
//
//Personal Infomation
int studentnumber, day, year, postalcode, workingstatus, letter;
string firstname, middlename, lastname, auxiliaryname, birthmonth, gender, religion, addressline1, addressline2, addressline3, addressline4, country, civilstatus, nationality, legalstatus, baptizedin, employertelephonenumber, birthplace, workingstatusview;
//Course Infomation
//Parents Infomation
//Educational Background
/*
--> Input <--
*/
cout << "--> Student Enrollment Profile <-- ";
cout << " * Personal Information * ";
cout << "Please Type the Following Information (put N/A if not applicable) ";
cout << "> Type your First Name: ";
getline(cin, firstname);
cout << "> Type your Middle Name: ";
getline(cin, middlename);
cout << "> Type your Last Name: ";
getline(cin, lastname);
cout << "> Type your Auxilary Name: ";
cin >> auxiliaryname;
cout << " ";
cout << "> Type your Birthday: ";
cout << " - Year: ";
cin >> year;
cout << " - Month: ";
cin >> birthmonth;
cout << " - Day: ";
cin >> day;
cout << " ";
cout << "> Type your Gender: ";
cin >> gender;
cout << "> Type your Birth Place: ";
getline(cin, birthplace);
getline(cin, birthplace);
cout << "> Type where you Baptized in: ";
getline(cin, baptizedin);
cout << "> Type your Religion: ";
getline(cin, religion);
cout << "> Type your Civil Status: ";
getline(cin, civilstatus);
cout << "> Type your Nationality: ";
getline(cin, nationality);
cout << "> Type your Legal Status: ";
getline(cin, legalstatus);
cout << " ";
cout << "> Type your Permanent Home Address: ";
cout << " - Number and Street: ";
getline(cin, addressline1);
cout << " - Subdivision/Village, Barangay, District: ";
getline(cin, addressline2);
cout << " - Town/City: ";
getline(cin, addressline3);
cout << " - Province: ";
getline(cin, addressline4);
cout << " - Country: ";
getline(cin, country);
cout << " - Postal Code: ";
cin >> postalcode;
cout << " ";
cout << "> Type your Working Status: ";
cout << " - Type 0 if Working ";
cout << " - Type 1 if Not-Working ";
cout << " - Your Working Status: ";
cin >> workingstatus;
cout << "Type your Employer's Telephone Number: ";
getline(cin, employertelephonenumber);
getline(cin, employertelephonenumber);
cout << " ";
//Student Number Selection
letter = firstname[0];
if (letter == 'A' || letter == 'a') { studentnumber = 2021010201; }
else if (letter == 'B' || letter == 'b') { studentnumber = 2021010202; }
else if (letter == 'C' || letter == 'c') { studentnumber = 2021010203; }
else if (letter == 'D' || letter == 'd') { studentnumber = 2021010204; }
else if (letter == 'E' || letter == 'e') { studentnumber = 2021010205; }
else if (letter == 'F' || letter == 'f') { studentnumber = 2021010206; }
else if (letter == 'G' || letter == 'g') { studentnumber = 2021010207; }
else if (letter == 'H' || letter == 'h') { studentnumber = 2021010208; }
else if (letter == 'I' || letter == 'i') { studentnumber = 2021010209; }
else if (letter == 'J' || letter == 'j') { studentnumber = 2021010210; }
else if (letter == 'K' || letter == 'k') { studentnumber = 2021010211; }
else if (letter == 'L' || letter == 'l') { studentnumber = 2021010212; }
else if (letter == 'M' || letter == 'm') { studentnumber = 2021010213; }
else if (letter == 'N' || letter == 'n') { studentnumber = 2021010214; }
else if (letter == 'O' || letter == 'o') { studentnumber = 2021010215; }
else if (letter == 'P' || letter == 'p') { studentnumber = 2021010216; }
else if (letter == 'Q' || letter == 'q') { studentnumber = 2021010217; }
else if (letter == 'R' || letter == 'r') { studentnumber = 2021010218; }
else if (letter == 'S' || letter == 's') { studentnumber = 2021010219; }
else if (letter == 'T' || letter == 't') { studentnumber = 2021010220; }
else if (letter == 'U' || letter == 'u') { studentnumber = 2021010221; }
else if (letter == 'V' || letter == 'v') { studentnumber = 2021010222; }
else if (letter == 'W' || letter == 'w') { studentnumber = 2021010223; }
else if (letter == 'X' || letter == 'x') { studentnumber = 2021010224; }
else if (letter == 'Y' || letter == 'y') { studentnumber = 2021010225; }
else { studentnumber = 2021010226; }
cout << " * Personal Information * ";
cout << "Student Number: " << studentnumber << " ";
cout << "Last Name: " << lastname << " ";
cout << "First Name: " << firstname << " ";
cout << "Middle Name: " << middlename << " ";
cout << "Auxiliary Name: " << auxiliaryname << " ";
cout << "Gender: " << gender << " ";
cout << "Birth Date: " << day << " - " << birthmonth << " - " << year << " ";
cout << "Birth Place: " << birthplace << " ";
cout << "Nationality: " << nationality << " ";
cout << "Legal Status: " << legalstatus << " ";
cout << "Religion: " << religion << " ";
cout << "Baptized In: " << baptizedin << " ";
cout << "Civil Status: " << civilstatus << " ";
cout << "Address Line 1: " << addressline1 << ", " << addressline2 << ", " << " ";
cout << "Address Line 2: " << addressline3 << ", " << addressline4 << ", " << country << " ";
cout << "Postal Code: " << postalcode << " ";
if (workingstatus == 0)
{
workingstatusview = "Working";
}
else
{
workingstatusview = "Non-Working";
}
cout << "Working Status: " << workingstatusview << " ";
cout << "Employer's Tel. No.: " << employertelephonenumber << " ";
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started