Notes
Notes - notes.io |
class date{
private : int DD;
int MM;
int YY;
public: MyDate(){
DD=System.DateTime.Day;
MM=System.DateTime.Month;
YY=System.DateTime.Year ;
}
MyDate(int day, int month, int year){
DD= day;
MM=month ;
YY=year;
}
MyDate(int day, int month){
DD=day;
MM=month;
}
int getDD(){
return DD;}
int getYY(){
return YY;}
int getMM(){
return MM;}
void setDD(int D){
DD=D;}
void setMM(int M){
MM=M;}
void setYY(int Y){
YY=Y;} };
class Name {
private : string FN;
string MN;
string LN;
Name (){
FN="";
MN="";
LN="";}
Name (string f, string l){
FN=f;
MN="";
LN=l;
}
Name (string f){
FN= f;
MN="";
LN="";}
Name (string f, string m , string l){
FN=f;
MN=m;
LN=l;
}
string firstlast(){
return f+l;
}
string AllName(){
return f+m+l;
}
int compare (string f, string m ,string l){
int ret=0 ;
if(f+m+l)= AllName(){
ret=1;}
return ret;
}
string get FN(){
return FN;}
string get MN(){
return MN;}
string get LN(){
return LN;}
}
void set FN(string f){
FN= f; }
void set MN(string m){
MN= m; }
void set LN(string l){
LN= l;
}
}
class Sdata{
private: float GPA;
public:int RegNo;
Name Sname;
MyDate DOB;
Sdata(){
RegNo =0; }
void AddData(string f, string m, string l, int D, int M, int Y, int Reg, float){
Sname.setf(FN);
Sname.setm(MN);
Sname.setl(LN);
Sname.setDD(D);
Sname.setMM(M);
Sname.setYY(Y);
GPA = gpa;
RegNo= Reg;
float getGPA(){return GPA;}
int StudentAge(){
return System.DateTime.Year - DOB.getYY();}
string StudentData(){
return Sname.getf + Sname.getm + Snamel + DOB.getDD + DOB.getMM + DOB.getYY + GPA + RegNo;}
void Show (){
cout<<Sname.AllName();
cout<< RegNo;
cout<<GPA;
if (GPA >= 3.5)
cout<<"A";
else (GPA < 3.5 && GPA >= 3.0)
cout<< "B";
else (GPA < 3.0 && GPA >= 2.5)
cout<< "C";
else (GPA < 2.5 && GPA >= 2.0)
cout<<"D";
else (GPA < 2.0)
cout<< "F";}
};
void main() {
void SortName (int N, Sdata X[]){
Sdata tmp;
int i , j;
for(i=1)
}
return 0;
}
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team