The students' success data is recorded in N lines of characters, each of which has the following structure: last name, etc., number of the record book, grades in five subjects. Data fields are separated by at least one character that is not used to write the specified data. Display the names of students whose average score is less than the specified value.
#include "stdafx.h" #include <string.h> #include <math.h> #include <iostream> using namespace std; int main() { char name[200], surname[200]; int number, mark[6]; int mmark; int k = 0; for (int i = 0; i < 6; i++) { cout << "Input Name, Surname, number and mark of " << i + 1 << " student: " << endl; cin >> name >> surname >> number >> mark[i]; cout << mark[0] << endl; } cout << "Input your medium mark: " << endl; cin >> mmark; cout << k << endl; return 0; } I do not know how to set estimates and find their arithmetic average. Tell me.!