EXAMPLE 11a: Designing Methods
 
Write a methods for each of the following tasks.

1. Print a main menu containing "Read Bags" and "Quit" and return the choice.

2.  A method   that computes the last  digit of a number. (how about first digit)
 
3.  A method that checks of the two given numbers have same parity.

4. A method that swaps two numbers !

5. A method that reads the name from standard input.