求帮帮忙解决问题
write a program to get an outout as a figure below:a)They are two classes which ProfileStudent and MarkStudent.
Class MarkStudent is a friend to a class ProfileStudent.
b)class ProfileStudent will have name and ic with data type character as a variable
and set the acces specifier as private. It also has function setData that accept two
variables above as a pointer in the parameter list.
c)While MarkStudent will have mark1, mark2 and total with data type float.The function
is setMark,calculateMark and display.
Output Like This :
Name : Christina
IC : 901221
Mark of test 1 : 90
Mark of test 2 : 55
Name : Jacky
IC : 860912
Mark of test 1 : 80
Mark of test 2 : 56