Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Web development and programming

191828 questions • Page 20 / 3837

#include #include #include void order_two_player
#include <stdio.h> #include <stdlib.h> #include <string.h> void order_two_players(player_t* player1_p, player_t* player2_p) { /* This function compares two playe…
#include #include #include void order_two_player
#include <stdio.h> #include <stdlib.h> #include <string.h> void order_two_players(player_t* player1_p, player_t* player2_p) { /* This function compares two playe…
#include #include #include #include #inc
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <ctype.h> #include <string.h> int main(int argc, char const *argv[]) { FILE *inputF…
#include #include #include #include /**
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> /*****************************************************************************…
#include #include #include #include /**
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> /*****************************************************************************…
#include #include #include /*The goal of this prog
#include <stdio.h> #include <stdlib.h> #include <time.h> /*The goal of this program is to create an array and fill itwith numbers created by a random number gene…
#include #include #include int main (void) { int n
#include <stdio.h> #include <stdlib.h> #include <time.h> int main (void) {    int num ;    int one =0;    int two =0;    int three =0 ;    int four = 0;    int f…
#include #include #include int main() { srand ( ti
#include <stdio.h> #include <stdlib.h> #include <time.h> int main() {   srand ( time(NULL) );   int i;   for(i = 0; i < 10; i++)    {    int random = rand() %…
#include #include #include typedef struct customer
#include <stdio.h> #include <stdlib.h> #include <time.h> typedef struct customerStruct { int numItems; int processTime;//(item process time * num items) int wait…
#include #include #include #include
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <readline/readline.h> #include<string.h> #include <readline/history.h> #inc…
#include #include #include #include
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <readline/readline.h> #include <readline/history.h> /* Simple example of using gn…
#include #include #include int player1[5],player2[5
#include <stdio.h> #include <stdlib.h> #include<time.h> int player1[5],player2[5]; int index1=0,index2=0; char suits_str[4][10]= {"Spades", "Hearts", "Diamonds",…
#include #include #include int player1[5],player2[5
#include <stdio.h> #include <stdlib.h> #include<time.h> int player1[5],player2[5]; int index1=0,index2=0; char suits_str[4][10]= {"Spades", "Hearts", "Diamonds",…
#include #include /* **************************************
#include <stdio.h> #include <stdlib.h> /* ****************************************************************** ALTERNATING BIT AND GO-BACK-N NETWORK EMULATOR: VERSION 1.…
#include #include /* Define structure to represent a hurric
#include <stdio.h> #include <stdlib.h> /* Define structure to represent a hurricane. */ struct person {     char name[32];     int age; }; int main(void) {     /* Decl…
#include #include //Function prototypes void displayFile();
#include <stdio.h> #include <stdlib.h> //Function prototypes void displayFile(); //Main function int main() { char userName[30], password[30]; char ch; //Two file poin…
#include #include //Function prototypes void displayFile();
#include <stdio.h> #include <stdlib.h> //Function prototypes void displayFile(); //Main function int main() { char userName[30], password[30]; char ch; //Two file poin…
#include #include extern void abc(int *x); extern void abc(
#include <stdio.h> #include <stdlib.h> extern void abc(int *x); extern void abc(int x[20]); extern void abc(int x[]); void abc(int x[3]) { printf("inside abc: size is …
#include #include int main (int argo, char* argv[]) { print
#include <stdio.h> #include <stdlib.h> int main (int argo, char* argv[]) { printf("hello world ! "); // this is an example system("pause"); return 0 ; } It is absolute…
#include #include int main() { float slope, M; int point1,p
#include <stdio.h> #include <stdlib.h> int main() { float slope, M; int point1,point2, b, Y; printf("=============================Equation Computation=================…
#include #include int main() { int account; char name[30];
#include <stdio.h> #include <stdlib.h> int main() { int account; char name[30]; double balance; FILE *cfPtr; if((cfPtr = fopen("clients.dat","w")) == NULL){ printf("Fi…
#include #include int main(){ int count = 0; int num = 0; i
#include <stdio.h> #include <stdlib.h> int main(){ int count = 0; int num = 0; int value[100]; printf("How many random values to generate: "); scanf("%d", &num); i…
#include #include int play_game(int *); // Returns 0 if pla
#include <stdio.h> #include <stdlib.h> int play_game(int *); // Returns 0 if player won, 1 if the computer won, 2 if there is a tie, and -1 if the player decides to qu…
#include #include int quickselect( int *A, int k, int n); i
#include <stdio.h> #include <stdlib.h> int quickselect( int *A, int k, int n); int main(void) {   long i; int *space; int tmp; space = (int *) malloc( 1000000*sizeof(i…
#include #include main() { char string 1 [4], string 2 [10]
#include <stdio.h> #include <stdlib.h> main() { char string 1 [4], string 2 [10] foat num; scanf( " %3 s % 4 f% s ", string 1, & num, string2); return Exit_sucess;…
#include #include typedef struct Node { int data; /* Could
#include <stdio.h> #include <stdlib.h> typedef struct Node { int data;          /* Could put any kind of data here*/    struct Node *next; /* Self-referential requires…
#include #include typedef struct Node { int data; /* Could
#include <stdio.h> #include <stdlib.h> typedef struct Node { int data;          /* Could put any kind of data here*/    struct Node *next; /* Self-referential requires…
#include #include typedef struct Node { int data; /* Could
#include <stdio.h> #include <stdlib.h> typedef struct Node {    int data;          /* Could put any kind of data here*/    struct Node *next; /* Self-referential requi…
#include #include void pointers(int *x, int *y, int z, int*
#include <stdio.h> #include <stdlib.h> void pointers(int *x, int *y, int z, int* w) { printf(" In pointers, x[2], *y, z, w: %d, %d, %d, %d", x[2], *y, z, *w); x[2] = 7…
#include #include void print_arr(int nums[], int esize); in
#include <stdio.h> #include <stdlib.h> void print_arr(int nums[], int esize); int main () { printf(" "); const int SIZE = 4; // dynamically allocate an array of size S…
#include #include #define SIZE 15 void sort(float num[], in
#include <stdio.h> #include <string.h> #define SIZE 15 void sort(float num[], int lo, int hi); int main() { int i,ok,num[SIZE],num1[SIZE],num2[SIZE]; char str[25]; uns…
#include #include #include #define DIM1 6 #defin
#include <stdio.h> #include <string.h> #include <stdlib.h> #define DIM1 6 #define DIM2 8 #define NAME_LEN 20 #define qsort NOT_ALLOWED void Geninsert(void *, siz…
#include #include #include #define MAX_FLIGHTCOD
#include <stdio.h> #include <string.h> #include <stdlib.h> #define MAX_FLIGHTCODE_LEN 6 #define MAX_CITYCODE_LEN 3 #define MAX_NUM_FLIGHTS 5 #define DB_NAME "dat…
#include #include #include // Read before you st
#include <stdio.h> #include <string.h> #include <stdlib.h> // Read before you start: // Do not modify any part of this program that you are given. Doing so may c…
#include #include #include //Library needed for
#include <stdio.h> #include <string.h> #include <stdlib.h> //Library needed for exit(0) int main() { int textFile; FILE *fp; fp = fopen("Proj3input.txt", "r"); i…
#include #include #include int main() { //Declar
#include <stdio.h> #include <string.h> #include <stdlib.h> int main() { //Declare all required variables char classes[6][20]; int timeHour[6]; int timeMinute[6];…
#include #include #pragma warning(disable : 4996) // Read b
#include <stdio.h> #include <string.h> #pragma warning(disable : 4996) // Read before you start: // Do not modify any part of this program that you are given. Doing so…
#include #include #pragma warning(disable : 4996) // Read b
#include <stdio.h> #include <string.h> #pragma warning(disable : 4996) // Read before you start: // Do not modify any part of this program that you are given. Doing so…
#include #include #pragma warning(disable : 4996) // compil
#include <stdio.h> #include <string.h> #pragma warning(disable : 4996) // compiler directive for Visual Studio only // Read before you start: // You are given a partia…
#include #include // Read before you start: // Do not modif
#include <stdio.h> #include <string.h> // Read before you start: // Do not modify any part of this program that you are given. Doing so may cause you to fail automated…
#include #include // Read before you start: // Do not modif
#include <stdio.h> #include <string.h> // Read before you start: // Do not modify any part of this program that you are given. Doing so may cause you to fail automated…
#include #include //*** Sorts an array of strings in place
#include <stdio.h> #include <string.h> //*** Sorts an array of strings in place ***// // // Inputs: // strings: the array of strings, each entry is type char * // leng…
#include #include int getche(void); char* getDateAndTime();
#include <stdio.h> #include <string.h> int getche(void); char* getDateAndTime(); long DecimaltoBinary(long n); int main(){ long Decimal = 240; do { printf("Enter an In…
#include #include main() { int i,a; char s[3],t[2]; s[0]=\'
#include <stdio.h> #include <string.h> main() { int i,a; char s[3],t[2]; s[0]='B'; s[1]='c'; s[2]=''; t[0]='B'; t[1]=''; i=0; a=0; while (a == 0) { if (s[i] < t[i])…
#include #include void ReverseArray(char* apples); int main
#include <stdio.h> #include <string.h> void ReverseArray(char* apples); int main() { int i; char tires[80]; strcpy(tires,"Whitewalls are best"); printf ("Tires is loca…
#include #include // if you need string library int main (
#include <stdio.h> #include <strings.h> // if you need string library int main (int argc, char *argv[]) { // If argv[1] exists, set filename to it, otherwise set // fi…
#include #include #include int main (int args
#include <stdio.h> #include <sys/types.h> #include <unistd.h> int main (int args, char *argv[]) { pid_t fork_return; pid_t pid; pid=getpid(); fork_return = fork(…
#include #include #define MAX LINE 80 /* The maximum length
#include <stdio.h> #include <unistd.h> #define MAX LINE 80 /* The maximum length command */ int main(void) { char *args[MAX LINE/2 + 1]; /* command line arguments */ i…
#include #include #define PROCS 5 int main () { int pid, pr
#include <stdio.h> #include <unistd.h> #define PROCS 5 int main () {    int pid, proc, checkTotal, pidTotal = 0, reportFds[2];    pipe(reportFds);    /* Create PROCS c…
#include #include \"readline.h\" #include \"equipment.h\" int main(voi
#include <stdio.h> #include "readline.h" #include "equipment.h" int main(void) { char code; struct equipment *e_list = NULL; printf("Operation Code: a for appending to the l…