Computer Science, asked by enakshiroydpsnt, 3 days ago

Write a program in java to accept the dimensions of a rectangular playground and cost fencing per unit. calculate and display the total cost of fencing of the rectangular playground.

Answers

Answered by rameshrajput16h
1

Answer:

Length of rectangular park = 175 m

Breadth of rectangular park = 125 m

Perimeter of park = 2 x (length + breadth)

= 2 x (175 + 125)

= 2 x 300 = 600 m

Since, cost of fencing park per meter = = Rs. 12

Therefore, cost of fencing park of 600 m = 12 x 600 = Rs. 7,200

Answered by sohamstd6
0

Answer:

Length of rectangular park = 175 m

Breadth of rectangular park = 125 m

Perimeter of park = 2 x (length + breadth)

= 2 x (175 + 125)

= 2 x 300 = 600 m

Since, cost of fencing park per meter = = Rs. 12

Therefore, cost of fencing park of 600 m = 12 x 600 = Rs. 7,200

Similar questions