Day_13
Comment: I had a lot of trouble understanding how to code works for the homework, I couldn't finish all of the modifications without getting an error. So I only finished the first three modifications, which took me a long time to develop. For this lab I initially had trouble getting the speaker to change the pitch according the the change in temperature. Turns out I had an extra if statement in my program and that resolved the problem. I spent about 4 hours debugging before I found the extra if statement. Also, I used a potomieter because the speaker would make the lcd screen go crazy since without the pot there was no resistance. /* This program determines the locations of peaks in an */ /* grid of elevation data. */ #include <stdio.h> #define N 25 #define FILENAME "grid1.txt" int main(void) { /* Declare variables. */ int nrows, ncols, i, j,count=0,count_2=0; double elevation[N][N]; double valleys[N][N]; FILE *grid; /* Read information from a data fi...
Comments
Post a Comment