Write a program that uses a struct named Student to store information about a Student. You will be reading from a text i
Posted: Sun Jul 03, 2022 11:22 am
Write a program that uses a struct named Student tostore information about a Student. You will be reading from a textinput file into an array (size 20) of Student structs. The programwill contain the following files:
students.txt - Text file with student information
(1) Build the Student struct with the followingspecifications in the files(Student.h and Student.cpp):
You may NOT use strings.
(2) Create the following functions(Student.h and Student.cpp):
(3) In main() (main.cpp), openthe students.txt file and pass tothe loadValues() function to read the student data intothe array. Then call the printValues() function to printout the list of students.
(4) Program input and output:
File input, students.txt:
Program output:
Use the setw() and ``left``` manipulators to createcolumns for printing - 15 characters for Student First Name and 15characters for Student first Name, and 3 characters for GPA.
(5) Notes:
students.txt - Text file with student information
(1) Build the Student struct with the followingspecifications in the files(Student.h and Student.cpp):
You may NOT use strings.
(2) Create the following functions(Student.h and Student.cpp):
(3) In main() (main.cpp), openthe students.txt file and pass tothe loadValues() function to read the student data intothe array. Then call the printValues() function to printout the list of students.
(4) Program input and output:
File input, students.txt:
Program output:
Use the setw() and ``left``` manipulators to createcolumns for printing - 15 characters for Student First Name and 15characters for Student first Name, and 3 characters for GPA.
(5) Notes: