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 does the nocreate and noreplace flag ensure when they are used for opening a file?

0 Answers  


Is it possible to have a recursive inline function in c++?

0 Answers  


Is recursion allowed in inline functions?

0 Answers  


which is the easy way to divide any integer by 2?

2 Answers   Persistent,


Is linux written in c or c++?

0 Answers  






What is a smart pointer?

1 Answers  


What is the best ide for c++?

0 Answers  


Show the declaration for a static member variable.

0 Answers  


Write about the use of the virtual destructor?

0 Answers  


How to construct virtual constructor

6 Answers   CIStems Software, Symphony,


What can c++ be used for?

0 Answers  


What is setf in c++?

0 Answers  


Categories