Calculates average of three exams for each student

Assignment Help C/C++ Programming
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++);
   {

   }

}

Reference no: EM13166341

Questions Cloud

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?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd