We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

Looking for Something at Site? Search Below

tdb is team discussion board... in this section, a question will give you from your teacher and you should give answer in the given time...

here is first tdb.


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 190

Replies to This Discussion

First TDB will start on Monday, December 09, 2013, to Monday, 16h December, 2013. You should be well prepared for lectures 1 – 19 in order to participate in this TDB. The following topics will be covered:

 

Variables

Data Types

Arithmetic Operators

Precedence of Operators

Conditional structures (if/else)

Loops

Functions

Arrays

File handling

Character Function

 

We strongly recommend you to practice all the example programs of the mentioned topics in the handouts.


Sample Output

 

Enter first value: 2

Enter second value: 3

Enter operator: +

Addition = 5

Do you want to continue (y/n): y

 

Enter first value: 4

Enter second value: 5

Enter operator: *

Multiplication = 20

Do you want to continue (y/n): n

Press any key to continue . . .

#include main()

{   

   int a,b,d;     

char c,e;    

do

{  cout"Enter first value:";       

cin>>a;       

cout"Enter second value:";             

cin>>b;      

cout"Enter operator:";             

cin>>c;        

 switch(c)         

 {      case'+':

  d=a+b;                  

 cout"Addition = "d"\n";    =""  =""

cout"do="" you="" want="" to="" continue="" (y="" n):"; =""  

cin="">>e;                                                     

 break;                    

case'-':                  

 d=a-b;                    

cout"subtraction = "d"\n";    =""  cout"do="" you="" want="" to="" continue="" (y="" n):"; =""  cin="">>e;              

break;                    

case'*':                    

d=a*b;                  

 cout"Multiplication = "d"\n";    =""  

cout"do="" you="" want="" to="" continue="" (y="" n):"; =""  

cin="">>e;             

break;                                   }}       

while(e=='y'||e=='Y');              

goto aa;                                                     system("pause");      }

TDB is non graded activity right Tariq bhai?

...

Aurora  email & cell no sharing is not allowed at the site..thanks for understanding 

RSS

HELP SUPPORT

This is a member-supported website. Your contribution is greatly appreciated!

© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.