OneCompiler

Task1

323

CPP code (C++)
will that will perform >
a struct
Subject area:
Higher professional education
Structural data type:
The final assessment of the student in the discipline (rating)
Elements of the structure:
Student's full name (name)
Student number (number)
Specialty (speciality)
Group (group)
Name of the discipline (course)
Semester number (semester)
Final score on a 100-point scale (mark)
Task:

  1. Display the full name of all students who received unsatisfactory
    grades (less than 60 points) in a given semester. The semester number is entered from the keyboard.
  2. Select the student with the highest final grade in the discipline.

keep in mind
the unsatisfactory mark will be less than 60 , the program should print out the student with less than 60 , the highest mark student , the code should read the inputs from a file.txt , the subjects that will be inputted not more than 8 , can be name sub1 sub2 .... , if there is any improvements on the code will be welcomed.