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


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What is class definition in c++ ?

0 Answers  


I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?

0 Answers  


If there are 1 to 100 Numbers in array of 101 elements. Which is the easy way to find repeated number?

2 Answers   Persistent,


Search for: what is pair in c++?

0 Answers  


What are the manipulators in c++?

0 Answers  






Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

0 Answers  


What sorting algorithm does c++ use?

0 Answers  


How to avoid changing constant values?

2 Answers   Symphony,


To which numbering system can the binary number 1101100100111100 be easily converted to?

0 Answers  


Comment on assignment operator in c++.

0 Answers  


What is istream c++?

0 Answers  


If a function doesn’t return a value, how do you declare the function?

0 Answers  


Categories