Solving: Multidimensional Arrays and Vectors
Not what you're looking for?
I need the following in C++:
A certain professor has a file containing a table of student grades, where the first line of the file contains the number of students and the number of scores in the table; each row of the table represents the exam scores of a given student and each column represents the scores on a given exam. The maximum possible score on each exam was 100 points. Write a program that, given the name of such a file, generates a report summarizing the overall percentage for each student and the average score on each exam.
Purchase this Solution
Solution Summary
Solution Preview
See below and attached files. Attached S.TXT is an example input file.
StudentScores.cpp : Defines the entry point for the console application.
#include "stdafx.h"
#include
#include
#include
#include
#include
using namespace std;
static int num = 0 ; // number of students
static int num_scores = 0 ; // number of scores
static const int MAX_SCORE = 100 ;
static char file_name [256] ;
void ReadData (char* pName) ;
int _tmain(int argc, _TCHAR* argv[])
{
cout << "Enter a file name which contains student ...
Purchase this Solution
Free BrainMass Quizzes
Multiplying Complex Numbers
This is a short quiz to check your understanding of multiplication of complex numbers in rectangular form.
Exponential Expressions
In this quiz, you will have a chance to practice basic terminology of exponential expressions and how to evaluate them.
Know Your Linear Equations
Each question is a choice-summary multiple choice question that will present you with a linear equation and then make 4 statements about that equation. You must determine which of the 4 statements are true (if any) in regards to the equation.
Geometry - Real Life Application Problems
Understanding of how geometry applies to in real-world contexts
Graphs and Functions
This quiz helps you easily identify a function and test your understanding of ranges, domains , function inverses and transformations.