need a code for this in C: Define and Implement the following functions: float Area_Rect(float length, float width) - returns the computed area of a rectangle where: AR=length x width float Peri_Rect(float length, float width) - returns the computed perimeter of a rectangle where: pR= 2 x (L+W); float Diag_Line(float length, float width) - returns the computed diagonal line
I need a code for this in C:
Define and Implement the following functions:
float Area_Rect(float length, float width)
- returns the computed area of a rectangle
where: AR=length x width
float Peri_Rect(float length, float width)
- returns the computed perimeter of a rectangle
where: pR= 2 x (L+W);
float Diag_Line(float length, float width)
- returns the computed diagonal line of a
rectangle using the formula: dLine= sqrt(length x length+width x width)
float Area_Tria(float length,float width)
- returns the computed area of a triangle: aT= (length x width)/2
Create a function main() that will accept inputted values for the
length and width of a rectangle. Invoke each functions given above
and print the returned value of each function.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images