Friday, February 17, 2017

Aliens Double Algorithm

The Aliens algorithm is a program that is determining the score depending on how many specific items there are in a list. A function 'find aliens' is defined,  and then counts up each item depending on the color. Each counted number is added to the 'grand total' and multiplied by its respective point number. 'Grand total' calls the function 'check score' which determines the correct number of points to be awarded.  After all the totals are counted, the 'grand total' is returned, and the awarded points are fully determined.

No comments:

Post a Comment