Anda di halaman 1dari 1

Software Technology Department

EMPTEC2 Machine Project Specifications


Pokemon Evolutions

In playing Pokemon Go, players can buy (or earn) Lucky Eggs. Lucky Eggs are used
to boost a players experience points (XP) within 30 minutes upon activation. There
are different strategies to reap the most benefits of the Lucky Egg, but evolving
Pokemons seem to be one of the best strategies. With a Lucky Egg activated, each
evolved Pokemon will grant the player 1,000 XP. If evolving a Pokemon into one that
the player has not caught before, he'll get 2,000 XP. In general, players who utilize
this strategy would collect at least 70 Pokemons that they can evolve before
activating the Lucky Egg.

Your task is to create a Python program that will get as input the following:
a.) number of candies needed to evolve the Pokemon*
b.) number of candies of a certain type the player has
c.) number of Pokemons of a certain type

The program then displays the following :


a.) actual number of Pokemons of a certain type that can be evolved
b.) number of candies of a certain type remaining after the evolutions

The program repeats this process of asking for the set of inputs, displaying the
results as long as the user still wants to continue computing another. Once the user
states there are no more evolution computations to be done, the program also
displays the total number of Pokemons that can be evolved (i.e., total of all previous
computations in 1 run of the program) and displays a message to Use Lucky Egg
or Do NOT use Lucky Egg yet. For the program we assume that a total of at least
70 Pokemons that can be evolved will prompt the program to encourage the use of
the Lucky Egg.

Anda mungkin juga menyukai