Hello, i'm a begginer in C++ and in programming, and i was thinking if anyone can help me solve some problems that my professor gave me.
The First Homework:
On the following program complete(Fullfill) the implementation everywhere where the sentence (be implemented) is : //Be implemented : ....
// Programi struct3
#include <iostream>
using namespace std;
struct person
{
char name[8],city[10];
int year;
int Nr_I_Exams;
int Grades[30];
int Grade_Average()
{
//Implement the method witch tells(sets) the average grade.
}
int Grade_Minimal()
{
//Implement the method witch tells(sets) the minimal grade.
}
int Grade_Max()
{
//Implement the method witch tells(sets) the maximal grade.
}
};
int main()
{
person student[4];
//Implement : For every student insert the following informations,where you present iteratorin of rings
cout << "\nInformations from Keyboard\n\n";
cout << "Name .....: ";
cin >> student[i].name;
cout << "City ...: ";
cin >> student[i].city;
cout << "Year.....: ";
cin >> student[i].year;
//Implement: Tell the grades number that is given
/ Implement: Put every grade on the structure list
// Implement: Enter the number of grades given
// Implement:Write the code where for student for example with number 1, 2 , 3 or 4, written Name, Surname,The number of grades given,minimal grade also average grade.
// Implement: Write the code where the notes are given for the student with highest average grade.
// Implement: Write the code where the notes are given for the student with most exams passed.
return 0;
}
The First Homework:
On the following program complete(Fullfill) the implementation everywhere where the sentence (be implemented) is : //Be implemented : ....
// Programi struct3
#include <iostream>
using namespace std;
struct person
{
char name[8],city[10];
int year;
int Nr_I_Exams;
int Grades[30];
int Grade_Average()
{
//Implement the method witch tells(sets) the average grade.
}
int Grade_Minimal()
{
//Implement the method witch tells(sets) the minimal grade.
}
int Grade_Max()
{
//Implement the method witch tells(sets) the maximal grade.
}
};
int main()
{
person student[4];
//Implement : For every student insert the following informations,where you present iteratorin of rings
cout << "\nInformations from Keyboard\n\n";
cout << "Name .....: ";
cin >> student[i].name;
cout << "City ...: ";
cin >> student[i].city;
cout << "Year.....: ";
cin >> student[i].year;
//Implement: Tell the grades number that is given
/ Implement: Put every grade on the structure list
// Implement: Enter the number of grades given
// Implement:Write the code where for student for example with number 1, 2 , 3 or 4, written Name, Surname,The number of grades given,minimal grade also average grade.
// Implement: Write the code where the notes are given for the student with highest average grade.
// Implement: Write the code where the notes are given for the student with most exams passed.
return 0;
}