Write a program to compute for 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 following
format: Each line contains a student's first name, then one
space, then ten quiz scores all on one line. The quiz scores
are in whole number and are separated by one space. Your
program will take it input from this file and sends it
output to a second file. The data in the output file will be
exactly 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 line. This number will be the average of the
student's ten quiz scores. Use at least one function that
has file streams as all or some of its arguments.
No Answer is Posted For this Question
Be the First to Post Answer
What is polymorphism what is it for and how is it used?
What is virtual constructors/destructors?
Explain the concepts involved in Object Oriented programming.
What is encapsulation with real life example?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
Write a c++ program to display pass and fail for three student using static member function
WAP to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.
2 Answers CTS, Delhi University,
What is the differances between a abstract calss and interface
Why a "operator=(...)" when there is a copy ctor?
#include <iostream> using namespace std; int main() { int a = 3; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][2]; }