Computer Science, asked by mohdsahban6145, 9 months ago

Write a program to determine the area of the wooden strip required to frame a photograph of length 32cm and breadth as 21 cm respectively

Answers

Answered by srajfaroquee
0

Answer:

#include<iostream>

using namespace std;

//Function to calculate area of the wooden strip .

int main ()  {

   int len1,len2,bre1,bre2 ,area ;

//Taking the length and breadth of photograph.

   cout<<"Enter the length and breadth of the Photograph:\n"  ;

   cin>>len1>>bre1;

//Since the frame will be fitted along the border of the Photograph.

//So, length and breadth will be different from size of the photograph

//And assume that the wooden strip is 1 cm wide.  

   len2 = len1 + 2 ;

   bre2 = bre1 ;

   area = (len2 * bre2 ) - (len1 * bre1);

   cout<<"\nThe Area of the wooden strip is " << area <<" sq cm. " ;

return 0 ;

}

** Please mark this ans as Brainliest answer. Thank you!

Answered by Venomll
0

length of the wooden strip required to frame a photograph = 106 cm

Step-by-step explanation:

Length (l) of photograph = 32 cm

Breadth (b) of photograph 21 cm

Length of wooden strip required Perimeter of Photograph

= 2 x (I + b)

= 2 x (32 + 21) 2 x 53 = 106 cm

Similar questions