Plz any one help me....:-) medal & fan....:-)
A player is good if the following conditions are satisfied: He is either from “India”, “Japan” or “Korea” He has a minimum of 3 years of experience He has won at least 3 major tournaments, and one of them must be "World Championship Tournament". He must know more than 10 techniques. (but see next question) If he knows less than 10 techniques, then he must be a world champion. His name contains at least 3 words. For example "Sachin Tendulkar" will not meet this condition. Write a method: boolean isGoodPlayer(String name, String country, int yearsExperience, String[] majorTournamentsWon, String[] techniques, boolean isWorldChampion) name country yearsExperience majorTournamentsWon techniques isWorldChampion can anyone write a code in C, C++, "Java" or C# based on the above info?
you're over thinking it. Just write a method that returns true, then above the positive return, write a series of conditions, each of them returning false if the disqualifying condition is met. Like anything else there are a lot of different ways to accomplish your goal, but that is one approach you can throw together yourself probably in under 5 minutes regardless of your comfort level with the language.
If you don't mind can you please write the code...
Can I write it in vb.net
with pleasure.... @Ahunter2222
if you know write it....
sorry, here to help, not do your homework for you
Join our real-time social learning platform and learn together with your friends!