Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Graphic underneath shows a fenced area. The perimeter enclosure has a rectangular portion ( with 3 sides, as shown ) , connected to a semi

Graphic underneath shows a fenced area. The perimeter enclosure has a rectangular portion (with 3 sides, as shown), connected to a semi-circular part. The cost to build and install the fence is $15ft for the curved portions of fence, and $12ft for the straight portions of fence.
Write a user-defined function, such that the code would:
a) Consider "R" and "L"(where L is the width of the rectangular part and R is the radius of curvature of the curved portion) as the input parameters to run the function. Choose any combination of R and L values.
b) Calculate the output "cost" to build the enclosure fence.
c) If the cost to build the enclosure exceeds $1500, make the code write out "This is too expensive".
Otherwise, make the code write "The expenses are manageable".
2+3+10=15 points
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Auditing & Assurance Services

Authors: Timothy Louwers, Penelope Bagley, Allen Blay, Jerry Strawser, Jay Thibodeau

8th Edition

978-1260703733, 1260703738

More Books

Students also viewed these Accounting questions