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.....

Is there something wrong? I see a few things, but they should become apparent after you try to compile it.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.