Question: Write a program that can be used to store a set of students data, and find out (a) the name of the students whose gpa

Write a program that can be used to store a set of students data, and find out (a) the name of the students whose gpa is less than 2, (b) students whose gpa is between 2 and 3

You need to use a struct called Student as given below:

struct Student

{

int ID;

string first;

string last;

float gpa;

int semesterHours;

int totalHours;

};

All the data are stored in an input file named student.txt. Your program should read the data in an array called students and then do both the exercises (a) and (b).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!