The first line contains 2 integers n and k that contain the number of time frames provided and the number of time frames to be estimated. The next n lines contain 4 floating point values x1, y1, x2 and y2 that represent the two points of the arm (elbow and wrist respectively).
Answers
Program for Area And Perimeter Of Rectangle
A rectangle is a flat figure in a plane.It has four sides and four equal angles of 90 degree each.In rectangle all four sides are not of equal length like square, sides opposite to each other have equal length.Both diagonals of rectangle have equal length.
Examples:
Input : 4 5
Output : Area = 20
Perimeter = 18
Input : 2 3
Output : Area = 6
Perimeter = 10
Recommended: Please try your approach on {IDE} first, before moving on to the solution.
Formulae :
Area of rectangle : a*b
Perimeter of ractangle: 2*(a + b)
// CPP program to find area
// and perimeter of rectangle
#include<bits/stdc++.h>
using namespace std;
// Utility function
int areaRectangle(int a, int b)
{
int area = a * b;
return area;
}
int perimeterRectangle(int a, int b)
{
int perimeter = 2*(a + b);
return perimeter;
}
// Driver program
int main()
{
int a = 5;
int b = 6;
cout << "Area = " << areaRectangle(a, b) << endl;
cout << "Perimeter = " << perimeterRectangle(a, b);
return 0;
}
Output :
Area = 30
Perimeter = 22
hope it helps you....
do mark it as brainliest...