Computer Science, asked by dibyajyotiprust5102, 4 months ago

Write a program in which a class has three data members: name, roll no, marks of 5 subjects and a member function Assign() to assign the streams on the basis of average given below: Avg. Marks Stream avg>=90 Distinction avg>=75&&avg<90 FIRST CLASS avg>45&&avg<75 SECOUN CLASS avg>=45&&avg<60 THIRD CLASS avg<45 Fail

Answers

Answered by Anonymous
8

Answer:

#include #include using namespace std;class student{char s_name[50];int s_rno;float s_marks[5];char s_stream[25];void assign(){float average=this->avg(); ...

Explanation:

Hey friend here is your answer

Similar questions