ALLInterview.com :: Home Page      
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   Errors
   Testimonials Refer this Site  Refer This Site to Your Friends  Site Map  Contact Us      
   
 
 Categories >> Software >> Programming Languages >> C++ >> OOPS
 
Suggest New Category 
 


 

Question Asked @ Answers Views     Select
what is the 3 types of system development life cycle    0  28
what is difference between class template and template class?    0  48
WAP to generate 2n+1 lines of the following pattern on the computer screen:    1  124
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.    0  47
What is this interview room ? Is it a class or an object. cybage   2  215
The type of variable a pointer points to must be the part of pointer's definition so that: infosys   1  126
OOP'S advantages of inheritance include: infosys   1  171
How to create a comment page in C #??    2  134
what is difference between thread and programme. ncc   0  77
can you give the dynamic polymorphism types? wipro   2  304
what is the new version of c++ ignou   1  243
what is the new version of oops ignou   0  140
write a C++ program for booking using constructor and destructor. hal   0  137
which is best institute to learn c,c++ in ameerpet hyderabad    0  155
Objective The objective of this problem is to test the understanding of Object-Oriented Programming (OOP) concepts, in particular, on encapsulation. Problem Description Create a program for managing customer’s bank accounts. A bank customer can do the following operations: 1. Create a new bank account with an initial balance. 2. Deposit money into his/her account. 3. Withdraw money from his/her account. For this operation, you need to output “Transaction successful” if the intended amount of money can be withdrawn, otherwise output “Transaction unsuccessful” and no money will be withdrawn from his/her account. Input The input contains several operations and is terminated by “0”. The operations will be “Create name amount”, “Deposit name amount”, or “Withdraw name amount”, where name is the customer’s name and amount is an integer indicating the amount of money. There will be at most 100 bank accounts and they are all created on the first month when the bank is opening. You may assume that all account holders have unique names and the names consist of only a single word. Output The output contains the transaction result of withdrawal operations and the final balance of all customers after some withdrawal and deposit operations (same order as the input). Sample Input Create Billy 2500 Create Charlie 1000 Create John 100 Withdraw Charlie 500 Deposit John 899 Withdraw Charlie 1000 0    0  193
E-Mail New Answers        Answer Selected Questions        Post New oops Questions
  Next
 
 
 
 
 
Un-Answered Questions
 
 Question Views   Select
 
#include <stdio.h> #include <alloc.h> #include <stdlib.h> #include <conio.h> void insert(struct btreenode **, int); void inorder(struct btreenode *); struct btreenode { struct btreenode *leftchild; struct btreenode *rightchild; int data; }; main() { struct btreenode *bt; bt=(struct btreenode *)NULL; int req,i=1,num; clrscr(); printf("Enter number of nodes"); scanf("%d",&req); while(i<=req) { printf("Enter element"); scanf("%d",&num); insert(&bt,num); i++; } inorder(bt); } void insert(struct btreenode **sr, int num) { if(*sr==NULL) { *sr=(struct btreenode *)malloc (sizeof(struct btreenode)); (*sr)->leftchild=(struct btreenode *)NULL; (*sr)->rightchild=(struct btreenode *)NULL; (*sr)->data=num; return; } else { if(num < (*sr)->data) insert(&(*sr)->leftchild,num); else insert(&(*sr)->rightchild,num); } return; } void inorder(struct btreenode *sr) { if(sr!=(struct btreenode *)NULL) { inorder(sr->leftchild); printf("\n %d",sr->data); inorder(sr->rightchild); } else return; } please Modify the given program and add two methods for post order and pre order traversals. 201
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required. 880
write a program to find 2 power of a 5digit number with out using big int and exponent ? 308
what are the realtime excercises in C++? 332
is there any choice in opting subjects like 4 out of 7 223
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box 304
which is best institute to learn c,c++ in ameerpet hyderabad 155
What is interface? When and where is it used? 247
what is the drawback of classical methods in oops? 766
How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram 388
How Do you Code Composition and Aggregation in C++ ? 14613
Get me an image implementation program. 200
What is nutshell in programming language? 2233
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions) 736
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’. 322
E-Mail New Answers        Answer Selected Questions