Git Product home page Git Product logo

onlinesaleai-assignment's Introduction

OnlineSaleAI-Assignment

Task-1: Simulation of an Event that Follows Given Biasness

Problem Statement: Write a program that simulates an event with biased outcomes. The program accepts a map of possible outcomes and their probabilities. The outcomes are generated based on the provided probabilities.

Example Usage:

  • Rolling a biased six-faced dice.
  • Flipping a biased coin.

Rules:

  • Probabilities can be provided as integers or percentages.
  • Each occurrence of the event generates one outcome independently.
  • Large numbers of event occurrences should follow the provided biasness.

Task-2: Evaluate Multiple Mathematical Expressions Using a Web API

Problem Statement: Create a program that evaluates multiple mathematical expressions in bulk using a web API. The program should display the results for each expression.

Example Usage:

  • Evaluate expressions like "2 * 4 * 4" or "sqrt(5^2 - 4^2)".
  • Use a web API for evaluations.

Rules:

  • No local evaluation of expressions; all evaluations are done using a web API.
  • Handle the API's rate limits (e.g., 50 requests per second per client) and concurrency.

Task-3: Debugging

Problem Statement: Debug a Bash or Python script that performs computations based on an integer input (n). The script has bugs that need to be identified and fixed.

Example Usage:

  • The script calculates squares, factorials, or sums based on the input value.

Rules:

  • Identify and fix bugs in the provided Bash or Python script.
  • Minimize changes to the script (less than 5 characters).

Each task is located in its respective folder (Task1, Task2, Task3) with detailed instructions and code files.

onlinesaleai-assignment's People

Contributors

sahu-neha avatar

Stargazers

 avatar

Watchers

 avatar

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.