Q:

Write a function to calculate the volume and surface area of a hollow cylinder. It receives as input arguments the radius of the cylinder base and the height of the cylinder. The volume is given by  r2 h, and the surface area is 2  r h

0

 Write a function to calculate the volume and surface area of a hollow cylinder. It receives as input arguments the radius of the cylinder base and the height of the cylinder. The volume is given by π r^2 h, and the surface area is 2 π r h

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

vol_surfarea.m

function [vol, surfarea] = vol_surfarea(rad, ht)

% Calculates the volume and surface area of a

% hollow cylinder, given the radius and height

% Format of call: vol_surfarea(radius, height)

% Returns volume then surface area

vol = pi * rad^2 * ht;

surfarea = 2 * pi * rad * ht;

end

Satellite navigation systems have become ubiquitous. Navigation 

systems based in space such as the Global Positioning System (GPS) 

can send data to handheld personal devices. The coordinate systems 

that are used to represent locations present this data in several 

formats. 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now