Write a program that uses a struct named Student to store information about a Student. You will be reading from a text i

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a program that uses a struct named Student to store information about a Student. You will be reading from a text i

Post by answerhappygod »

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:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply