Skip to Content
Course content

Session 2.pptx (Lecture Slide)


Re​staurant Food Order System


“Welcome to our Restaurant — where your inputs are the ingredients, code is the chef, and your final bill is the dish served hot and fresh!”  

💡 Introduction

This activity introduces students to basic programming concepts by simulating a simple restaurant food order system using Python. The program displays a menu, takes user input to select food items, calculates the total bill, and prints a receipt.


📘 Pre-requisite Knowledge

  • Basic knowledge of Python syntax
  • Understanding of:
    • Variables.
    • Data types (strings, integers).
    • input() and print() functions.
    • Conditional statements (if, else).
    • Dictionaries (for menu and prices).
    • Loops (optional, if used for multiple items).


🎯Learning Objectives

  • How to implement basic logic and conditions.
  • How to perform simple arithmetic operations.
  • How to structure a real-world application in Python.


🛠 Tools & Materials Required

  • Hardware: Desktop/Laptop with internet access.
  • Software: Any Python IDE or platform (e.g., Python IDLE or Jupyter Notebook).

Instructions

Step 1. Open Jupyter Notebook.

Step 2. Select “New” written at the top right corner of the Jupyter Notebook interface and choose Python 3 (ipykernel).


Activity - Write a python program of Restaurant food Order System

This activity will combine Conditionals, Loops, and Functions in a fun and practical program.

 Step 1.   Crea​ting the Function.

 Step2.   Calling the Function.

Try it yourself

Online Simulator: https://www.w3schools.com/python/trypython.asp?filename=demo_compiler






🧩 Expected Outcome



🔍 Observation

  • Whether the program correctly displays the menu.
  • Proper handling of user input (e.g., item name not in menu).
  • Correct calculation of the total amount.
  • Whether the output/receipt format is clear and user-friendly.
  • If the code runs without errors.


 
0 0

There are no comments for now.

to be the first to leave a comment.