Webhosting in Pakistan
Results 1 to 7 of 7

Thread: Assalam o Alaikum

  1. #1
    qurrat4u is offline Senior Member+
    Last Online
    6th April 2018 @ 10:08 PM
    Join Date
    02 Dec 2010
    Location
    Karachi
    Gender
    Female
    Posts
    93
    Threads
    7
    Credits
    665
    Thanked
    0

    Default Assalam o Alaikum

    Webhosting in Pakistan
    Mujhe Assignment banana hai c++ ka. Us me switch case k saath calculator,Marksheet,temperature,Array and strings ka project hai or us command me password bhi add krna hai kya koi meri help kr skta hai Assignment banaane me,m confused hun ya jis ne bhi is tarah ka koi assignment banaya hai plzz share kren or is topic me agar aap k paas tutorial ho bari meherbaani hogi shukriya....

  2. #2
    AsifSattarvi's Avatar
    AsifSattarvi is offline Senior Member+
    Last Online
    2nd April 2017 @ 01:46 PM
    Join Date
    20 May 2012
    Gender
    Male
    Posts
    6,593
    Threads
    104
    Credits
    23,048
    Thanked
    956

    Default

    وعلیکم السلام
    اس کو چیک کریں
    Create a Marksheet using Class
    #include<iostream.h>
    #include<conio.h>
    #include<iomanip.h>
    class marksheet
    {
    public:
    int rolln,cpp,java,n1,total;
    float per;
    char name[50];
    void pn()
    {
    cout<<"\n Enter the roll number: ";
    cin>>rolln;
    cout<<"\n Enter the name of student: ";
    cin>>name;
    cout<<"\n Enter the marks of c plus plus: ";
    cin>>cpp;
    cout<<"\n Enter the marks of java: ";
    cin>>java;
    cout<<"\n Enter the marks of n1: ";
    cin>>n1;
    }
    void pro()
    {
    total=cpp+java+n1;
    per=total/3;
    }
    void gd()
    {
    if(per>=80)
    {
    cout<<"\n Grade=Distinction";
    }
    else if(per>=60 && per<80)
    {
    cout<<"\n Grade=A";
    }
    else if( per>=50 && per<60)
    {
    cout<<"\n Grade=B";
    }
    else if(per>=35 && per<50)
    {
    cout<<"\n Grade=C";
    }
    else if(per<35)
    {
    cout<<"\n Grade=Fail";
    }
    }
    void gn()
    {
    cout<<"\n Roll Number== "<<setw(13)<<rolln;
    cout<<"\n Name== "<<setw(20)<<name;
    cout<<"\n Marks of CPlusPlus== "<<setw(6)<<cpp;
    cout<<"\n Marks of Java== "<<setw(11)<<java;
    cout<<"\n Marks of N1== "<<setw(13)<<n1;
    cout<<"\n Total Marks== "<<setw(13)<<total;
    cout<<"\n Percentage== "<<setw(14)<<per;
    }
    };
    void main()
    {
    clrscr();
    marksheet m;
    m.pn();
    m.pro();
    m.gn();
    m.gd();
    getch();
    }

  3. #3
    AsifSattarvi's Avatar
    AsifSattarvi is offline Senior Member+
    Last Online
    2nd April 2017 @ 01:46 PM
    Join Date
    20 May 2012
    Gender
    Male
    Posts
    6,593
    Threads
    104
    Credits
    23,048
    Thanked
    956

    Default

    اس کو بھی چیک کریں
    DENT MARKSHEET
    #include
    #include
    #include

    class stud
    {
    int rno,m1,m2,m3,tot;
    char name[20];
    float avg;

    public:
    void getdata()
    {
    cout<<"\n\nEnter the rno:";
    cin>>rno;
    cout<<"Enter the name:";
    cin>>name;
    cout<<"Enter the first marks:";
    cin>>m1;
    cout<<"Enter the second mark:";
    cin>>m2;
    cout<<"Enter the third mark:";
    cin>>m3;
    }

    void caldata()
    {
    tot=m1+m2+m3;
    avg=tot/3;
    }

    void putdata()
    {
    cout<<"\n"< cout< cout< cout< cout< cout< cout<if(avg>=80)
    cout<<"\t A";
    else if(avg>=60&&avg<=79)
    cout<<"\t B";
    else if(avg>=40&&avg<=59)
    cout<<"\t C";
    else
    cout<<"\t FAIL";
    }
    };

    void main()
    {
    int i,n;
    stud s[20];
    clrscr();
    cout<<"\n\t\t\t STUDENT MARKSHEET";
    cout<<"\n\t\t\t ~~~~~~~~~~~~~~~~~~";
    cout<<"\n ENTER THE NUMBER OF STUDENTS:";
    cin>>n;
    for(i=0;i{
    s[i].getdata();
    s[i].caldata();
    }
    cout<<"\n\nRNO"<<"\t"<<"NAME"<<"\t\t"<<"M1"<<"\t"< <"M2"<<"\t"<<"M3"<<"\t"<<"TOT"<<"\t"<<"AVG"<<"\t"< <"GRADE"<<"\n";
    cout<<"___________________________________________ ____________________";
    for(i=0;i{
    s[i].putdata();
    }
    getch();
    }

  4. #4
    AsifSattarvi's Avatar
    AsifSattarvi is offline Senior Member+
    Last Online
    2nd April 2017 @ 01:46 PM
    Join Date
    20 May 2012
    Gender
    Male
    Posts
    6,593
    Threads
    104
    Credits
    23,048
    Thanked
    956

    Default

    Mark-Sheet Program in C++
    /* Program to Calculate mark any display in table*/
    void main()
    {
    int cpp,cs,dbms,conom,sad,tot,avg,sp;
    char name[30],sr,rs;
    clrscr();
    sp:
    clrscr();
    cout<<“\n\t\t\t\t ============”;
    cout<<“\n\t\t\t\t MARK SHEET”;
    cout<<“\n\t\t\t\t ============”;
    cout<<“\n\n\n”;
    cout<<“ENTER YOUR NAME:”;
    cin>>name;
    cout<<“\n\n Enter Marks in C++:”;
    cin>>cpp;
    cout<<“\n Enter Marks in CS:”;
    cin>>cs;
    cout<<“\n Enter Marks in DBMS:”;
    cin>>dbms;
    cout<<“\n Enter Marks in CONOM:”;
    cin>>conom;
    cout<<“\n Enter Marks in SAD:”;
    cin>>sad;
    tot=cpp+cs+dbms+conom+sad;
    avg=tot/5;
    cout<<“\n\n The total is:”<<tot;
    cout<<“\n The Avg is:”<<avg<<“%”;
    cout<<“\n\n Do you see the MARK SHEET(Y/N)…”;
    cin>>sr;
    if(sr==’Y’||sr==’y’)
    {
    clrscr();
    cout<<“\n\n\n”;
    cout<<“\n\t\t\t\t ============”;
    cout<<“\n\t\t\t\t MARK SHEET”;
    cout<<“\n\t\t\t\t ============”;
    cout<<“\n\n\t NAME: “<<name;
    cout<<“\n\n\n”;
    cout<<“\n\tSUBJECT\t\tMARKS”;
    cout<<“\n\n\t CPP \t\t “<<cpp;
    cout<<“\n\n\t CS\t\t “<<cs;
    cout<<“\n\n\t DBMS\t\t “<<dbms;
    cout<<“\n\n\t CONOM\t\t “<<conom;
    cout<<“\n\n\t SAD\t\t “<<sad;
    cout<<“\n\n”;
    cout<<“\n\n\t TOTAL\t\t “<<tot;
    cout<<“\n\n\t AVG\t\t “<<avg<<“%”;
    cout<<“\n\n\n\n\n Press any key to exit…”;
    getch();
    }
    else if(sr==’N’||sr==’n’)
    {
    goto ps;
    }
    {
    ps:
    cout<<“\n Do you want do any other calculation(Y/N)…”;
    cin>>rs;
    if(rs==’Y’||rs==’y’)
    {
    goto sp;
    }
    else if(rs==’N’||rs==’n’)
    {
    exit(0);
    }
    else
    {
    cout<<“\n Wrong choice…”;
    goto ps;
    }
    }

    getch();

  5. #5
    AsifSattarvi's Avatar
    AsifSattarvi is offline Senior Member+
    Last Online
    2nd April 2017 @ 01:46 PM
    Join Date
    20 May 2012
    Gender
    Male
    Posts
    6,593
    Threads
    104
    Credits
    23,048
    Thanked
    956

    Default

    C++ Program of Student Mark sheet using Classes and Objects
    #include<iostream.h>

    #include<conio.h>

    #include<string.h>

    class marksheet

    {

    int pst,cpp,maths,lang,eng,tot,rno;

    float avg;

    char name[20],result[10],grade[10];

    public:

    void getdata();

    void calculate();

    void display();

    };

    void marksheet::getdata()

    {

    cout<<"Enter your register number"<<"\n";

    cin>>rno;

    cout<<"Enter your name"<<"\n";

    cin>>name;



    cout<<"Enter language mark"<<"\n";

    cin>>lang;

    cout<<"Enter english mark"<<"\n";

    cin>>eng;

    cout<<"Enter maths mark"<<"\n";

    cin>>maths;

    cout<<"Enter PST mark"<<"\n";

    cin>>pst;

    cout<<"Enter CPP mark"<<"\n";

    cin>>cpp;

    }

    void marksheet::calculate()

    {

    tot=lang+eng+maths+pst+cpp;

    avg=tot/5;

    if(lang>=40&&eng>=40&&maths>=40&&pst>=40&&cpp>=40)

    strcpy(result,"pass");

    else

    strcpy(result,"fail");

    if(strcmp(result,"pass")==0)

    {

    if(avg>=90)

    strcpy(grade,"S grade");

    else if(avg<90&&avg>=80)

    strcpy(grade,"A grade");

    else if(avg<80&&avg>=70)

    strcpy(grade,"B grade");

    else if(avg<70&&avg>=60)

    strcpy(grade,"C grade");

    else if(avg<60&&avg>=50)

    strcpy(grade,"D grade");

    else

    strcpy(grade,"E grade");

    }

    else

    strcpy(grade,"F grade");

    }

    void marksheet::display()

    {

    cout<<"\nRegister Number: "<<rno<<"\n";

    cout<<"Name: "<<name<<"\n";

    cout<<"Language: "<<lang<<"\n";

    cout<<"English: "<<eng<<"\n";

    cout<<"Maths: "<<maths<<"\n";

    cout<<"PST: "<<pst<<"\n";

    cout<<"CPP: "<<cpp<<"\n";

    cout<<"Total: "<<tot<<"\n";

    cout<<"Avarage: "<<avg<<"\n";

    cout<<"Result: "<<tot<<"\n";

    cout<<"Grade: "<<grade;

    }

    void main()

    {

    clrscr();

    cout<<"\t\tMARK SHEET USING CLASSES AND OBJECTS\n\n";

    marksheet ms;

    ms.getdata();

    ms.calculate();

    ms.display();

    getch();

    }

  6. #6
    AsifSattarvi's Avatar
    AsifSattarvi is offline Senior Member+
    Last Online
    2nd April 2017 @ 01:46 PM
    Join Date
    20 May 2012
    Gender
    Male
    Posts
    6,593
    Threads
    104
    Credits
    23,048
    Thanked
    956

    Default

    سب کو کاپی پیسٹ کر لیں ۔۔۔۔اور ۔۔۔اپنی ضرورت کے مطابق تھوڑی بہت تبدیلی کر لیں ۔۔۔۔جیسا مناسب لگے
    شاید یہ آپ کے کام آسکیں

  7. #7
    qurrat4u is offline Senior Member+
    Last Online
    6th April 2018 @ 10:08 PM
    Join Date
    02 Dec 2010
    Location
    Karachi
    Gender
    Female
    Posts
    93
    Threads
    7
    Credits
    665
    Thanked
    0

    Default

    Webhosting in Pakistan
    Thank Alot but muje marksheet k saath saath temperature,loops,strings,calculator & Arrays ye tamam programs switch case me chahiye khair bohat shukriya aapka..

Similar Threads

  1. Assalam O Alaikum
    By Diamond Man in forum Introduction
    Replies: 12
    Last Post: 10th November 2013, 02:38 PM
  2. ASSALAM-O-ALAIKUM,need help
    By DOCTOR_WAQAS in forum Ask an Expert
    Replies: 7
    Last Post: 8th July 2013, 08:57 PM
  3. assalam o alaikum
    By Rizwan_Ahmed in forum Introduction
    Replies: 17
    Last Post: 28th May 2010, 11:41 AM
  4. Assalam o Alaikum!!!!
    By * SONU * in forum Introduction
    Replies: 14
    Last Post: 25th February 2010, 06:10 PM
  5. Assalam O Alaikum
    By abdulhafeezbutt in forum 14 August 2019.....Independence Day
    Replies: 1
    Last Post: 10th August 2009, 12:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •