Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2.39 LAB: Volume and area of cylinder The volume and area of a cylinder are calculated as: - Volume =2h - Area=2h+2tr2 Given the radius

image text in transcribed
2.39 LAB: Volume and area of cylinder The volume and area of a cylinder are calculated as: - Volume =2h - Area=2h+2tr2 Given the radius and height of a cylinder as floating-point (double) numbers output the volume and area of the cylinder. Hint. Use powD and M.PI from math h in your calculations Qutput each noating-point value with one digit after the decimal point, which can be achieved as follows printf("Volune: 90.11f cubic inches 1n ", yourvalue); Ex: If the input is 5.2:8.1 Where 52.15 the radius of the cylinder and 8.1 is the height of the cylinder, then the output is: Volume: 698.1 cubic inches Surface area: 434.5 equare inches \begin{tabular}{l|l} us \\ ACTiviry & 2391 LAB Volume and area of cylinden \end{tabular} main.0 Load default templatn:- 1 ainclude knath. hs 2 ainclude sstdio. ho 3 4 int main() (1 % type your sode herie. \%/ B. roturn o

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

Understanding Databases Concepts And Practice

Authors: Suzanne W Dietrich

1st Edition

1119827949, 9781119827948

More Books

Students also viewed these Databases questions