include<iostream>

using namespace std;

struct Student_Record{
int id_num;
int assignment;
int quiz;
int test;
char grade;
};
void get_data(Student_Record &p);
int calc_mark(Student_Record p);
Student_Record read_data();
void print_all(const struct Student_Record p{});

int main()
{
Student_Record amir,naim, amirNaim[2];
int amirtotal_mark, naimtotal_mark;

get_data (amir);
amirtotal_mark=calc_mark(amir);
if (amirtotal_mark>=60)
amir.grade ='p';
else
amir.grade='F';

naim= read_data();
amirNaim[0]=amir;
amirNaim[1]=naim;

naimtotal_mark=calc_mark(amirNaim[1]);
if (naimtotal_mark>=60)
amirNaim[1].grade='P';
else
amirNaim[1].grade='F';

print_all(amirNaim);

system("pause");
return 0;

}

Please guide me.....

yes the program not complete....
this question is complete the program.The program ask the user to enter mark for assignment,quiz and test for amir and naim,the calculates the total mark using simple formula (assignment+quiz+test)/3.Finally the program print report card for both students and the report display all content of the structure.You required to write definitions for the given 4 function performing task in the program.

You required to write definitions for the given 4 function performing task in the program.

Have a go at writing the functions, then post your code and explain what you're having trouble with.
**when you post any code, select the code portion and press 'Code' in menu.

This article has been dead for over six months. Start a new discussion instead.