Create a program to compute numeric grades for a course

Assignment Help Computer Engineering
Reference no: EM1334462

You can add in to the program I made below. It is incomplete but you can use it so that you would have a quicker time to complete the program. Step by step explanations would help me since I am an online learner. The question is as follows:

Write a program to compute 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 last name, then one space, then the student's first name, then one space, then ten quiz scores all on one line. The quiz scores are whole numbers and are separated by one space. Your program will take its input from this file and send its output to a second file. The data in the output file will be 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.

// Class average program with counter-controlled repetition

#include <iostream>

using std::cout;
using std::cin;
using std::end1;

const int MAX_GRADES = 10
// function main begins program execution
int main()
int total; // sum of grades input by user
int gradeCounter; // number of grade to be entered next
int grade; // grade value
int average; // average of grades

// initialization phase
total = 0; // initialize total
gradeCounter = 0; // initialize loop counter

// processing phase
while (gradeCounter<MAX_GRADES)
{ // loop MAX_GRADES times
cout << "Enter grade:"; // prompt for input
cin >> grade; // read grade from user
total = total + grade; // add grade to total
gradeCounter = gradeCounter + 1; // increment counter

// termination phase
average = total / MAX_GRADES; // integer division

// display result
cout << "Class average is " << average;
return 0; // indicate program
} // end function main

Reference no: EM1334462

Determining pearson correlation coefficient

Determining the Pearson correlation coefficient you need to write down the program computing Pearson correlation coefficient utilizing the parallel loop templates from the I

Write a simple game akin to old text adventure games

This assignment asks you to write a simple game akin to old text adventure games like Adventure: You'll write two programs that will introduce you to programming in C on UNIX

Write the code to dynamically allocate memory

Given the variable ip, already declared as a pointer to an integer, write the code to dynamically allocate memory for a single integer value, assign the resulting pointer to

Conducting the forensic investigation

Describe the purpose of several initial reviews being conducted by forensics investigator (e.g., time lines, technical skills, procedures).

Applications of electronic data in health care field

Analyze the recent applications of the electronic data interchange within the health care field and find which is the most promising. Describe your rationale.

Core memory consists of the cpu and arithmetic logic

Core memory consists of the CPU and arithmetic logic unit but not the attached cache memory - Does the implementation of cache memory on multi-core chips vary from one manufac

Agile method of software development

Explain the Scrum method as it relates to the software development process - Explain where the software architecture process fits into the Agile method of software development

Assign commands toward handling databases

Construct a vector x that contains integers, real numbers, chains of characters, and several NA missing values. Test for the positions of the missing values using the


Write a Review

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