Giter Site home page Giter Site logo

trocoyii's Introduction

TrocoYii

A simple application for calculator change and average

Instalation

Clone repository [email protected]:charleycesar/TrocoYii.git and execute composer install to install all dependencies.

Testing

execute ./vendor/bin/codecept run unit to run all test suite

Usage

There has 2 features and solve 2 problem

PROBLEM 1: The Change

Imagine that you work in the cashier of a supermarket. Whenever a customer arrives and pays your purchase, you must hand him the change in coins. You particularly like these coins, and want to deliver as few coins as possible to the customer.

For a value of N change how many currencies should you deliver to the customer so that the total currencies are the least possible?

For example, if you have an stock of money of NOTAS = {100,50,20,10,5,2,1}, and need a change for 328: [100=>3, 20=>1, 5=>1, 2=>2, 1=>1] with a total of 328.

PROBLEM 2: Check Average

Make a program that receives (read) n numbers, computes and Show (write) the arithmetic mean between them. For example, if you set three number the program need to get average. [10,7,7] Average is 8.

trocoyii's People

Contributors

charleycesar avatar

Watchers

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