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

Define a pointer to a data member of the type pointer to pointer?

0 Answers  


When does a name clash occur?

1 Answers  


without if else statement can be written ah

0 Answers  


Why do we use structure in c++?

0 Answers  


How do you flush std cout?

0 Answers  






Which field is used in c++?

0 Answers  


plz send me National informatics center paper pattern

1 Answers  


What is the best c++ compiler?

0 Answers  


what is oops and list its features in c++?

0 Answers  


If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?

0 Answers  


What is the difference between the indirection operator and the address of oper-ator?

0 Answers  


How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

0 Answers  


Categories