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
What is #include cmath?
How do you invoke a base member function from a derived class in which you’ve overridden that function?
What is a .h file c++?
Define pointers?
Which software is used for c++ programming?
What is doubly linked list in c++?
Comment on c++ standard exceptions?
Differentiate between the message and method?
What is the difference between #import and #include?
What is a syntax in c++?
How do you test your code?
What are virtual functions and what is its use?