SETW AND IOMANIP.H - Electrical Engineering Department 12th Batch

SETW AND IOMANIP.H - Electrical Engineering Department 12th Batch

C++ CODES PART#03 COPY [email protected] ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS DEPARTMENT 1 SETW AND IOMANIP.H # include # include void main()

{ clrscr(); long pop1=2425785, pop2=47, pop3=9761; cout<

<

OUTPUT. COPY [email protected] ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS DEPARTMENT 4 SETW #include #include #include void main()

{ clrscr(); cout<

getch(); } COPY [email protected] ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS DEPARTMENT 6 OUTPUT.. COPY [email protected] ENGR.SABA MUGHAL FROM

COMPUTER SYSTEMS DEPARTMENT 7 QUADRATIC EQUATION IN PROGRAM #include #include #define sqrt void main(void) { clrscr();

float a,b,c,x1,x2; cout<<"Enter values for a, b& c " ; COPY [email protected] ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS DEPARTMENT 8 CONTINUE. cin>>a>>b>>c; x1=(-b+sqrt(b*b-4*a*c))/(2*a); x1=(-b-sqrt(b*b-4*a*c))/(2*a); cout<<"The roots of Qudratic Equation are

"<

ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS DEPARTMENT 10 ENDL AND ADDING NUMBERS #include #include void main() { clrscr(); int a=10;

int b=a+20; COPY [email protected] ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS DEPARTMENT 11 CONTINUE. float d=3.24; int ans=b+d; cout<

COPY [email protected] ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS DEPARTMENT 12 OUTPUT.. 10 30 33 COPY [email protected]

ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS DEPARTMENT 13 USING \t # include void main() { clrscr(); int a=1234; int b=56; cout<<"\n"<

getche(); COPY [email protected] ENGR.SABA MUGHAL FROM } COMPUTER SYSTEMS DEPARTMENT 14 Output.. COPY [email protected] ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS

DEPARTMENT 15 IF AND ELSE STATEMENT #include #include void main() { clrscr(); int agep1,agep2; cout<<"Input Age of first person"; cin>>agep1; COPY [email protected]

ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS DEPARTMENT 16 CONTINUE. cout<<"Input Age of 2nd person"; cin>>agep2; clrscr(); if(agep1>agep2) { cout<<"First Person in Elder "; cout<<(agep1-agep2)<<" Years";

} COPY [email protected] ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS DEPARTMENT 17 CONTINUE. else { cout<<"2nd Person is Elder"; cout<<(agep2-agep1)<<" Years"; }

getch(); } COPY [email protected] ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS DEPARTMENT 18 OUTPUT. COPY [email protected] ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS

DEPARTMENT 19 FIBONACCI SERIES #include #include void main() { clrscr(); int a=1,b=1,ans=0; cout<

ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS DEPARTMENT 20 CONTINUE. { //int a=1,ans=0; //cout<

} COPY [email protected] ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS DEPARTMENT 21 OUTPUT COPY [email protected] ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS DEPARTMENT

22 IF/ELSE STATEMENT #include #include void main() { clrscr(); int m1,m2,m3,m4,m5; float perc,tot; cin>>m1>>m2>>m3>>m4>>m5; COPY [email protected] ENGR.SABA MUGHAL FROM

COMPUTER SYSTEMS DEPARTMENT 23 CONTINUE. tot=m1+m2+m3+m4+m5; perc=tot/550*100; if (perc>=90 && perc<=100) { cout<<"A1 Grade";cout<<'\t'<=80){ cout<<"A grade";cout<<'\t'<

ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS DEPARTMENT 24 CONTINUE. else if(perc<80 && perc>=70){ cout<<"B grade";cout<<'\t'<

COPY [email protected] ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS DEPARTMENT 25 OUTPUT. COPY [email protected] ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS DEPARTMENT

26 Nice wordings COPY [email protected] ENGR.SABA MUGHAL FROM COMPUTER SYSTEMS DEPARTMENT 27

Recently Viewed Presentations

  • www.time4writing.com

    www.time4writing.com

    Compound Sentence. A compound sentence joins two independent clauses (sentences that could stand on their own) and separates them with a comma and a conjunction, or a semicolon. Examples: I was too busy to play, so. he went outside without...
  • Hornell-Corning-Steuben County Empire Zone

    Hornell-Corning-Steuben County Empire Zone

    Online Services (formerly Online Tax Center) Respond to Department Notices: Taxpayers will be able to respond online to selected department notices. Whether the taxpayer received an electronic or traditional paper notice, they'll be able to respond online. Only the selected...
  • New Jersey Center for Teaching and Learning Progressive

    New Jersey Center for Teaching and Learning Progressive

    Tangents and secants can form other angle relationships in circle. Recall the measure of an inscribed angle is 1/2 its intercepted arc. This can be extended to any angle that has its vertex on the circle. This includes angles formed...
  • Some title - WordPress.com

    Some title - WordPress.com

    Read Oxford Practice Grammar by George Yule (2006) Dr. David Odoi, Language Centre. Slide . NOUNS. TOPIC ONE. Dr. David Odoi, Language Centre. Slide . NOUNS. A noun names a person, a place, a thing or an idea. Nouns are...
  • The Secret Annex - Weebly

    The Secret Annex - Weebly

    The Secret Annex was behind both of these "doors." ... Married Edith Hollander on May, 12 1925. It was his decision to put his family into hiding. He was in Auschwitz. After Auschwitz was liberated in 1945, Otto discovered that...
  • The Chi Square Test - Weebly

    The Chi Square Test - Weebly

    The Chi Square Test A statistical method used to determine goodness of fit Goodness of fit refers to how close the observed data are to those predicted from a hypothesis Note: The chi square test does not prove that a...
  • www.medicinebau.com

    www.medicinebau.com

    Congruence angle (between bisecting sulcus angle and central patellar ridge = -6±6) Treatment . Conservative. Resting , stabilization , physiotherapy and exercise. ... 1- Tension band technique (most common) convert a tensile force into a compressive force.
  • BrightStone Inc. Dynamic Momentum Trading

    BrightStone Inc. Dynamic Momentum Trading

    Money Maker Edge™ Trading Code™ I have a business strategy . I follow my trading rules. I keep a record to review and quantify my results. I have entry points