This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
blog:spring2016:btaylo15:journal [2016/04/14 04:09] – btaylo15 | blog:spring2016:btaylo15:journal [2016/04/21 03:37] (current) – btaylo15 | ||
---|---|---|---|
Line 30: | Line 30: | ||
==== April 13, 2016 ==== | ==== April 13, 2016 ==== | ||
- | This was a relatively easy week for me, since I did this project weeks in advance because I got bored. The project was to subtract any number from the power of ten with one more digit than the input number. You can easily do this by subtracting each number left to right by 9, then the last by 10. I got it working easily, however, upon further testing I found a very specific bug. Whenever the program did 10 – 0, it returned a 10 of course, but this means that 1000 – 100 = 8100, or 8 10 0. I fixed this by looping back through the result array and fixing the carries. Going back to mental math programs was a nice break and refresher on certain parts of code. | + | This was a relatively easy week for me, since I did this project weeks in advance because I got bored. The project was to subtract any number from the power of ten with one more digit than the input number. You can easily do this by subtracting each number left to right by 9, then the last by 10. I got it working easily, however, upon further testing I found a very specific bug. Whenever the program did 10 – 0, it returned a 10 of course, but this means that 1000 – 100 = 8100, or 8 10 0. I fixed this by looping back through the result array and fixing the carries. Going back to mental math programs was a nice break and refresher on certain parts of code.\\ |
+ | |||
+ | ==== April 20, 2016 ==== | ||
+ | This week’s project was pretty fun. We used the flattenstatus command to get our grade data and then display it in a readable way. For me, my grade in this class is about a 113/100 because of all the bonus I did, so that’s nice. I learned a bit about floats for this project, since I wanted to have the option of decimals instead of truncating every number into int form, and it was necessary for dividing my accumulated points by the total possible points. This project, at least the part where you read data with what are basically headers separating the sections, reminds me of my personal project I’ve been working on, Secret Picture Messages (spm0). My program encodes 24-bit bitmaps with a secret message, and the picture looks no different to the original. Anyway, I’m already thinking about how to solve the EOCE projects and I’m excited to try my ideas. |