We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

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.

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 160

.

+ 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)

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

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

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

.