nWe define an instance variable to hold the user’s choice.
nprivate
int choice;
// the user’s most // recent choice
nThe local methods we will create are specified as follows.
n
nprivate
void displayMenuPrompt
()
n Display the menu to the user.
nprivate
void getChoice
()
n Get the user’s choice.
nprivate
void executeChoice
()
n Perform the action indicated by this.choice, and display the
results
n to the user.