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.
calculate.h:
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

Recommended Answers

All 5 Replies

Post your effort.

im not very good with c, im a web student not a programming one lol

i would be imbarrased to post my effort ;;

an someone post a response please i am interested to see how to complete this.

Read the sticky -- it says "We only offer homework help to those who show effort"

im not very good with c, im a web student not a programming one lol

i would be imbarrased to post my effort ;;

that doesn't matter -- we are all in your situation at one time. Just post what you've tried so that someone can help you out.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.