Question: Write a C++ program to store 10 student names and grade point averages (GPAs) from the user. Display all student information in a tabular format.
Write a C++ program to store 10 student names and grade point averages (GPAs) from the user. Display all student information in a tabular format. Ensure that each column heading aligns correctly with its respective column and that each name (first and last) is capitalized. Finally, display each GPA with two significant decimals. For this assignment, you may download this sample code for reference. Sample inputs and outputs are as follows:
Sample Input (for only 3 students)
| Smith, Tom | 4.0 |
| Jones, Bob | 5.555 |
| Washington, George | 3.00 |
Sample Output (using input above)
| Name (Last, First) | GPA |
| Smith, Tom | 4.00 |
| Jones, Bob | 5.56 |
| Washington, George | 3.00 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
