USING C++ PROGRAMMING 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!
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
USING C++
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!
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)