Write a program to encrypt the data in a way that inputs a
four digit number and replace each digit
by (the sum of that digit plus 7) modulus 10. Then sweep the
first digit with the third, second digit
with the fourth and print the encrypted number.
Must accepts "Maestro Cards"
Tax for bike should be less than 15
Total number of lanes is more than 10
Must provides monthly pass
Write a method:
boolean isGoodTollBridge(String cardsAccepted, String tollTax, boolean hasMonthlyPass, int numberOfLanes);
String cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card
String tollTax A String array of toll tax chart (say Ã¢â‚¬Å“Train : 300Ã¢â‚¬Â¯,Ã¢â‚¬Â¯BullCart : 10Ã¢â‚¬Â¯)
boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not
int numberOfLanes This parameter defines the number of lanes for each side
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).
Do you like to Submit Questions in Bulk under Same
Category?? Then use our Bulk ListerDo you like to Submit
Questions in Bulk under Same Category?? Then use our Bulk
write a programe to calculate the simple intrest and compund
intrest using by function overlading
Reads in the size of a square from the screen;
2. Prints a hollow square of that size out of “-“, “|” and
blanks on screen;
3. Prints the same hollow square onto a text file.
Your program should work for squares of all side sizes
between 1 and 20.
There are two base class B1,B2 and there is one class D
which is derived from both classes,
Explain the flow of calling constructors and destructors
when an object of derived class is instantiated.
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
Write an algorithm that determines whether or not an almost
complete binary tree is a heap.
What type of question are asked in GE code writing test based
on c++ data structures and pointers?
Given the following seqment of code containing a group of
nested if instructions: y = 9; if ((x==3) || (x == 5)) y++;
else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8;
if the value of x is 4 before the nested IFs are executed,
what is the value of y after the nested IFs are executed?