Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Lab Instructions: The file lab6data.txt holds the names and grades for the students in a math class. Your program will calculate and display the

C++

Lab Instructions:

The file lab6data.txt holds the names and grades for the students in a math class. Your program will calculate and display the average for each student, as well as their highest grade, and calculate and display the average for the whole class, as well as the highest grade.

The number of grades for each student is unknown.

The last grade for each student will be -1, which is not an actual grade.

The number of students is unknown. You must keep reading in student data until there is no more

The class average is the average of the students averages.

If a student has no grades (except for the -1), their average is 0.

If there are no students in the class, the class average is 0.

Hint: You should not try to read in all the data from the file before doing any calculations or output. Much of it can be done one student at a time. Figure out the problem for one student, then determine how to accomplish that for a number of students

For example, if the data file contains the following data:

Sue Storm 95 76 89.3 99.2 91 -1

Reed Richards 76 85.5 89.25 -1

Bruce Banner 54.5 67.8 75 88.3 -1

image text in transcribed

image text in transcribed

lab6data.txt

Please use internal documentation

For the argument below: assign symbolic variable names write the argument form use rules of inference to show conclusion follows from the (state the rales used similar to example 13, page 71 tet) Everyone in the discrete mathematics class loves calculus. Therefore, Someone who loves proofs hsver proofs. Someone in the discrete mathematics class bas never taken

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

The Structure Of The Relational Database Model

Authors: Jan Paredaens ,Paul De Bra ,Marc Gyssens ,Dirk Van Gucht

1st Edition

3642699588, 978-3642699580

More Books

Students also viewed these Databases questions