fbpx

StudentInfo

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. Sample inputs and outputs are as follows:
Sample Input (for only 3 students)
*****, ***** 4.0
Jones, Bob 5.555
*****, ***** 3.00
Sample Output (using input above)
Name (Last, First) GPA
*****, ***** 4.00
Jones, Bob 5.56
*****, ***** 3.00

×
New Download