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 palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome
C Program for FUNCTION OF MERGE #include conio.h> #include stdio.h> char cot(char a[],char b[]); void main() { char a[50],b[50]; clrscr()
#include #include using namespace std; class Book { private: string title; int iD; int year_pub; string author; public: string getTitle(); int getId(); int getYear_Pub(); st
Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b
#padovan string program in java // aakash , suraj , prem sasi kumar kamaraj college program 1 : package test.padovanstring; public class PadovanString {
Prepare a MT4 EA to clone MT4 Trades to a Binary Options Platform Project Description: I want an EA that clones MT4 Trades to Globaltrader365, GT Options and if possible othe
Define Register Variables - Low Level Programming? The Register variables are a special case of an automatic variable. The Automatic variables are allocated storage in the memo
Recently social media has been flooded by fb posts, tweets, news articles about only thing demonetization.A great debate is ongoing over it. Most of the people discussing in social
what is a variable
Write a Program for Calculating Value of an Integer? For a clear understanding of recursive function we shall see an illustration for calculating value of an integer. main() {
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