SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
The volume V of a cylinder is given by the formula
v = 3.14r^2L, r = radius and L = Length.
a) Using this formula write a C++ function named cylvol() that accepts a cylinder's radius and
length and returns its volume.
b) Create the function prototype
c) The radius and length of the cylinder you will get through user's inputs
The function should be called from the main function and returns a value to the main function.
Test the functions by passing values.
Input comments.

Weitere ähnliche Inhalte

Mehr von alankareyecare

this is all the information given 2. (4 PTS) Under the 1990 Farm Bi.pdf
this is all the information given  2. (4 PTS) Under the 1990 Farm Bi.pdfthis is all the information given  2. (4 PTS) Under the 1990 Farm Bi.pdf
this is all the information given 2. (4 PTS) Under the 1990 Farm Bi.pdfalankareyecare
 
This exercise refers to the experiment of tossing four coins. What i.pdf
This exercise refers to the experiment of tossing four coins. What i.pdfThis exercise refers to the experiment of tossing four coins. What i.pdf
This exercise refers to the experiment of tossing four coins. What i.pdfalankareyecare
 
The volume of air within stiff, cartilaginous conduits of a respirat.pdf
The volume of air within stiff, cartilaginous conduits of a respirat.pdfThe volume of air within stiff, cartilaginous conduits of a respirat.pdf
The volume of air within stiff, cartilaginous conduits of a respirat.pdfalankareyecare
 
There are several commonalities and differences between the role and.pdf
There are several commonalities and differences between the role and.pdfThere are several commonalities and differences between the role and.pdf
There are several commonalities and differences between the role and.pdfalankareyecare
 
there is no figure The brain organizes touch infomation in a particu.pdf
there is no figure The brain organizes touch infomation in a particu.pdfthere is no figure The brain organizes touch infomation in a particu.pdf
there is no figure The brain organizes touch infomation in a particu.pdfalankareyecare
 
There has been a great deal of ground subsidence in California�s Cen.pdf
There has been a great deal of ground subsidence in California�s Cen.pdfThere has been a great deal of ground subsidence in California�s Cen.pdf
There has been a great deal of ground subsidence in California�s Cen.pdfalankareyecare
 
The traditional role of data architects has not changed. They are tr.pdf
The traditional role of data architects has not changed. They are tr.pdfThe traditional role of data architects has not changed. They are tr.pdf
The traditional role of data architects has not changed. They are tr.pdfalankareyecare
 
There are various approaches in regards to how costs are allocated a.pdf
There are various approaches in regards to how costs are allocated a.pdfThere are various approaches in regards to how costs are allocated a.pdf
There are various approaches in regards to how costs are allocated a.pdfalankareyecare
 
There are two coins in the bag one coin is fair (shows T and H with.pdf
There are two coins in the bag one coin is fair (shows T and H with.pdfThere are two coins in the bag one coin is fair (shows T and H with.pdf
There are two coins in the bag one coin is fair (shows T and H with.pdfalankareyecare
 
The widespread flooding caused by Hurricane Harvey resulted in treme.pdf
The widespread flooding caused by Hurricane Harvey resulted in treme.pdfThe widespread flooding caused by Hurricane Harvey resulted in treme.pdf
The widespread flooding caused by Hurricane Harvey resulted in treme.pdfalankareyecare
 
There are 8 black balls and 8 red balls in an urn. If 5 balls are dr.pdf
There are 8 black balls and 8 red balls in an urn. If 5 balls are dr.pdfThere are 8 black balls and 8 red balls in an urn. If 5 balls are dr.pdf
There are 8 black balls and 8 red balls in an urn. If 5 balls are dr.pdfalankareyecare
 
The workers union at a certain university is quite strong. About 94.pdf
The workers union at a certain university is quite strong. About 94.pdfThe workers union at a certain university is quite strong. About 94.pdf
The workers union at a certain university is quite strong. About 94.pdfalankareyecare
 
There are 9 black balls and 8 red balls in an urn. If 5 balls are dr.pdf
There are 9 black balls and 8 red balls in an urn. If 5 balls are dr.pdfThere are 9 black balls and 8 red balls in an urn. If 5 balls are dr.pdf
There are 9 black balls and 8 red balls in an urn. If 5 balls are dr.pdfalankareyecare
 
The Wealth Management division at TD Bank Canada is spearheading a n.pdf
The Wealth Management division at TD Bank Canada is spearheading a n.pdfThe Wealth Management division at TD Bank Canada is spearheading a n.pdf
The Wealth Management division at TD Bank Canada is spearheading a n.pdfalankareyecare
 
The utility that Ann receives by consuming food F and clothing C is .pdf
The utility that Ann receives by consuming food F and clothing C is .pdfThe utility that Ann receives by consuming food F and clothing C is .pdf
The utility that Ann receives by consuming food F and clothing C is .pdfalankareyecare
 
The question is regarding 12 Angry men CQ4 Interpersonally Who.pdf
The question is regarding 12 Angry men CQ4 Interpersonally Who.pdfThe question is regarding 12 Angry men CQ4 Interpersonally Who.pdf
The question is regarding 12 Angry men CQ4 Interpersonally Who.pdfalankareyecare
 
The question What is the probability that non-anthropogenic causes .pdf
The question What is the probability that non-anthropogenic causes .pdfThe question What is the probability that non-anthropogenic causes .pdf
The question What is the probability that non-anthropogenic causes .pdfalankareyecare
 
The quality of a soil is most directly related toGroup of answer .pdf
The quality of a soil is most directly related toGroup of answer .pdfThe quality of a soil is most directly related toGroup of answer .pdf
The quality of a soil is most directly related toGroup of answer .pdfalankareyecare
 
The term efficient markets refers to the idea that _______________..pdf
The term efficient markets refers to the idea that _______________..pdfThe term efficient markets refers to the idea that _______________..pdf
The term efficient markets refers to the idea that _______________..pdfalankareyecare
 
The time spent studying by students in the week before final exams f.pdf
The time spent studying by students in the week before final exams f.pdfThe time spent studying by students in the week before final exams f.pdf
The time spent studying by students in the week before final exams f.pdfalankareyecare
 

Mehr von alankareyecare (20)

this is all the information given 2. (4 PTS) Under the 1990 Farm Bi.pdf
this is all the information given  2. (4 PTS) Under the 1990 Farm Bi.pdfthis is all the information given  2. (4 PTS) Under the 1990 Farm Bi.pdf
this is all the information given 2. (4 PTS) Under the 1990 Farm Bi.pdf
 
This exercise refers to the experiment of tossing four coins. What i.pdf
This exercise refers to the experiment of tossing four coins. What i.pdfThis exercise refers to the experiment of tossing four coins. What i.pdf
This exercise refers to the experiment of tossing four coins. What i.pdf
 
The volume of air within stiff, cartilaginous conduits of a respirat.pdf
The volume of air within stiff, cartilaginous conduits of a respirat.pdfThe volume of air within stiff, cartilaginous conduits of a respirat.pdf
The volume of air within stiff, cartilaginous conduits of a respirat.pdf
 
There are several commonalities and differences between the role and.pdf
There are several commonalities and differences between the role and.pdfThere are several commonalities and differences between the role and.pdf
There are several commonalities and differences between the role and.pdf
 
there is no figure The brain organizes touch infomation in a particu.pdf
there is no figure The brain organizes touch infomation in a particu.pdfthere is no figure The brain organizes touch infomation in a particu.pdf
there is no figure The brain organizes touch infomation in a particu.pdf
 
There has been a great deal of ground subsidence in California�s Cen.pdf
There has been a great deal of ground subsidence in California�s Cen.pdfThere has been a great deal of ground subsidence in California�s Cen.pdf
There has been a great deal of ground subsidence in California�s Cen.pdf
 
The traditional role of data architects has not changed. They are tr.pdf
The traditional role of data architects has not changed. They are tr.pdfThe traditional role of data architects has not changed. They are tr.pdf
The traditional role of data architects has not changed. They are tr.pdf
 
There are various approaches in regards to how costs are allocated a.pdf
There are various approaches in regards to how costs are allocated a.pdfThere are various approaches in regards to how costs are allocated a.pdf
There are various approaches in regards to how costs are allocated a.pdf
 
There are two coins in the bag one coin is fair (shows T and H with.pdf
There are two coins in the bag one coin is fair (shows T and H with.pdfThere are two coins in the bag one coin is fair (shows T and H with.pdf
There are two coins in the bag one coin is fair (shows T and H with.pdf
 
The widespread flooding caused by Hurricane Harvey resulted in treme.pdf
The widespread flooding caused by Hurricane Harvey resulted in treme.pdfThe widespread flooding caused by Hurricane Harvey resulted in treme.pdf
The widespread flooding caused by Hurricane Harvey resulted in treme.pdf
 
There are 8 black balls and 8 red balls in an urn. If 5 balls are dr.pdf
There are 8 black balls and 8 red balls in an urn. If 5 balls are dr.pdfThere are 8 black balls and 8 red balls in an urn. If 5 balls are dr.pdf
There are 8 black balls and 8 red balls in an urn. If 5 balls are dr.pdf
 
The workers union at a certain university is quite strong. About 94.pdf
The workers union at a certain university is quite strong. About 94.pdfThe workers union at a certain university is quite strong. About 94.pdf
The workers union at a certain university is quite strong. About 94.pdf
 
There are 9 black balls and 8 red balls in an urn. If 5 balls are dr.pdf
There are 9 black balls and 8 red balls in an urn. If 5 balls are dr.pdfThere are 9 black balls and 8 red balls in an urn. If 5 balls are dr.pdf
There are 9 black balls and 8 red balls in an urn. If 5 balls are dr.pdf
 
The Wealth Management division at TD Bank Canada is spearheading a n.pdf
The Wealth Management division at TD Bank Canada is spearheading a n.pdfThe Wealth Management division at TD Bank Canada is spearheading a n.pdf
The Wealth Management division at TD Bank Canada is spearheading a n.pdf
 
The utility that Ann receives by consuming food F and clothing C is .pdf
The utility that Ann receives by consuming food F and clothing C is .pdfThe utility that Ann receives by consuming food F and clothing C is .pdf
The utility that Ann receives by consuming food F and clothing C is .pdf
 
The question is regarding 12 Angry men CQ4 Interpersonally Who.pdf
The question is regarding 12 Angry men CQ4 Interpersonally Who.pdfThe question is regarding 12 Angry men CQ4 Interpersonally Who.pdf
The question is regarding 12 Angry men CQ4 Interpersonally Who.pdf
 
The question What is the probability that non-anthropogenic causes .pdf
The question What is the probability that non-anthropogenic causes .pdfThe question What is the probability that non-anthropogenic causes .pdf
The question What is the probability that non-anthropogenic causes .pdf
 
The quality of a soil is most directly related toGroup of answer .pdf
The quality of a soil is most directly related toGroup of answer .pdfThe quality of a soil is most directly related toGroup of answer .pdf
The quality of a soil is most directly related toGroup of answer .pdf
 
The term efficient markets refers to the idea that _______________..pdf
The term efficient markets refers to the idea that _______________..pdfThe term efficient markets refers to the idea that _______________..pdf
The term efficient markets refers to the idea that _______________..pdf
 
The time spent studying by students in the week before final exams f.pdf
The time spent studying by students in the week before final exams f.pdfThe time spent studying by students in the week before final exams f.pdf
The time spent studying by students in the week before final exams f.pdf
 

Kürzlich hochgeladen

Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 

Kürzlich hochgeladen (20)

Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 

The volume V of a cylinder is given by the formulav = 3.14r^2L, r .pdf

  • 1. The volume V of a cylinder is given by the formula v = 3.14r^2L, r = radius and L = Length. a) Using this formula write a C++ function named cylvol() that accepts a cylinder's radius and length and returns its volume. b) Create the function prototype c) The radius and length of the cylinder you will get through user's inputs The function should be called from the main function and returns a value to the main function. Test the functions by passing values. Input comments.