Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Program is to define a class as student:
Program is to define a class as student and display the records specific depending upon the number
class student
{
private:
int roll,i;
char name[20],grade;
float per;
int marks[5],total;
int calculate()
per=total/5;
return per;
}
public:
student()// constructor assigning initial values
total=0;
void input();
void disp();
// void disp_spe();
};
void student::input()
cout<<" enter your name "< gets(name); cout<<" enter your roll no. "< cin>>roll; cout<<" enter the marks of five subjects "< for (i=0;i<=4;i++) { cin>>marks[i]; total=total+marks[i]; } } void student::disp() { clrscr(); cout<<" R E P O R T C A R D "<<"\n\n"; cout<<" The name is : "< cout<<" The marks of all subjects is :"<<"\n"; for (i=0;i<=4;i++) { cout< } calculate(); cout<<" The percentage is :"< if(per>=85) cout<<" The grade is : A"; else if(per>40) cout<<" the grade is : D"; else cout<<" The grade is : B"; } void student::disp_spe() { int rollno; cout<<" enter the students roll no. you want report card " cin>>rollno; if( void main() { clrscr(); student *data; data=new student; data->input(); data->disp(); data->disp_spe(); delete data; }
gets(name);
cout<<" enter your roll no. "< cin>>roll; cout<<" enter the marks of five subjects "< for (i=0;i<=4;i++) { cin>>marks[i]; total=total+marks[i]; } } void student::disp() { clrscr(); cout<<" R E P O R T C A R D "<<"\n\n"; cout<<" The name is : "< cout<<" The marks of all subjects is :"<<"\n"; for (i=0;i<=4;i++) { cout< } calculate(); cout<<" The percentage is :"< if(per>=85) cout<<" The grade is : A"; else if(per>40) cout<<" the grade is : D"; else cout<<" The grade is : B"; } void student::disp_spe() { int rollno; cout<<" enter the students roll no. you want report card " cin>>rollno; if( void main() { clrscr(); student *data; data=new student; data->input(); data->disp(); data->disp_spe(); delete data; }
cin>>roll;
cout<<" enter the marks of five subjects "< for (i=0;i<=4;i++) { cin>>marks[i]; total=total+marks[i]; } } void student::disp() { clrscr(); cout<<" R E P O R T C A R D "<<"\n\n"; cout<<" The name is : "< cout<<" The marks of all subjects is :"<<"\n"; for (i=0;i<=4;i++) { cout< } calculate(); cout<<" The percentage is :"< if(per>=85) cout<<" The grade is : A"; else if(per>40) cout<<" the grade is : D"; else cout<<" The grade is : B"; } void student::disp_spe() { int rollno; cout<<" enter the students roll no. you want report card " cin>>rollno; if( void main() { clrscr(); student *data; data=new student; data->input(); data->disp(); data->disp_spe(); delete data; }
for (i=0;i<=4;i++)
cin>>marks[i];
total=total+marks[i];
void student::disp()
clrscr();
cout<<" R E P O R T C A R D "<<"\n\n";
cout<<" The name is : "< cout<<" The marks of all subjects is :"<<"\n"; for (i=0;i<=4;i++) { cout< } calculate(); cout<<" The percentage is :"< if(per>=85) cout<<" The grade is : A"; else if(per>40) cout<<" the grade is : D"; else cout<<" The grade is : B"; } void student::disp_spe() { int rollno; cout<<" enter the students roll no. you want report card " cin>>rollno; if( void main() { clrscr(); student *data; data=new student; data->input(); data->disp(); data->disp_spe(); delete data; }
cout<<" The marks of all subjects is :"<<"\n";
cout< } calculate(); cout<<" The percentage is :"< if(per>=85) cout<<" The grade is : A"; else if(per>40) cout<<" the grade is : D"; else cout<<" The grade is : B"; } void student::disp_spe() { int rollno; cout<<" enter the students roll no. you want report card " cin>>rollno; if( void main() { clrscr(); student *data; data=new student; data->input(); data->disp(); data->disp_spe(); delete data; }
calculate();
cout<<" The percentage is :"< if(per>=85) cout<<" The grade is : A"; else if(per>40) cout<<" the grade is : D"; else cout<<" The grade is : B"; } void student::disp_spe() { int rollno; cout<<" enter the students roll no. you want report card " cin>>rollno; if( void main() { clrscr(); student *data; data=new student; data->input(); data->disp(); data->disp_spe(); delete data; }
if(per>=85)
cout<<" The grade is : A";
else if(per>40)
cout<<" the grade is : D";
else
cout<<" The grade is : B";
void student::disp_spe()
int rollno;
cout<<" enter the students roll no. you want report card "
cin>>rollno;
if(
void main()
student *data;
data=new student;
data->input();
data->disp();
data->disp_spe();
delete data;
A:BinaryHeap.h ------------ #ifndef BINARY_HEAP_H_ #define BINARY_HEAP_H_ #include "dsexceptions.h" #include "vector.h" // BinaryHeap class // CONSTRUCTION: wi
Why PHP is sometimes called as embedded scripting language? PHP is a high level language that is used to allow users to write and understand it in human readable form and also
smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send
what is cexplain
A cl a s s c a n b e d e f i n e d i n s i d e a b l o c k o r f u n c t i o n. T h i s t yp e cla s s i s known
wap to read an employee salary and calculate DA,HRA,pf,GROSS,NET conditions:- BASIC DA HRA PF >10000 7% 9% 10% & >20000 9% 11% 15% &
Is it probable to encompass Virtual Constructor? If yes, how? If not, Why?
There are ''n'' ants on a ''n+1'' length rod. The ants are numbered from 1 to n and are initially placed at positions starting from position 1 till position n. They are moving eith
Implement the search property from catalogue menu option. After selecting this option the user should be asked to specify the property using the following sub-menu: 1. Specif
Define a class polynomial with three private data members a, b and c of type double to represent the coefficient of two degree polynomial(ax^2+bx+c). Include a constructor in a pol
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd