Total members 11893 |It is currently Tue Nov 05, 2024 7:39 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





A Player is Good All rounder if:

The name of the player has atleast 10 characters, not counting the spaces in the name.
If he plays for "India" then his name must not end in "Akram".
(His batting average is greater than or equal to 35 and bowling economy rate is less than 6 ) OR (Batting average is in between 25 to 35 inclusively and economy rate is less than 4)
Number of countries where player has scored a century should be greater than 5 and he must have scored century in his own home country.
His ranking is less than 100
Player Name is of minimum two words and first name is of more than 8 characters, and surname contains character 'A' or 'd' (ignore case)
Write a method:

boolean isGoodAllRounder(String playerName, String country, String[] centuryScoringCountries, int ranking, int battingAverage, int economyRate, boolean isRetired)

playerName Name of the player.
country Name of the country the player plays for.
centuryScoringCountries String array of countries where the player has scored century. Can be null if the player has not scored any centrury.
ranking ICC ranking of player.
battingAverage batting average of the player.
economyRate bowling economy rate of player.
isRetired whether a player is retired or not.

Report a problem
Paste your program below and click on submit program.

You can write the program in C, C++, Java or C#. Change variable types accordingly.

Please note that you have only two hours to submit the program. Late entries will be disqualified.




Author:
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : Game code request
 3D c++ game with source code     -  
 Tank game code     -  
 3d OpenGL game with source code     -  
 race game source code in j2me     -  
 ping pong java code-Sticker-ball game     -  
 ping pong game - java-Sticker-ball game (modified v1.1)     -  
 fill all Squares of game board - 2d Java Game Example     -  
 2d game in java-Monster-Java 2D Game Graphics and Animation     -  
 JavaChat project request     -  
 check request was GET or POST     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com