Methods 1


examples


Classwork

Think about input, including variable names and types; prompt the user for input.

1.  Write a method called sqube that gets a length from the user and prints the area of a square and the volume of a cube with that length

2. Write a method called circlinder that gets a radius and a height from the user and prints the area of a circle and the volume of a cylinder using that radius and height

3. Write a method called geomenu.  In this method, repeatedly show the user a menu with options 0. Quit, 1. Square and Cube, 2. Circle and Cylinder, and use your methods to do the user's choice.