In golf par represents a standard number of strokes a player
Solution
c++......................
// comments
class player
{
char name[100];
int age[100];
int par_score[100][9]; // row represent no of family mem
// par_score[1][4] means player 1 with par 4 : row represent player while column represent which par
}s1; // obj created
main()
{
int n,i,j; // i/p the no of family members present(n)
cout<<\"enter the tot count of family member\";
cin>>n;
for(i=1;i<=n;i++)
{
cout<<\"enter the name\";
cin>>s1.name[i];
cout<<\"\ \"<<\"enter the age\";
cin>>s1.age[i];
for(j=1;j<=9;j++) // eg j loop represent the par no while i loop represent family member
{
cout<<\"\ \"<<\"enter the par_score:\"<<s1.par_score[j];
cin>>s1.par_score[i][j];
}
}
for(i=1;i<=n;i++)
{
cout<<\"\ \"<<i<< \"the mem name\"<<\"::\"<<s1.name[i]<<\"\ \"<<\"the mem age\"<<s1.age[i];
for(j=1;j<=9;j++)
{
cout<<\"player:\"<<i<<\"::\"<<\"par no:\"<<j<<\"::\"<<s1.par_score[i][j]; // this will print player no, par_no(1-9) and score
} //j loop ends
// put condition to check every par score for each family individual at this point
//.................................
if(s1.age[i]<=4)// first will check player (i) age and work accordingly
{
else if(s1.age[i]<=7)
{
else if(s1.age[i]<=11)
{
else if(s1.age[i]<=15)
{
else if(s1.age[i]>=16)
{
} //i loop ends

