Code Monkey home page Code Monkey logo

brilloconnetz's Introduction

Brilloconnetz Java Developer Test

Create a console-based program that allows the shopkeeper to make pancakes, and the 3 users can eat the pancakes simultaneously. A single user can eat maximum 5 pancakes within 30 seconds. Also, the shopkeeper can make a maximum of 12 pancakes every 30 seconds. The system should decide the number of pancakes that each of the 3 users want to eat in the 30 second’s period; but cannot exceed the maximum 5 pancakes rule (A simple way to decide the numbers of pancakes is to generate them randomly). The code could output the following.

  • starting time of the 30 seconds slots,
  • the ending time of the 30 seconds slots
  • number of pancakes made by the shopkeeper, number of pancakes eaten by the 3 users
  • whether the shopkeeper was able to meet the needs of the 3 users or not
  • how many pancakes got wasted if any.
  • If the shopkeeper was not able to meet the needs of all the customers, how many pancake orders were not met..

NB: This runs in a non-concurrent manner

brilloconnetz's People

Contributors

joshualine 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.