Please answer the following and post your code
1. You were tasked to build a module that calculates and prints the area of a rectangle,
perimeter of a rectangle, and volume of a rectangle:
Here's the header.
void pr(float, float);
void ar(float, float);
void volume(float, float, float);
Create the .c file for that header and also create a program called
funciton_wizard.c to use it.
The program called the function_wizard.c gives the user a menu option as below:
The Function Wizard:
1) Determine perimeter of a rectangle
2) Determine area of a rectangle
3) Determine volume of rectangle
It will then call the external functions you created above and pass in the appropriate arguments.
2) Create a math quiz program.
Your quiz should ask the user for the number of problems.
It will then randomly generate those number of problems.
The problems will always be as below:
20 + 30=
These are the only variables you are allowed to declare
int response; //to hold the users answer
int *answer; //an array to hold the answer for each question
int *op1; //an array to hold the first operator of each question.
int *op2; //an array to hold the second operator of each question.
char *result; //a character array to hold either c(correct)
//or w(wrong) for each question.
int x; // for loop counter