Reference no: EM13166341
Create a program to read in 10 student grades data from file. The file contains student ID and scores for three exams.
Each row should contain 4 columns: here is my example below,
Student ID, Exam1 grade, exam2 grade, exam 3 grade
14524 89 78 95
25437 96 88 95
The program reads the grades for students, calculates average of three exams for each student, and puts out to another file (called Summarygrades.txt) Student ID average and letter grade: example below,
Student Id Average grade Letter grade
14524 87.3 B
...ETC....
Here's what I got so far:
#include <iostream>
#include <iomanip>
#include <fstream>
using namespace std;
int main()
{
double studentgrades, x;
ifstream infile;
char studentgrades[10];
//prompt user for file to be opened and declare what you're reading from
cout << "Please enter the student file" << endl;
cin >> studentgrades;
cout << "The file you entered is: " << studentgrades << endl;
//Prompt for error
if (!infile)
{
cerr << " Error opening file.\n ";
exit(1);
}
//file opens
for (int i = 0; i < 10; i++);
{
}
}
Impressionist style of brilliant color and vibrant brushwor
: What pair of painters best defines the pure impressionist style of brilliant color and vibrant brushwork?
|
What is the empirical formula of the unknown compound
: An unknown compound contains only C, H, and O. Combustion of 5.50 g of this compound prodced 11.0 g of CO2 and 4.50 g of H2O. What is the empirical formula of the unknown compound.
|
State what is the volume and uncertainty
: The cube has an edge length of 0.26 ± 0.03 m. The volume of a cone is 1/3(pie)r^2h . What is the volume and uncertainty of the added water?
|
Compute the standard cost of one unit of product
: Compute the budgeted amounts for 2012 for direct materials to be used, direct labor, and applied overhead and compute the standard cost of one unit of product.
|
Calculates average of three exams for each student
: The program reads the grades for students, calculates average of three exams for each student, and puts out to another file (called Summarygrades.txt) Student ID average and letter grade: example below,
|
At what celsius temperature did water boil on the top
: Mt. Kilimanjaro in Tanzania is the tallest peak in Africa (19,340 ft.). On a particular day, the barometric pressure at the top of the mountain was 330 torr. On that day, at what Celsius temperature did water boil on the top of the mountain?
|
How many grams of water where in the sample
: A 45g piece of ice at 0 degree C is added to a sample of water at 21 degree C. All of the ice melts and the temp of water decreases to 0 degree C. How many grams of water where in the sample?
|
Explain what concentration of this base
: What concentration of this base will produce a pH of 10.13?
|
At what temperature will it burst
: a flask that can withstand an internal pressure of 2500 torr, but no more, is filled with a gas at 21.O C and 780 torr and heated. At what temperature will it burst?
|