Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is c++ Write a program that will open and read in data containing student names followed by their four grades separated by spaces on

This is c++

Write a program that will open and read in data containing student names followed by their four grades separated by spaces on each line of the input file (download input.txt linked above). You should store the data for each student and their four grades within 5 parallel vectors of the appropriate data type. Note: the student name vector is a vector of strings and the rest are vectors of either floats or doubles. Once you have read in all of the names, then you should close your input file and start a new loop to process and calculate the average grade for each student one at a time where you will write out each students name and their course average line by line to your output file. Then close the output file.

This is what is on the input.txt

Alice 92 87 94 99 Chris 91 96 93 100 Eric 88 82 85 87 John 52 68 63 72 Martin 33 48 52 69 Catherine 72 78 88 89 Victoria 91 96 93 100

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Bachelors degree in Information Systems or Statistics

Answered: 1 week ago

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago