Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++, do not use array, I need th part , I need help to see how can I grab the next line ? This is

C++, do not use array, I need th part , I need help to see how can I grab the next line ? This is what I did(show in picture), but it got infinity loop.
Sample file:
Anna Joe 1 2 10 5 7 8 9
Mary Johnson 16 23 10 4 5 6
John Paul 12 4 66 23 6 9 6
image text in transcribed
image text in transcribed
Write a program to compute numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the fol- lowing format: Each line contains a student's last name, then one space, then the student's first name, then one space, then ten quiz scores all on one line. The quiz scores are whole numbers and are separated by one space. Your program will take its input from this file and send its output to a second file. The data in the output file will be the same as the data in the input file except that there will be one additional number (of type double) at the end of each 2. tudent's ten quiz scores. I is is being done as a class assignment, obtain the file names from your instructor. Use at least one function that has file streams as all or some of its arguments

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

Step: 3

blur-text-image

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

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions