Question: Create the projects talked about in the class session. Use the attached files to finish the project. You need to complete the functions below found

Create the projects talked about in the class session. Use the attached files to finish the project.

You need to complete the functions below found in the ClassProject file:

points = getExtra(); // to ask the user to enter the extra points to add to the grades. Place this function in math.h file updateGrades(grade, points, gradeCount); // to update the grades with the extra points. Place this function in math.h file printGrade(grade, gradeCount); // just print the grades on the screen. Place this function in display.h file

Place these function in the files math, math and display respectively.

Documents provided:

_______________________________________________

Class Project

#include using namespace std;

#include "math.h" #include "display.h"

int main(){ int grade[10]; int i, points, gradeCount;

gradeCount = readGrades(grade, 10);

points = getExtra();

updateGrades(grade, points, gradeCount);

printGrade(grade, gradeCount, gradeCount);

return 0; }

______________________________________

Display

void header(string); // function declaration void printGrade(int g[], int gc); void header(string mesg){ cout << "-------------------- "; cout << mesg << endl; cout << "-------------------- "; }

void printGrade(int g[], int gc){

} __________________________________

Math

int add(int, double); // function add declaration of int + int int add(int, int); // function add declaration of int + double int readGrades(int [], int ); int getExtra(); void updateGrades(int [], int); int add(int x, int y){ // function definition int z; z=x+y; return z; }

int add(int x, double y){ // function definition int z; z=x+(int)y; return z; }

int readGrades(int g[], int c){ int i, count; do { cout << "How many grades to enter(less than 11): "; cin >> count; if(count > c){ cout << "Cannot read more than " << c << " grades "; } }while(count > c); for(i=0;i> g[i]; } return count; }

int getExtra(){ }

void updateGrades(int g[], int points, int gc){ }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!