Question: #include #include using namespace std; ifstream inFile(values.txt); void read_marks(string *B00, int *c1, int *c2, int *c3, int n) { // opening the file with object
#include
ifstream inFile("values.txt");
void read_marks(string *B00, int *c1, int *c2, int *c3, int n) { // opening the file with object inFile for(int i=0; i void compute_gpa(string *B00, int *c1, int *c2, int *c3, float *gpa, int n) { // variable to store average marks float avg_marks; for(int i=0; i void write_marks(string *B00, int *c1, int *c2, int *c3, float *gpa, int n) { // opening or creating the file with object outFile ofstream outFile("output.txt"); outFile int main() { // Reading Number of Students int n; inFile >> n; // Declaring arrays string B00[n]; int c1[n], c2[n], c3[n]; float gpa[n]; // Calling Functions read_marks(B00, c1, c2, c3, n); compute_gpa(B00, c1, c2, c3, gpa, n); write_marks(B00, c1, c2, c3, gpa, n); } The input file looks like this: Output file looks like this: Question: 

![object inFile for(int i=0; i> B00[i] >> c1[i] >> c2[i] >> c3[i];](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3a1116b60d_51366f3a11109d5a.jpg)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
