Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. The figure shows a cylinder of radius r and height h. Write a function with 2 inputs, the radius and height of the cylinder,

image text in transcribed

2. The figure shows a cylinder of radius r and height h. Write a function with 2 inputs, the radius and height of the cylinder, and 2 outputs, the volume and surface area. The volume and surface area can be calculated as follows: Aend = nr2 P = 2tr Aside = Ph V = Aendh area of one end of the cylinder perimeter of end of cylinder area of side of cylinder volume of cylinder The total surface is the area of both ends plus the area of the side. A radius of 2 and a height of 5 should result in a volume of 62.8 and a surface area of 88.0. 2. The figure shows a cylinder of radius r and height h. Write a function with 2 inputs, the radius and height of the cylinder, and 2 outputs, the volume and surface area. The volume and surface area can be calculated as follows: Aend = nr2 P = 2tr Aside = Ph V = Aendh area of one end of the cylinder perimeter of end of cylinder area of side of cylinder volume of cylinder The total surface is the area of both ends plus the area of the side. A radius of 2 and a height of 5 should result in a volume of 62.8 and a surface area of 88.0

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_2

Step: 3

blur-text-image_3

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

International Baccalaureate Computer Science HL And SL Option A Databases Part I Basic Concepts

Authors: H Sarah Shakibi PhD

1st Edition

1542457084, 978-1542457088

More Books

Students also viewed these Databases questions

Question

state what is meant by the term performance management

Answered: 1 week ago