You are on page 1of 1

#include<iostream>

#include<fstream>
#include<iomanip>

using namespace std;

class student
{
int idnum;
char name[50];
int physics, chemistry, mathematics,
english, comscience;
double per;
char grade;
void calculate();
public:
void getdata();
void showdata() const;
void show_tabular() const;
int getIDNum() const;
};

void student::calculate()
{
per=(physics+chemistry+mathematics
+english+comscience)/5.0;
if(per>=90)

You might also like