Code Challenge: First Pokemon

[Desafio Mestre Pokemon Iniciante] Neste desafio estamos imersos no mundo Pokemon, e hoje é o dia em que 100 mestre pokemon iniciantes receberão seu primeiro pokemon do Professor. As chances de receber cada pokémon são as seguintes:
33% - Charmander
33% - Bulbassauro
33% - Squitle
1% - Pikachu.
Escreva um programa que simule essa distribuição para os 100 primeiros mestre pokemon iniciantes, e no final mostre um relatório de quantos treinadores receberam cada uns dos 4 pokemons iniciais.
Use sua linguagem de programação favorita!
Poste sua solução nos comentários!
[EN] [Code Challenge: First Pokemon]
In this challenge, we are immersed in the world of Pokémon, and today is the day that 100 beginner Pokémon trainers will receive their first Pokémon from the Professor.
The chances of receiving each Pokémon are as follows:
33% - Charmander
33% - Bulbasaur
33% - Squirtle
1% - Pikachu
Write a program that simulates this distribution for the first 100 beginner Pokémon trainers, and at the end, display a report showing how many trainers received each of the four starter Pokémon.
Use your favorite programming language!
Write your solution in the comments!
A solution in Visual Basic [PT-BR]
https://gist.github.com/tictackode/0628ef632e1d177004f337bfa10aad05
https://gist.github.com/tictackode/0628ef632e1d177004f337bfa10aad05
About the author
- I'm an Information Systems Bachelor that writes code even by hobby, and now got into a mathematics degree for teaching. Sou formado em Sistemas de Informação, estou cursando Licenciatura em Matemática pela UFF-CEDERJ, e amo programar.
Comments
Join the discussionNo comments yet. Be the first to comment.
Coding Exercises. Exercicios de Algoritmo/Programação
Nesta série postarei desafios de algoritmo originais e resoluções em diversas linguagens de programação. In this series I will post coding exercises and solutions in many programming languagens.





