I have updated and tested an implementation of WP eCommerce to work with Netbilling’s shopping cart.
If you would like a copy installed for your site, contact me.
Price: $25 (Paypal)
I have updated and tested an implementation of WP eCommerce to work with Netbilling’s shopping cart.
If you would like a copy installed for your site, contact me.
Price: $25 (Paypal)
#include <stdio.h> #include <stdlib.h> #define MAXSIZE 15 int printMenu(int menu); int divRoutine(int menu); int arraySearch(int menu); int main() { int menu = 0; do { printMenu(menu); } while(menu != 3); system("pause"); return 0; } int printMenu(int menu) { int select = menu; printf("Sort Menu\n"); printf("=========\n\n"); printf("1> Divide\n"); printf("2> Find parts of the array\n"); printf("3> Exit\n"); printf("==========================\n\n"); printf("Please make a selection: "); scanf("%i", &select); switch (select) { case 1: divRoutine(menu); break; case 2: arraySearch(menu); break; case 3: printf("\nThank you for time.\n\n"); system("pause"); exit(0); default: printf("Sorry, I did not understand your selection\n\n"); printf("Goodbye!\n\n"); system("pause"); exit(0); } } int divRoutine(int menu) { int select = menu; int num1 = 0, num2 = 0; float result = 0; printf("\n\nLets Divide Stuff!\n\n"); printf("Enter the first number: "); scanf("%i", &num1); printf("\n%i divided by what? ", num1); scanf("%i", &num2); if(num2 == 0) { printf("Sorry, we cant not divide by zero!\n\n"); } else { printf("\n%i divided by %i is %.2g\n\n", num1, num2, result = (float)num1 / (float)num2); } system("pause"); system("cls"); return select; } int arraySearch(int menu) { int select = menu, i = 0, size = 0, j = 0, temp = 0, sizeCheck = 0, process = 1; // int a[MAXSIZE] = {75, 27, 19, 34, 6}; Testing Array int a[MAXSIZE] = {0}; printf("\n\nLets Do Array Stuff\n\n"); do { printf("Pick an odd number of elements you want in the array (MAX %i): ", MAXSIZE); scanf("%i", &size); sizeCheck = size % 2; if (size > MAXSIZE || sizeCheck == 0) { printf("\nWe need an odd number of elements with a MAX number of %i!\n\n", MAXSIZE); system("pause"); system("cls"); process = 0; } else { process = 1; } }while(process == 0); printf("\n"); for(i = 0; i < size; i++) { printf("Enter array element %i: ", i + 1); scanf("%i", &a[i]); } printf("\nHere is the array we are starting with: "); for(i = 0; i < size; i++) { printf("%i ", a[i]); } printf("\n\n\n"); for(i = 0; i < size; i++) { for(j = 0; j < size-1; j++) { if(a[j] > a[j+1]) { temp = a[j]; a[j] = a[j+1]; a[j+1] = temp; } } } printf("1> The smallest value is: %i \n", a[0]); printf("2> The middle value is: %i \n", a[size / 2]); printf("3> The largest value is: %i \n", a[size - 1]); printf("\n"); system("pause"); system("cls"); return select; }
This was an exercise to call functions, pass variables and return a value. A little user input error checking is included.
#include <stdio.h> #include <stdlib.h> #define SIZE 4 void getInput(int num[]); int getLargest(int num[], int size); int main() { int i, largest, num[SIZE]; getInput(num); getLargest(num, SIZE); printf("The largest number is: %i. \n", getLargest(num, SIZE)); system("pause"); return 0; } void getInput(int num[]) { int i; for (i = 0; i < SIZE; i++) { printf("Enter a unique integer: "); scanf("%i", & num[i]); } } int getLargest(int num[], int size) { int i, largest; for (i = 0, largest = num[i++]; i < SIZE; i++) { if (num[i] > largest) { largest = num[i]; } } return largest; }
Takes input from user, then gives back the largest number from input. Array size can easily be changed through the constant SIZE. Notice the functions at the bottom. 🙂
I wrote a short lottery number generator. It accepts two inputs from the user:
1> How many numbers?
2> Range of numbers?
It then checks to see if the user input is valid then loops through a for loop to generate X numbers.
Today, was the first day of my C programming course. I only have 2 classes this semester because I want to knock out the RHCSA/CE during the holidays or sometime in January.
Side note: Did you know Visual Studio 2012 is a free download from Microsoft? http://www.microsoft.com/en-us/download/details.aspx?id=30682
I found out through my class Syllabus. This course requires an IDE with an ANSI C compiler, so the Professor suggested Visual Studio.
My next goal is to become certified as a RedHat System Administrator (RHCSA) AND RedHat Certified Engineer (RHCE). These tests are completely hands on, so no more simulation only questions. Going by the information I’ve been reading, I am allotting myself until January to sit for both tests. Did I mention these exams are $400 each? I can not afford to fail… LOL.
Lets get to it!
Today I received my A.S. in Information Technology.
Next degree -> B.S. in I.T.
Today passed the SY0-301 exam. Now I have my Security+ ce certification. This completes my the initial trio of certifications I wanted to have before summer. 🙂
Today passed the N10-005 exam. Now I have my Network+ ce certification. 🙂
On Monday, I passed the LX0-101.
Today passed the LX0-102 completing my Linux+ certification. I can fly this banner proudly now.