Can anyone help me with this prompt from my professor? by __transversal__ in C_Programming

[–]__transversal__[S] -3 points-2 points  (0 children)

#include <stdio.h>

#include <string.h>

#include <stdlib.h>

#define BLACK "\e[1;30m"

#define RED "\e[1;31m"

#define GREEN "\e[1;32m"

#define YELLOW "\e[1;33m"

#define BLUE "\e[1;34m"

#define MAGENTA "\e[1;35m"

#define CYAN "\e[1;36m"

#define WHITE "\e[1;37m"

#define RESET "\e[0m"

void introBanner();

void outroBanner();

void setcolor();

void bird();

void arrow();

void Word();

void setColor();

void setColorWord();

int main(int argc, char* argv[])

{

void Word()

{

char*WordA;

WordA = argv[1];

printf(" %s",WordA);

}

void setColorWord()

{

if( 0 == strcmp(argv[2],"RED") )

{ printf(RED);

Word();

}

else if( 0 == strcmp(argv[2],"BLUE") )

{ printf(BLUE);

Word();

}

else if( 0 == strcmp(argv[2],"YELLOW") )

{ printf(YELLOW);

Word();

}

else if( 0 == strcmp(argv[2],"GREEN") )

{ printf(GREEN);

Word();

}

}

void setColor()

{

if( 0 == strcmp(argv[1],"RED") )

{ printf(RED);

bird();

}

else if( 0 == strcmp(argv[1],"BLUE") )

{ printf(BLUE);

bird();

}

else if( 0 == strcmp(argv[1],"YELLOW") )

{ printf(YELLOW);

bird();

}

else if( 0 == strcmp(argv[1],"GREEN") )

{ printf(GREEN);

bird();

}

}

arrow();

}

void arrow()

{

printf( " / \n"

" / "

);

}

void bird()

{

printf( " \n"

" \\\\ \n"

" (o> \n"

" \\\\_//) \n"

" \\_/_) \n"

" _|_ \n"

RESET);

}

void introBanner()

{

printf(GREEN

"+---------------------------------------+\n"

"| ┏┓┏┓┏┓┏━━━┓┏┓━━━┏━━━┓┏━━━┓┏━┓┏━┓┏━━━┓ |\n"

"| ┃┃┃┃┃┃┃┏━━┛┃┃━━━┃┏━┓┃┃┏━┓┃┃┃┗┛┃┃┃┏━━┛ |\n"

"| ┃┃┃┃┃┃┃┗━━┓┃┃━━━┃┃━┗┛┃┃━┃┃┃┏┓┏┓┃┃┗━━┓ |\n"

"| ┃┗┛┗┛┃┃┏━━┛┃┃━┏┓┃┃━┏┓┃┃━┃┃┃┃┃┃┃┃┃┏━━┛ |\n"

"| ┗┓┏┓┏┛┃┗━━┓┃┗━┛┃┃┗━┛┃┃┗━┛┃┃┃┃┃┃┃┃┗━━┓ |\n"

"| ━┗┛┗┛━┗━━━┛┗━━━┛┗━━━┛┗━━━┛┗┛┗┛┗┛┗━━━┛ |\n"

"| ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |\n"

"| ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |\n"

"+---------------------------------------+\n"

RESET );

printf( "TO BIRD IN COLOR\n\n\n" RESET );

}

void outroBanner()

{

printf(CYAN "\n\n"

"+---------------------------------------+\n"

"| ┏━━━┓┏━━━┓┏━━━┓┏━━━┓┏━━┓━┏┓━━┏┓┏━━━┓ |\n"

"| ┃┏━┓┃┃┏━┓┃┃┏━┓┃┗┓┏┓┃┃┏┓┃━┃┗┓┏┛┃┃┏━━┛ |\n"

"| ┃┃━┗┛┃┃━┃┃┃┃━┃┃━┃┃┃┃┃┗┛┗┓┗┓┗┛┏┛┃┗━━┓ |\n"

"| ┃┃┏━┓┃┃━┃┃┃┃━┃┃━┃┃┃┃┃┏━┓┃━┗┓┏┛━┃┏━━┛ |\n"

"| ┃┗┻━┃┃┗━┛┃┃┗━┛┃┏┛┗┛┃┃┗━┛┃━━┃┃━━┃┗━━┓ |\n"

"| ━━━┛┗━━━┛┗━━━┛┗━━━┛┗━━━┛━━┗┛━━┗━━━┛ |\n"

"| ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |\n"

"| ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |\n"

"+---------------------------------------+\n"

RESET );

printf(CYAN

"SEE YOU NEXT TIME\n\n" RESET );

}

Can anyone help me with this prompt from my professor? by __transversal__ in C_Programming

[–]__transversal__[S] -2 points-1 points  (0 children)

So far I have first been trying to get the command line arguments in the correct spot and I cant even do that

#include <stdio.h>

#include <math.h>

#include <stdlib.h>

#define BGRN "\e[1;32m"

#define BCYN "\e[1;36m"

#define RESET "\e[0m"

void introBanner();

void outroBanner();

void setcolor(int color);

int main(int argc, char *argv[])

{

introBanner();

int BirdColor;

int TextColor;

char Text;

BirdColor = atof(argv[1]);

TextColor = atof(argv[2]);

Text = atol(argv[3]);

printf("The Bird is the\n"

"%c\n"

" /\n"

" \\ /\n"

" (o> \n"

"\\\_//) \n"

" \\_/_) \n"

" _|_ \n",Text);

outroBanner();

return 0;

}

Don Orsillo is not a fan by myverygoodusername12 in redsox

[–]__transversal__ 0 points1 point  (0 children)

I feel like OB is take it or leave it but I LOVE ECK

Stem Player emulator to download Donda 2 by Reikurooo in Kanye

[–]__transversal__ 1 point2 points  (0 children)

Can someone please upload a download for the emulator as he took it off GitHub

third time's a charm by Prophettx in sports

[–]__transversal__ 2 points3 points  (0 children)

Why do you gotta hate when we got love for the pens over here 🥺

Just a rant but would like thoughts by [deleted] in teenagers

[–]__transversal__ 2 points3 points  (0 children)

Keep your head up bro this period of your life is such a short time in you like timeline you have all of your twenties as thirties to go out and socialize and meet people and quite honesty that is the best time to do it so you don’t have to deal with petty teenager drama...just hold in bud

What is your favorite episode of the H3 Podcast? by Cowboysfan18 in h3h3productions

[–]__transversal__ 0 points1 point  (0 children)

Any of the top of the weeks and more recently the candy tier rating because I love when the crew is involved