PROBLEM: Create a program to generate the seat plan/no of a certain class/activity. Conditions: Display the list of engineering programs with corresponding code between 1-10. The user will be asked to choose a code. Followed by the user will be asked to enter the number of students. Lastly, the user will be asked to enter each name of the students using the format LASTNAME_FIRSTNAME. Just use single-name/word format for SN and FN Use the concept of an array to display the names of the students in alphabetical order with corresponding seat numbers. Test Case #1: List of Engineering Programs: [1] CE [2] CHE [3] EE [4] ECE [5] IE [6] ME Please Enter the Program Code: 6 Please Enter the Number of Students: 4 Please Enter the Names of the Student (use the format: LN_FN): Cruz_John Aquino_Maria Delgado_Anna Balagtas_Peter Below is your Seat Plan: ME Seat No. 1 - Aquino_Maria ME Seat No. 2 - Balagtas_Peter ME Seat No. 3 - Cruz_John ME Seat No. 4 - Delgado_Anna Test Case #2: List of Engineering Programs: [1] CE [2] CHE [3] EE [4] ECE [5] IE [6] ME Please Enter the Program Code: 4 Please Enter the Number of Students: 5 Please Enter the Names of the Student (use the format: LN_FN): Marcos_Bongbong Robredo_Leni Moreno_Isko Lacson_Ping Pacquiao_Manny Below is your Seat Plan: ECE Seat No. 1- Lacson_Ping ECE Seat No. 2 - Marcos_Bongbong ECE Seat No. 3 - Moreno_Isko ECE Seat No. 4 - Pacquiao_Manny ECE Seat No. 5 - Robredo_Leni Test Case #3: List of Engineering Programs [1] CE [2] CHE [3] EE [4] ECE [5] IE [6] ME Please Enter the Program Code: 7 INVALID CODE! Please Try Again! Test Case #4: List of Engineering Programs [1] CE [2] CHE [3] EE [4] ECE [5] IE [6] ME Please Enter the Program Code: 5 Please Enter the Number of Students: A INVALID CODE! Please Try Again!
PROBLEM: Create a
Use the concept of an array to display the names of the students in alphabetical order with corresponding seat numbers.
Test Case #1: List of Engineering Programs: [1] CE [2] CHE [3] EE [4] ECE [5] IE [6] ME
Please Enter the Program Code: 6
Please Enter the Number of Students: 4 Please Enter the Names of the Student (use the format: LN_FN): Cruz_John Aquino_Maria Delgado_Anna Balagtas_Peter Below is your Seat Plan: ME Seat No. 1 - Aquino_Maria ME Seat No. 2 - Balagtas_Peter ME Seat No. 3 - Cruz_John ME Seat No. 4 - Delgado_Anna
Test Case #2: List of Engineering Programs: [1] CE [2] CHE [3] EE [4] ECE [5] IE [6] ME Please Enter the Program Code: 4 Please Enter the Number of Students: 5 Please Enter the Names of the Student (use the format: LN_FN): Marcos_Bongbong Robredo_Leni Moreno_Isko Lacson_Ping Pacquiao_Manny Below is your Seat Plan: ECE Seat No. 1- Lacson_Ping ECE Seat No. 2 - Marcos_Bongbong ECE Seat No. 3 - Moreno_Isko ECE Seat No. 4 - Pacquiao_Manny ECE Seat No. 5 - Robredo_Leni
Test Case #3: List of Engineering Programs [1] CE [2] CHE [3] EE [4] ECE [5] IE [6] ME Please Enter the Program Code: 7 INVALID CODE! Please Try Again!
Test Case #4: List of Engineering Programs [1] CE [2] CHE [3] EE [4] ECE [5] IE [6] ME Please Enter the Program Code: 5 Please Enter the Number of Students: A INVALID CODE! Please Try Again!
Step by step
Solved in 2 steps with 3 images