Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Challenge task Ahmed has a water-based farm consists of 3 Planting ponds (asl vell). Each pond has a circular surface (globu) with area A, B,

image text in transcribed

Challenge task Ahmed has a water-based farm consists of 3 Planting ponds (asl vell). Each pond has a circular surface (globu) with area A, B, and C respectively. .( He wants to surround the biggest pond with a barrier Can you write a program in C++ to help him to know the perimeter of the barrier boxo) and the cost of the barrier? 1 meter of barrier cost for 4.5 JD. radius = area + T perimeter = X 2 X radius = 3.14 You have to use the predefined functions Max, sqrt. Constraints A, B, and c> 1 A+B+C Input Format 3 real number represents the values of the 3 circular areas. > Output Format The perimeter of the biggest planting pond. The cost of the barrier. A Sample #1 Input 60 50 92 Output The perimeter of safety barrier = 33.9929 The cost of the barrier is: 152.968

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions