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
Explain the difference between struct and class in terms of access modifier.
What is an adaptor class or Wrapper class?
Why c++ is faster than java?
What is data type in c++?
How do I make turbo c++ full screen?
What is main function in c++ with example?
Define private, protected and public access control.
Is c++ free?
Mention the ways in which parameterized can be invoked. Give an example of each.
Can a program run without main?
What is purpose of abstract class?
what you know about c++?