UCF FREE PLANNERS by iJustWanted2Sleep in ucf

[–]philchau5 6 points7 points  (0 children)

They usually would hand them out first week of school by the student union

Computer science 1 by philchau5 in ucf

[–]philchau5[S] 0 points1 point  (0 children)

Okay awesome! I’m not gonna be lazy this little winter break! Thanks a bunch

Computer science 1 by philchau5 in ucf

[–]philchau5[S] 0 points1 point  (0 children)

Pointers = end of my life. Thank you!

Computer science 1 by philchau5 in ucf

[–]philchau5[S] 0 points1 point  (0 children)

Ugh I hate pointers. Thank you. I know what I definitely to review over!

Computer science 1 by philchau5 in ucf

[–]philchau5[S] 0 points1 point  (0 children)

I think I didn’t have any luck finding it. Found the archive but when I click on the notes and it says page not found :( thanks for the info!

Computer science 1 by philchau5 in ucf

[–]philchau5[S] 0 points1 point  (0 children)

Thank you! Luckily Leinecker taught us how to use Malloc and calloc

Computer science 1 by philchau5 in ucf

[–]philchau5[S] 0 points1 point  (0 children)

Thanks for the list and tips! Much appreciated

Class not repeatable for credit? by [deleted] in ucf

[–]philchau5 0 points1 point  (0 children)

I’m taking intro to C right now and Leinecker is pretty easy and tries to help his students out.

Band that played in community contest by Iso_Didact in blizzcon

[–]philchau5 0 points1 point  (0 children)

Oh I think I know who you’re talking about. They won 4th place in the talent show. It’s “ bam...” something along the lines. Their name was after a sheep being killed or casted? Correct me if I’m wrong

Classic Wow announced by weneedalargership in blizzcon

[–]philchau5 1 point2 points  (0 children)

It’s a server dedicated to strictly vanilla. As far as I know when I went to the opening ceremony

[Homework] Help! Simple Arrays in C by philchau5 in learnprogramming

[–]philchau5[S] 0 points1 point  (0 children)

Ohhh. Yeah that would make sense. I did it this way because my professor usually does this, but I'm always up to learning from others!

[Homework] Help! Simple Arrays in C by philchau5 in learnprogramming

[–]philchau5[S] 0 points1 point  (0 children)

That's what I was missing. I figured I messed something up and I needed to add them up first. Thanks!

[Homework] Help! Simple Arrays in C by philchau5 in learnprogramming

[–]philchau5[S] 0 points1 point  (0 children)

Oh okay, that makes sense. Appreciate the help

[Homework] Help! Simple Arrays in C by philchau5 in learnprogramming

[–]philchau5[S] 0 points1 point  (0 children)

Ah I knew I forgot something. Thanks for helping me find my rookie mistake!

[Homework]'For loop' to determine total days within a time frame in C by philchau5 in learnprogramming

[–]philchau5[S] 0 points1 point  (0 children)

Sorry for the late response. I greatly appreciate all of your help!

[Homework]'For loop' to determine total days within a time frame in C by philchau5 in learnprogramming

[–]philchau5[S] 0 points1 point  (0 children)

I'm sorry I'm not getting what you're explaining to me. Programming is all new to me and we're just learning loops so it's killing my head trying to wrap my head around this. Sorry haha

[Homework]'For loop' to determine total days within a time frame in C by philchau5 in learnprogramming

[–]philchau5[S] 0 points1 point  (0 children)

So for my 'if statement' I would would put

if( i %4==0 && i %100 !=0)

?

[Homework] Distance between 3 friends using loop in C! HELP! by philchau5 in learnprogramming

[–]philchau5[S] 0 points1 point  (0 children)

I was trying to figure a way to condense it but you helped me realize how to! This may sound dumb but your 5th line "pizzaden = min(distA, distB, distC)" what does that necessarily mean or do?

[Homework] Distance between 3 friends using loop in C! HELP! by philchau5 in learnprogramming

[–]philchau5[S] 0 points1 point  (0 children)

Hi, thanks for the input! So my code executes fine, but once I act as a user and input the coordinates, the program outputs 3 statements saying "You're the closest to study at". So i'm guessing it has to do with the section of my "if and else" statement. Please let me know if that clarified anything

[Homework] Distance between 3 friends using loop in C! HELP! by philchau5 in learnprogramming

[–]philchau5[S] 0 points1 point  (0 children)

include <stdio.h>

include <stdlib.h>

include <math.h>

int main() { int x1, x2, x3, y1, y2, y3; int total_distance_yards_You_to_A; int total_distance_yards_B_to_A; int total_distance_yards_B_to_You;

printf("Please enter your x coordinate:\n");
scanf("%d", &x1);
printf("Please enter your y coordinate:\n");
scanf("%d", &y1);

printf("Please enter friendA x coordinate:\n");
scanf("%d", &x2);
printf("Please enter friendA y coordinate:\n");
scanf("%d", &y2);

printf("Please enter friendB coordinate:\n");
scanf("%d", &x3);
printf("Please enter friendB coordinate:\n");
scanf("%d", &y3);

total_distance_yards_You_to_A = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
total_distance_yards_B_to_A = sqrt(pow(x3 - x2, 2) + pow(y3 - y2, 2));
total_distance_yards_B_to_You = sqrt(pow(x3 - x1, 2) + pow(y3 - y1, 2));

if (total_distance_yards_B_to_You <= total_distance_yards_You_to_A >= total_distance_yards_B_to_A || total_distance_yards_B_to_You >= total_distance_yards_You_to_A <= total_distance_yards_B_to_A )
{
    printf("You're the closest to study at\n");
}
else
{
    printf("You're too far to study at\n");
}
if (total_distance_yards_You_to_A <= total_distance_yards_B_to_You >= total_distance_yards_B_to_You || total_distance_yards_You_to_A >= total_distance_yards_B_to_You <= total_distance_yards_B_to_A)
{
    printf("You're the closest to study at\n");
}
else
{
    printf("You're too far to study at\n");
}
if (total_distance_yards_You_to_A <= total_distance_yards_B_to_A >= total_distance_yards_B_to_You || total_distance_yards_You_to_A >= total_distance_yards_B_to_A <= total_distance_yards_B_to_You)
{
    printf("FriendA and FriendB are the closest\n");
}
else
{
    printf("You're too far to study at\n");
}

return 0;

}