I'm working on a project for astronomy on light pollution around the cities.Here's all i got:Spoiler
Quote from: Naru on October 13, 2015, 11:35:49 AMI'm working on a project for astronomy on light pollution around the cities.Here's all i got:Spoiler Hmmm... Very modern.
Quote from: Naru on October 13, 2015, 11:35:49 AMI'm working on a project for astronomy on light pollution around the cities.Here's all i got:Spoiler I hope you fail
Quote from: Ender on October 13, 2015, 11:49:27 AMQuote from: Naru on October 13, 2015, 11:35:49 AMI'm working on a project for astronomy on light pollution around the cities.Here's all i got:Spoiler I hope you failI hope das finds you
Quote from: Naru on October 13, 2015, 11:55:17 AMQuote from: Ender on October 13, 2015, 11:49:27 AMQuote from: Naru on October 13, 2015, 11:35:49 AMI'm working on a project for astronomy on light pollution around the cities.Here's all i got:Spoiler I hope you failI hope das finds youI can already smell the anarchy fanfic in the making.
I wrote this in middle school, truly one of the finer examples of writing in the English language.SpoilerThrough everyday, every morning, and every night,I wake up without a fright.I see in the sky that holy orange ball,Rise up, up, up and then fall.The day of a test, I curse that morning ball,And when my mom comes in my room, I wish she’d fall.As I watch the sun fall tonight, I think only this… I have more lines to write.That’s so not right!My head aches; I am beginning to hate orange balls,Why did I choose this topic? My grade is sure to fall.Oh, glorious orange ball, you have blinded me so,I don’t want to get up and to school go.Still other times I don’t want to go to bed, when you fade to orange.In the summer, you’re more fun to watch, so open stays my bedroom door hinge.In the summer you are my friend, Mr. Orange.
Don't really feel like getting made fun of
No, sorry. Not even my rl friends get to see that yet.
Quote from: Elegiac on October 14, 2015, 08:30:57 AMNo, sorry. Not even my rl friends get to see that yet.Your avatar is from Oglaf.Bless your soul.
Quote from: Epsira on October 14, 2015, 10:52:44 AMQuote from: Elegiac on October 14, 2015, 08:30:57 AMNo, sorry. Not even my rl friends get to see that yet.Your avatar is from Oglaf.Bless your soul.Vien showed me the cartoon and told me I should use the avatar.
Quote from: Elegiac on October 14, 2015, 10:54:44 AMQuote from: Epsira on October 14, 2015, 10:52:44 AMQuote from: Elegiac on October 14, 2015, 08:30:57 AMNo, sorry. Not even my rl friends get to see that yet.Your avatar is from Oglaf.Bless your soul.Vien showed me the cartoon and told me I should use the avatar.Vien is just wondeful, isn't he?
just wrote my midterm for data structures famCode: [Select]#include <stdio.h>#include <string.h>#include <stdlib.h>#include <math.h>#include <ctype.h>int main(int argc, char * argv[]) {char op, my_string[5];float num, num1, num2, fans;int len, i = 0;if (argc == 4) { sscanf(argv[1], "%f", &num1); sscanf(argv[2], "%c", &op); sscanf(argv[3], "%f", &num2); switch (op) { case '+': fans = num1 + num2; printf("%4.2f + %4.2f = %4.2f\n", num1, num2, fans); break; case '-': fans = num1 - num2; printf("%4.2f - %4.2f = %4.2f\n", num1, num2, fans); break; case 'x': case 'X': fans = num1 * num2; printf("%4.2f x %4.2f = %4.2f\n", num1, num2, fans); break; case '/': if (num2 == 0) { printf("Error: Cannot divide by zero.\n"); } else { fans = num1/num2; printf("%4.2f / %4.2f = %4.2f\n", num1, num2, fans); } break; case '^': if (num1 == 0 && num2 <= 0) { printf("num1 ^ num2 can't be represented\n"); printf("%4.2f ^ %4.2f = %4.2f\n", num1, num2, fans); } else { fans = pow(num1, num2); } break; default: printf("%c is not a valid selection\n", op); break; }} else if (argc == 3) { sscanf(argv[1], "%c", &op); sscanf(argv[2], "%f", &num); switch (op) { case 'n': case 'N': fans = num * -1; printf("-(%4.2f) = %4.2f\n", num, fans); break; case 'a': case 'A': fans = fabs(num); printf("|%4.2f| = %4.2f\n", num, fans); break; case 's': case 'S': if (num < 0) { printf("Error: Can't find square root of negative number.\n"); } else { fans = sqrt(num); printf("Sqrt(%4.2f) = %4.2f\n", num, fans); } break; default: printf("%c is not a valid selection\n", op); break; } }else { printf("Proper input: \n\tnumber operator number\n\t operator number\nEnter your expression: "); gets(my_string); len = strlen(my_string); if (len == 5) { sscanf(my_string, "%f %c %f", &num1, &op, &num2); switch (op) { case '+': fans = num1 + num2; printf("%4.2f + %4.2f = %4.2f\n", num1, num2, fans); break; case '-': fans = num1 - num2; printf("%4.2f - %4.2f = %4.2f\n", num1, num2, fans); break; case 'x': case 'X': fans = num1 * num2; printf("%4.2f x %4.2f = %4.2f\n", num1, num2, fans); break; case '/': if (num2 == 0) { printf("Error: Cannot divide by zero.\n"); } else { fans = num1/num2; printf("%4.2f / %4.2f = %4.2f\n", num1, num2, fans); } break; case '^': if (num1 == 0 && num2 <= 0) { printf("%f ^ %f can't be represented\n", num1, num2); } else { fans = pow(num1, num2); printf("%4.2f ^ %4.2f = %4.2f\n", num1, num2, fans); } break; default: printf("%c is not a valid selection\n", op); break; }} else if (len == 3) { sscanf(my_string, "%c %f", &op, &num); switch (op) { case 'n': case 'N': fans = num * -1; printf("-(%4.2f) = %4.2f\n", num, fans); break; case 'a': case 'A': fans = fabs(num); printf("|%4.2f| = %4.2f\n", num, fans); break; case 's': case 'S': if (num < 0) { printf("Error: Can't find square root of negative number.\n"); } else { fans = sqrt(num); printf("Sqrt(%4.2f) = %4.2f\n", num, fans); } break; default: printf("%c is not a valid selection\n", op); break; } } }}
#include <stdio.h>#include <string.h>#include <stdlib.h>#include <math.h>#include <ctype.h>int main(int argc, char * argv[]) {char op, my_string[5];float num, num1, num2, fans;int len, i = 0;if (argc == 4) { sscanf(argv[1], "%f", &num1); sscanf(argv[2], "%c", &op); sscanf(argv[3], "%f", &num2); switch (op) { case '+': fans = num1 + num2; printf("%4.2f + %4.2f = %4.2f\n", num1, num2, fans); break; case '-': fans = num1 - num2; printf("%4.2f - %4.2f = %4.2f\n", num1, num2, fans); break; case 'x': case 'X': fans = num1 * num2; printf("%4.2f x %4.2f = %4.2f\n", num1, num2, fans); break; case '/': if (num2 == 0) { printf("Error: Cannot divide by zero.\n"); } else { fans = num1/num2; printf("%4.2f / %4.2f = %4.2f\n", num1, num2, fans); } break; case '^': if (num1 == 0 && num2 <= 0) { printf("num1 ^ num2 can't be represented\n"); printf("%4.2f ^ %4.2f = %4.2f\n", num1, num2, fans); } else { fans = pow(num1, num2); } break; default: printf("%c is not a valid selection\n", op); break; }} else if (argc == 3) { sscanf(argv[1], "%c", &op); sscanf(argv[2], "%f", &num); switch (op) { case 'n': case 'N': fans = num * -1; printf("-(%4.2f) = %4.2f\n", num, fans); break; case 'a': case 'A': fans = fabs(num); printf("|%4.2f| = %4.2f\n", num, fans); break; case 's': case 'S': if (num < 0) { printf("Error: Can't find square root of negative number.\n"); } else { fans = sqrt(num); printf("Sqrt(%4.2f) = %4.2f\n", num, fans); } break; default: printf("%c is not a valid selection\n", op); break; } }else { printf("Proper input: \n\tnumber operator number\n\t operator number\nEnter your expression: "); gets(my_string); len = strlen(my_string); if (len == 5) { sscanf(my_string, "%f %c %f", &num1, &op, &num2); switch (op) { case '+': fans = num1 + num2; printf("%4.2f + %4.2f = %4.2f\n", num1, num2, fans); break; case '-': fans = num1 - num2; printf("%4.2f - %4.2f = %4.2f\n", num1, num2, fans); break; case 'x': case 'X': fans = num1 * num2; printf("%4.2f x %4.2f = %4.2f\n", num1, num2, fans); break; case '/': if (num2 == 0) { printf("Error: Cannot divide by zero.\n"); } else { fans = num1/num2; printf("%4.2f / %4.2f = %4.2f\n", num1, num2, fans); } break; case '^': if (num1 == 0 && num2 <= 0) { printf("%f ^ %f can't be represented\n", num1, num2); } else { fans = pow(num1, num2); printf("%4.2f ^ %4.2f = %4.2f\n", num1, num2, fans); } break; default: printf("%c is not a valid selection\n", op); break; }} else if (len == 3) { sscanf(my_string, "%c %f", &op, &num); switch (op) { case 'n': case 'N': fans = num * -1; printf("-(%4.2f) = %4.2f\n", num, fans); break; case 'a': case 'A': fans = fabs(num); printf("|%4.2f| = %4.2f\n", num, fans); break; case 's': case 'S': if (num < 0) { printf("Error: Can't find square root of negative number.\n"); } else { fans = sqrt(num); printf("Sqrt(%4.2f) = %4.2f\n", num, fans); } break; default: printf("%c is not a valid selection\n", op); break; } } }}