cloudstrike

Male
from Dayton, OH

  • Activity

    • No Power

      10 years ago

      cloudstrike

      It has been a week and my house is still without power. So here I sit writing this message to you while I am at school. Sorry for no posts.

    • Lifes just Life

      10 years ago

      cloudstrike

      Good Lord I am Broke Right NOW!

    • Stuff

      11 years ago

      cloudstrike

      Final Exams Start Next Week

      Working at Express selling clothes

      I dig cornhole

      have a good week

    • :(

      11 years ago

      cloudstrike

      I'm bored as hell....
      maybe you could entertain me

    • Flu

      11 years ago

      cloudstrike

      Kicking My Ass

    • <->

      11 years ago

      cloudstrike

      smiley0.gif

    • Electromag Exam

      11 years ago

      cloudstrike

      All I can say is...
      wtf was that... smiley2.gif

    • Studying

      11 years ago

      cloudstrike

      Electromag exam on wed

    • Physics Exam

      11 years ago

      cloudstrike

      You Can Find Me Studying My Ass off for Physics Final on Thursday

    • C Programming

      11 years ago

      cloudstrike

      Programming has kicked my ass tonight! I wish i could fit all of it on here for you too see, but its toolong. So heres a quarter of the insane that hurt me.
      /******************************************
      *Name: Clyde Mallett *
      *CEG 220 Section 01 Fall 2007 *
      *File: Mallett06.c *
      *Project 6: Customer Database for Retail *
      * Computer Store *
      *Date: November 7, 2007 *
      *******************************************/

      #include <stdio.h> /*Preprocessor Directives*/
      #include <stdlib.h>
      #include <ctype.h>
      #include <math.h>
      #include <strings.h>

      #define MAX 10 /*Define Macros*/
      #define TAXRATE .065

      void tasks(int); /*Prototype Functions*/
      void add(void);
      void erase(void);
      void change(void);
      void count(void);
      void view(void);
      float costs(int *);

      struct Customer /*Structure*/
      {
      int Cid; /*Structure Declarations*/
      char Cname[20];
      int Tele;
      double basePrice;
      int ramMB;
      int isLaptop;
      int hasDVDBurner;
      int hasWireless;
      };

      struct Customer Customer[MAX]; /*Global Declarations*/
      int cnt;

      int main() /*Main Function*/
      {
      int choice;
      cnt=0;
      printf("Customer Database for Retail Computer Store\n");
      do /*Menu*/
      {
      printf("\n1) Add Customer\n2) Delete Customer\n3) Change Phone\n");
      printf("4) View Customer/Computer Data\n5) Count Customers\n");
      printf("6) Compute Costs\n7) Quit The Program\n\n");
      printf("Input desired destination (1-7):");
      scanf("%d", &choice);
      tasks(choice);
      }
      while(choice != 7); /*Do while choice is not equal to 7, otherwise exit*/
      {
      printf("Hit Enter To Exit Program");
      }
      getchar();getchar();
      return (0);
      }

      void tasks(int choice) /*Tasks Function*/
      {
      float charges = 0.0; /*Variable Declarations*/
      int pid=0;
      switch(choice) /*Takes choice and sends it to correct function*/
      {
      case 1: add();
      break;
      case 2: erase();
      break;
      case 3: change();
      break;
      case 4: view();
      break;
      case 5: count();
      break;
      case 6: charges = costs(&pid); /*calls cost functions and sends the address of ID*/
      if(charges >=0) /*if an amount (positive) is returned for charge, this statement executes*/
      {
      printf("The Total Charges for Customer %d is $%.2f\n\n", pid , charges); /*prints charges for the customer*/
      }
      break;
      }
      }
      void add(void) /*Add New Customer Function*/
      {
      printf("\nEnter the ID of the Customer as an integer:\n");
      scanf("%d", &Customer[cnt].Cid);
      printf("\nEnter the Last Name of the Customer (no spaces):\n");
      scanf("%s", &Customer[cnt].Cname);
      printf("\nEnter 7 Digit Telephone # of the Customer as an integer (no dashes or spaces):\n");
      scanf("%d", &Customer[cnt].Tele);
      printf("\nEnter Base Price of the Computer Purchase (decimal number):\n");
      scanf("%lf", &Customer[cnt].basePrice);
      printf("\nEnter MB of Ram:\n");
      scanf("%d", &Customer[cnt].ramMB);
      printf("\nEnter 1 if the Computer is a Laptop, 0 Otherwise:\n");
      scanf("%d", &Customer[cnt].isLaptop);
      printf("\nEnter 1 if Computer has DVD Burner, 0 Otherwise:\n");
      scanf("%d", &Customer[cnt].hasDVDBurner);
      printf("\nEnter 1 if the Computer has Wirless Network, 0 Otherwise:\n");
      scanf("%d", &Customer[cnt].hasWireless);
      cnt+=1; /*Increases Count For Addition of Customer*/
      }

      void count(void) /*Prints total customers Function*/
      {
      printf("There are %d Total Customers\n\n", cnt);
      }

      void erase(void) /*Function to Erase Customer*/
      {
      int i,j,k;
      printf("\nEnter the ID of the Customer as an integer:\n");
      scanf("%d", &k);
      for(j=0; j<cnt; j++) /*Searches for Customer ID*/
      {
      if (Customer[j].Cid==k) /*Customer ID Found*/
      {
      break;
      }
      }
      if (j>=cnt) /*Customer ID Not Found*/
      {
      printf("\nCustomer ID Not Found\n");
      }

      for (i=j; i<cnt-1; i++) /*Deletes Customer Information*/
      {
      Customer.Cid=Customer[i+1].Cid;
      Customer.Cname[20]=Customer[i+1].Cname[20];
      Customer.Tele=Customer[i+1].Tele;
      Customer.basePrice=Customer[i+1].basePrice;
      Customer.ramMB=Customer[i+1].ramMB;
      Customer.isLaptop=Customer[i+1].isLaptop;
      Customer.hasDVDBurner=Customer[i+1].hasDVDBurner;
      Customer.hasWireless=Customer[i+1].hasWireless;
      cnt--;
      printf("\nCustomer %d Has Been Erased\n", k);
      }
      }
      void change(void) /*Change Telephone Number Function*/
      {
      int i, j; /*declare variables*/
      printf("\nEnter the ID of the Customer who has a New Phone Number\n");
      scanf("%d", &i);
      for(j=0; j<cnt; j++)
      {
      if(Customer[j].Cid == i)

  • About Me

  • Comments (25)

    • Shannon9

      10 years ago

      Hey

    • emopunker

      10 years ago

      Hello,
      How are you doing?

    • emilyyy

      11 years ago

      hey buddy!!!!!!

    • lovenothate

      11 years ago

      ha its alright...thanx!

    • ShadowCat666

      11 years ago

      you have lots of really nice pictures... oh and mighty mouse kicks all the other characters butts smiley4.gif

    • lovenothate

      11 years ago

      umm its more of a few random blurbs i came up with....not much of a poem or song but thanx!

    • drummrbabe9

      11 years ago

      Are you better yet?

    • MunkyBox

      11 years ago

      hahaah exciting is a relative term. I'm generally pretty boring.... I'm just a super nerd at heart.

    • FireWhite

      11 years ago

      I've had that pseudo program up for a couple weeks now, and you're the first person to even comment on it. Kudos sir, kudos.

    • NicoleAnne

      11 years ago

      you should join my photoshop contest!

    • cutmeugly

      11 years ago

      Yep.

    • Impartial_Me

      11 years ago

      ya, u should take a nap or sumthin, lol. mebbe later.

      not much goin' on wit me today. gonna jez head out to meet a friend for brunch, then who knowz?

      aiight, have a good one then, an' i'll check ya L8rz!

      o ya, should i call u Chip, or sumthin else u prefer?

      - jen

    • Impartial_Me

      11 years ago

      hei there. it goez jez fine. wuz gonna sign off an' head out in a few. wuzzup wit u??

    • cutmeugly

      11 years ago

      Updated Firefox and now it won't connect to the internet.
      It's no firewall or anything.
      I checked around online a bit and apparently a bunch of people have the same problem.

    • AngelToDeath

      11 years ago

      Lol no, not a python. He's a Colombian Boa.

    • MunkyBox

      11 years ago

      Best gorram show ever.

    • Impartial_Me

      11 years ago

      ya, any o' thoze soundz good. long az u do sumthin dat keeps u happy, ya??

      lookin to get out early, huh? how old are u??

      by da way, i should be gettin on wit da day, so i'mma head out now. have a good one tho, an' i'll check ya L8rz! smiley0.gif

      - jen

    • Impartial_Me

      11 years ago

      graduatin in a month, buziness administration an' math. yub. lol! prolly gonna get into some dezign thing instead, tho.

    • Impartial_Me

      11 years ago

      soundz nice an' relaxed, tho, so daz good. i go to UC Berkeley, up in Northern California. how bout u??

    • Impartial_Me

      11 years ago

      ya, i'm sure u'll get uzed to my writin style. if u want, i can jez type regularly like this? wuteva u prefer, if it makes it eazier for u.

      but ya, i'm jez chillin at home, on spring break. "home" az in da one i have on campus, not back home wit family, since i saw them jez recently. but ya, nuthin really goin' on. wudda bout u?

    • Impartial_Me

      11 years ago

      ya, Rez Evil 5 iz gonna rock! Rez 4 wuz awesome, one o' da few gamez i ever get aroun' to playin, lol. smiley6.gifsmiley6.gif

      an' thanks, i love my lil doggie, lol! not when he'z wet, tho. smiley6.gifsmiley6.gif

      aiight, thanks for stoppin by. i'm Jen, by da way. good to meet u. take it eazy, and i'll check ya L8rz! smiley0.gifsmiley0.gif

    • Drummer4life

      11 years ago

      haha, sweet.

    • godessjenifr

      11 years ago

      hi

    • SasukeOmally

      11 years ago

      What doth life? and how is it goin

    • khurram_89 FIRST Member Star(s) Indication of membership status - One star is a FIRST member, two stars is Double Gold Nerf herder

      11 years ago

      A fohawk would be badass. One of these days I'll definitely do it.

  • Questions

    No questions have been answered yet