Posts

Showing posts from September, 2018

Fahrenheit

Image
This code asked for a celsius input and gave a calculated fahrenheit output to one decimal place. This code was similar to the float_calc.c code because it defined a variable (F) and asked for an input, then printed an output using a coded algorithm. At the end of the printf line I wanted to make sure the code multiplied by 9 and divided by 5 before adding 32 so I wrote F*(9/5)+32, which did not work. I then removed the parenetheses and it worked. Also, I forgot each line requires a semicolon at the end. Aside from this I had no problems. I remembered to save each change before making and remaking the code before running the code.

CS50 Hello World

Today we started edX coding with C. I started by making a folder called unit1, then a folder within unit1 called hello. In here I made a file named hello.c. I edited this file by writing a code that is meant to display a message. After writing the code, checked my directory by typing ls to make sure I was in my hello folder, and then typed make hello. This executed the code, creating a new file in the hello folder called hello. I checked to make sure this worked by typing ls, and hello* and hello.c came up. Hello had an asterisk meaning it can be executed. I then typed ./hello, running the executable hello file, and displaying the message "hello, world." I then changed the hello.c file code so make it say "Hi Abby!" I saved the code. I typed make code in the directory in order to change the executable file, then typed ./hello to run the code. It displayed "Hi Abby!" The purpose of this lesson was to begin to learn how computers work using C. I mistook on

Most Important Computing Innovation

The computing innovation that changed my life the most is my microwave. I spent the first 10 years of my life without one, and once we finally got one it was a gamechanger. We went from spending 15 minutes heating up leftovers in the oven to pressing the "Add 30 sec" button twice and using the extra 14 minutes to enjoy our meal. I rely on my microwave for 80% of my breakfasts and home lunches. Dinners not so much, unless we're having leftovers. One potentially negative effect, although I haven't looked into it much, is that microwaves emit radiation, so technically I'm having radioactive food, and being close to the microwave might be dangerous when it is on. One computing innovation that greatly impacted my dad's life, specifically in the workplace, is phacoemulsification. Phacoemulsification uses an ultrasound machine that breaks up cataracts so they can be removed through a small incision. This machine enabled him to improve the vision of others with very