Course Hero Logo

Learning Journal Unit 2.docx - Learning Journal Unit 2 Part...

This preview shows page 1 - 2 out of 3 pages.

Learning Journal Unit 2Part 1The volume of a sphere is 4/3πr3, where π has the value of "pi" given in Section2.1 of your textbook. Write a function called print volume (r) that takes anargument for the radius of the sphere, and prints the volume of the sphere.Call your print_volume function three times with different values for radius.Include all of the following in your Learning Journal:The code for your print_volume function.The inputs and outputs to three calls of your print_volume.a)Inputs:

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 3 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Winter
Professor
NoProfessor
Tags
print volume

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture