I am beginner to the c++ program, and have one requirement as my assignment and need help.
can any one help me with the programme
Requirement:
Given the global structure type:
Typedef stuct
{
Char name[30];
long ssn;
int grades[5];
float average;
} student;
Write a main() function that;
1. Creates an object of type STUDENT
2. PASSES Address of this ob ject to a function called GetData();
3. Passes the object buy value to a function called WriteData();
Then write the function GetData() that :
4. Receives the address of the structure object as one of its formal arguments
5. Prompts the terminal operator and receives the name field
6. Prompts the terminal operator and receives the ssn field
7. Prompts the terminal operator and lops 5 times to receive all entries in grades array
8. Computes the floating point average of the 5 grades and stores it into the filed array
9. Returns control back to main()
Finally, write the function WriteData() that
10. Prints a title line to identify the Name, SSN, and average
11. Prints the name, ssn, and the average
12. Return control back to main()