Create a text file that contains student number (9-digit number), name , and GPA (a floating point number greater than 0.0).
Then write a C++ program that uses the file you created above to do the following:
a. Use loop to display the content of the file in a tabular format with the first row being a header row.
b. Display Average for students’ GPA.
c. Use While loop to display the list of all students with GPA less than 3.
d. Prompt the user to input certain name, then write to a file (names.txt) the number of all students with the same name.
Comments
Leave a comment