main.c
queue_functions.h
queue_functions.c
stack_functions.h
stack_functions.c
If you don't know how to do we have an example If you are not familiar with terminal, this video may help you Ccompile and run a C program with cmd E (optional video) - YouTube Input.txt format: 1QWER 2F3SS4FLASH Lev100.0Q00LL3.31 Asc112PIEQUALTO 3.14159 Output.txt format: (stack) +1 love 4 cs 2 Output.txt format: (queue) 1234 1003.3 1123.14159 total =228.44159 \#include \#include "stack_functions.h" \#include "queue_functions.h" \#define MAX_BUFFER 1024 int main(int argc, char *argv[]) \{ // utilize fopen function // implement those requirements return 0 ; \} \#ifndef QUEUE_FUNCTIONS_H \#define QUEUE_FUNCTIONS_H \#define MAX_NUMBERS 100 typedef struct \{ char* items[MAX_NUMBERS]; int front, rear; \} Queue; void initializeQueue (Queue* queue); int isQueueEmpty (Queue* queue); void enqueue(Queue* queue, char* item); char* dequeue(Queue* queue); void printNumbersAndSum(Queue* queue); \#endif \#include \#include \#include \#define MAX_LENGTH 20 \#define MAX_NUMBERS 100 typedef struct \{ char* items [MAX_NUMBERS]; int front, rear; \} Queue; void initializeQueue(Queue* queue) \{ \} int isQueueEmpty(Queue* queue) \{ \} void enqueue(Queue* queue, char* item) \{ \} char* dequeue (Queue* queue) \{ \} void printNumbersAndSum(Queue* queue) \{ // Implement this function to print numbers and their summation \} \#ifndef STACK_FUNCTIONS_H \#define STACK_FUNCTIONS_H \#define MAX_WORDS 100 typedef struct \{ char* items[MAX_WORDS]; int top; \} Stack; void initializeStack (Stack* stack); int isStackEmpty (Stack* stack); void push(Stack* stack, char* item); char* pop(Stack* stack); void printLowerCaseWordsReverse (Stack* stack); \#endif \#include \#include \#define MAX_LENGTH 20 \#define MAX_WORDS 100 typedef struct \{ char* items[MAX_WORDS]; int top; \} Stack; void initializeStack(Stack* stack) \{ \} int isStackEmpty(Stack* stack) \{ \} void push(Stack* stack, char* item) \{ \} char* pop(Stack* stack) \{ \} void printLowerCaseWordsReverse (Stack* stack) \{ // Implement this function to print lowercase words in reverse order \}