Code Monkey home page Code Monkey logo

coding_challenges's People

Contributors

abhinandanraj avatar pantharshit007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

coding_challenges's Issues

Assignment

Scenario:
The 'Man of the Match' award of a 50-over cricket match is decided by computing points earned by players. The points are calculated on the basis of the following rules:
Batting:
1 point for 2 runs scored
Additional 5 points for a half-century
Additional 10 points for a century
2 points for strike rate (runs/balls faced) of 80-100
Additional 4 points for strike rate>100
1 point for hitting a boundary (four) and 2 points for over boundary (six)
Bowling:
10 points for each wicket
Additional 5 points for three wickets in innings
Additional 10 points for 5 wickets or more in innings
4 points for economy rate (runs given per over) between 3.5 and 4.5
7 points for an economic rate between 2 and 3.5
10 points for an economy rate less than 2
Fielding:
10 points each for catch/stumping/run out
The performance of each player is stored in a dictionary object. Displayed below is data for 5 players.
Problem Statement:
Assuming that these are the top 5 performers, write a Python program to decide the player with the highest points. Develop separate functions to compute batting and bowling points and save them in a module. These functions should be imported into the main code.
Assignment Submission:
Your submission should have a fully functional code with:
One module containing the required functions.
One script file with the main code which computes the top player amongst the 5 given players.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.