Listing 6 Sample output of menu.c in Listing 1

Meal Selection:

  1) Breakfast
  2) Lunch
  3) Dinner
  4) Snack
  Q) to quit

Enter MENU Desired: 1
You have selected the Breakfast menu.
Items from this menu are available
from 6:00 AM to 10:30 AM.

Offerings available are:
   Bacon & Eggs
   Toast
   Coffee

----------------------------------------
Meal Selection:

  1) Breakfast
  2) Lunch
  3) Dinner
  4) Snack
  Q) to quit

Enter MENU Desired: 2
You have selected the Lunch menu.
Items from this menu are available
after 10:30 AM until 2:00 PM.

Offerings available are:
   Hot Dogs with Chile
   French Fries
   Choice of Soft Drink or Ice Tea

----------------------------------------
Meal Selection:

  1) Breakfast
  2) Lunch
  3) Dinner
  4) Snack
  Q) to quit

Enter MENU Desired: 3
You have selected the Dinner menu.
Items from this menu are available
from 4:30 PM until 9:00 PM.

Offerings available are:
   Roast Beef, Mash Potatos and Gravy
   Green Beans, Carrots, or Squash
   Hot Tea, Ice Tea or Coffee

----------------------------------------
Meal Selection:

  1) Breakfast
  2) Lunch
  3) Dinner
  4) Snack
  Q) to quit

Enter MENU Desired: 4
You have selected the Snack menu.
Items from this menu are available
anytime between 2:00 PM and 9:00 PM.

Offerings available are:
   Ginger Snap Cookies
   Buttered Pop Corn
   Soft Drinks

----------------------------------------
Meal Selection:

  1) Breakfast
  2) Lunch
  3) Dinner
  4) Snack
  Q) to quit

Enter MENU Desired: Q
MENU PROGRAM COMPLETE