The objective of this problem is to test the understanding
of Object-Oriented Programming (OOP) concepts, in
particular, on encapsulation.
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.
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.
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
Create Billy 2500
Create Charlie 1000
Create John 100
Withdraw Charlie 500
Deposit John 899
Withdraw Charlie 1000
assume the program must insert 4 elements from the key board
and then do the following programs.sequential search(search
one of the elements),using insertion sort(sort the element)
and using selection sort(sort the element).
just right the logic of it
1--> If few people are electing then every time ur candidate
2--> arrange books in box, if box carry weight == books
weight then take another box..... find the no of box
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE
METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN
A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
write a program to find 2^n+1 ?
write a program that takes input in digits and display the
result in words from 1 to 1000
given a set based questions and 5 questions based on it
next data sufficiciency questions 2
and 2/3 english sentence completion with options very easy
and 2 synononmys
paragraph with 10 questions 10 minutes
replace =,-,*,% with -,%,+,* type questions 5
3 questions lik following
itssickhere itssickthere itssickhere istsickhere
which is nt alike the others
String = "C++ is an object oriented programming language.An
imp feature of oops is classes and objects".Write a pgm to
count the repeated words from this scenario?
Give two or more real cenario of virtual function and
What is interface? When and where is it used?
Why is it so that we can have virtual constructors but we
cannot have virtual destructors?
How to use CMutex, CSemaphore in VC++ MFC
why reinterpret cast is considered dangerous?
I have One image (means a group photo ) how to split the
faces only from the image?............ please send the
answer firstname.lastname@example.org thanks in advace...
This program numbers the lines found in a text file. Write a
program that reads text from a file and outputs each line
preceded by a line number. Print the line number
right-adjusted in a field of 3 spaces. Follow the line
number with a colon, then one space, then the text of the
line. You should get a character at a time and write code to
ignore leading blanks on each line. You may assume that the
lines are short enough to fit within a line on the screen.
Otherwise, allow default printer or screen output behavior
if the line is too long (i.e., wrap or truncate). A somewhat
harder version determines the number of spaces needed in the
field for the line numbers by counting lines before
processing the lines of the file. This version of the
program should insert a new line after the last complete
word that will fit within a 72-character line.
Please send ford technologies placement paper 2 my mail id