1. To create a class "Student". Hidden members: 1.a faculty Nº: string; eg "20621721" 1.b Student's name: string, 1.c Cu
Posted: Mon May 02, 2022 11:59 am
Please write in C++
1. To create a class "Student". Hidden members: 1.a faculty Nº: string; eg "20621721" 1.b Student's name: string, 1.c Current control points: integer 1.d Points from the exam task: integer Public: 1.1 Constructors: default 1.2 Explicit 1.3 Reading articles 1.4 Calculates and returns the larger value between 1.c and 1.d. 1.5 Calculates and returns the smaller value between 1.c and 1.d. 1.6 Calculates and returns the average value calculated for 1.c and 1.d. 1.7 Redefine >> (see data format in 2.1 and example at the end of the table) 1.8 Redefines << 1.9 Redefines <(by faculty.Nº)
2. To create an "Assessment" class Hidden members: 2.a Evaluator name: string, eg "MSTeamKST 2.b Vector of objects of class 1. "Student". Public members. Constructor: 2.1 Explicit with data file name - produces an exception. File format (see example at the end): <Assessor's name> <CR>(<student's faculty> <SP> <student's name> <SP> <Points from current control> <SP><Exam Task Points> <CR>) * Functions: 2.2 Read / change Assessor Name 2.3 Creates and returns a vector of real numbers containing the points of current control of students in 2.b. 2.4 Creates and returns a vector of real numbers containing the test points of students in 2.b. 2.5 Creates and returns a vector of real numbers greater than between the points of current control and the points from the students' exam in 2.b. 2.6 Creates and returns a vector of real numbers containing the smaller ones between the points of current control and the points of the students exam in 2.b. 2.7 Creates and returns a vector of real numbers from the mean between the points from current control and the points from the students exam in 2.b.
2.8 Static function with four parameters - two vectors of real numbers and two real numbers (k1 and k2) Calculates / returns a vector of real numbers. Each element (i) of the first vector parameter) is multiplied by k1, each element (i) of the second (parameter) on k2 and the sum of the elements are writes to the i-th element of the result 2.9 Redefines >> 2.10 Redefines <<
3. Main function 3.1 Create an object of 2 and output it 3.2 Formation of vectors, result from 2.3, 2.4, 2.5, 2.6 and outputs them 3.3. Starts 2.8. using the results obtained under 3.2. couples vectors and with coefficients (0.6 and 0.4) gets a vector with real numbers. Sum up the elements of the resulting vector. 3.4. Determine for which pair of vectors the sum obtained is maximum. Derive the vectors and the sum. Exception handling. Displays: MSTeamKST 20621301 THEODORA 40 60 20621302 ANGEL 40 60 20621332 YUSUF 60 40 20621333 HAKAN 60 40 20621335 SILVIA 60 40
1. To create a class "Student". Hidden members: 1.a faculty Nº: string; eg "20621721" 1.b Student's name: string, 1.c Current control points: integer 1.d Points from the exam task: integer Public: 1.1 Constructors: default 1.2 Explicit 1.3 Reading articles 1.4 Calculates and returns the larger value between 1.c and 1.d. 1.5 Calculates and returns the smaller value between 1.c and 1.d. 1.6 Calculates and returns the average value calculated for 1.c and 1.d. 1.7 Redefine >> (see data format in 2.1 and example at the end of the table) 1.8 Redefines << 1.9 Redefines <(by faculty.Nº)
2. To create an "Assessment" class Hidden members: 2.a Evaluator name: string, eg "MSTeamKST 2.b Vector of objects of class 1. "Student". Public members. Constructor: 2.1 Explicit with data file name - produces an exception. File format (see example at the end): <Assessor's name> <CR>(<student's faculty> <SP> <student's name> <SP> <Points from current control> <SP><Exam Task Points> <CR>) * Functions: 2.2 Read / change Assessor Name 2.3 Creates and returns a vector of real numbers containing the points of current control of students in 2.b. 2.4 Creates and returns a vector of real numbers containing the test points of students in 2.b. 2.5 Creates and returns a vector of real numbers greater than between the points of current control and the points from the students' exam in 2.b. 2.6 Creates and returns a vector of real numbers containing the smaller ones between the points of current control and the points of the students exam in 2.b. 2.7 Creates and returns a vector of real numbers from the mean between the points from current control and the points from the students exam in 2.b.
2.8 Static function with four parameters - two vectors of real numbers and two real numbers (k1 and k2) Calculates / returns a vector of real numbers. Each element (i) of the first vector parameter) is multiplied by k1, each element (i) of the second (parameter) on k2 and the sum of the elements are writes to the i-th element of the result 2.9 Redefines >> 2.10 Redefines <<
3. Main function 3.1 Create an object of 2 and output it 3.2 Formation of vectors, result from 2.3, 2.4, 2.5, 2.6 and outputs them 3.3. Starts 2.8. using the results obtained under 3.2. couples vectors and with coefficients (0.6 and 0.4) gets a vector with real numbers. Sum up the elements of the resulting vector. 3.4. Determine for which pair of vectors the sum obtained is maximum. Derive the vectors and the sum. Exception handling. Displays: MSTeamKST 20621301 THEODORA 40 60 20621302 ANGEL 40 60 20621332 YUSUF 60 40 20621333 HAKAN 60 40 20621335 SILVIA 60 40