Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Implment this only using functions C program to implement: To begin read a numbe

ID: 3537782 • Letter: I

Question

                               Implment this only using functions

C program to implement: To begin read a number (float type) from the user. If the number is not between -100 & 100 display an error message and ask for a new input again from the user. Logic for this is exactly same as the lab2. Implement the error check part using the function with the following prototype.

int check_number(float): This function takes a float number and checks if the number lies between -100 & 100 or not. If the number lies between -100- & 100 it returns 1 else it returns 0.

Now implement two small functions to compute square and cube of a given (float) number.

float square(float): It takes a float number and returns the square of the number.

float cube(float): It takes a float number and returns the square of the number.

Explanation / Answer