Actions Problems

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14

Defining an Action

Define an action named PrintMenu in the existing program. Then add the output statements to this action so that the program outputs the following dinner menu.

Dinner Menu
Chicken Pot Pie.....$15.95
Chicken Parmesan.....$17.50
Vegetarian Chili.....$11.00
Hamburger and Fries.....$18.95
Chef Salad.....$13.50

Coding:

Blocks

PreviousNext