im just so stressed and having a mind block.. i have code please help
#include <stdio.h>
/*pre-defined processor statements*/
#ifndef __OPERATION__
#define __OPERATION__
#define TOTAL 0
#define ADDITION 1
#define SUBTRACTION 2
#define MULTIPLICATION 3
#define DIVISION 4
#define MODULAR 5
#endif
int main() {
/*assign the variables*/
int num1 = 0;
int num2 = 0;
char operation;
char operation2;
int total = 0;
/*modular is q while m is multiplication*/
printf(" Programming Assignment #2 - by Geoffrey \n");
printf("\n");
/* asking user for one input*/
printf("please enter the First Number:");
scanf("%d", &num1);
fflush(stdin);
/* checks if the first user input is within range( bounds checking)*/
while (num1 < -1000 || num1 > 1000) {
printf("out of bounds\n");
printf("please enter the First Number:");
scanf("%d", &num1);
fflush(stdin);
}
/* ask user for second input*/
printf("please enter the Second Number:");
scanf("%d", &num2);
fflush(stdin);
/* checks if the second user input is within range (bounds checking)*/
while (num2 < -1000 || num2 > 1000) {
printf("out of bounds\n");
printf("please enter the Second number");
scanf("%d", &num2);
fflush(stdin);
}
/* tells user for the next step as prompted*/
printf("Please select an operation to put in the blank space\n");
printf("%d__%d= \n", num1, num2);
printf("\n\n");
printf("type the associated letter and press enter:\n");
printf(" A - Addition\n S - Subtraction\n M - Multiplication\n D - Division\n Q - Modular\n");
/* use scanf to receive the letter for the operation*/
scanf("%d", operation2);
/* uss a switch case structure to use the user input calculator math */
switch (operation2)
{
case ADDITION : total = num1 + num2;
operation = '+';
break;
case SUBTRACTION: total = num1 - num2;
operation = '-';
break;
case MULTIPLICATION: total = num1 * num2;
operation = '*';
break;
case DIVISION: total = num1 / num2;
operation = '/';
break;
case MODULAR:
total = num1 % num2;
operation = '%';
break;
default: printf("Invalid Letter selected\n");
}
return(0);
}