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.

Thursday, February 16, 2017

These Questions need to be Answered

1. The three things that need to be submitted are the algorithm thing, the abstract thing and the video that shows how all of it works.

2. Well the whole program needs to be included somewhere.

3. What the algorithms purpose is and how it works.

4. How the abstract works.

5. A minute or under and 30 MB or less

6. All of it needs to be PDFs 

7. The very last part at the very end.

Friday, February 10, 2017

Abstractedly Gaussian

With the main part of the program contained into one abstraction, the math becomes far more simple. The program is squished down into one defined function. The python program has the defined function 'gauss addition' with a 'total' parameter. Total has been set to zero. With gaussian math, adding 1-100 becomes easier. Having to write out that would be tough, and that is what my program does instead. The abstraction takes all of the addition and puts it into one. There is a while loop, along with math, printing and returning.

Wednesday, February 8, 2017

Gaussian Algorithm

Remember gaussian addition? Well I sure don't. In the the gaussian system, a simple way to add the number 1 - 100 is used. The algorithm in the program is a used to do that. It is a while loop that uses different parameters to loop until the range is reached. A variable 'first number' is equal the variable 'total', which pops in zero. A variable 'last number' is set equal to 'total', which pops in nothing. A variable gauss number is set to sum of 'first number' and 'last number'. A variable 'total sum' is set to 'total sum' plus one. By having this algorithm be a while loop,  all of these continuously run until the set range has been met.