Skip to content

Course work in Odesa I.I. Mechnikov National University (object-oriented programming) – 1st year of study

Notifications You must be signed in to change notification settings

contrub/buffet-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Course Project: Buffet System

Overview

This project is a course assignment for the subject "Programming (Object-Oriented Technologies and Languages)." It implements a class hierarchy system to simulate customer service in a buffet environment.

Features

  • Display of available menu items.
  • Order placement and management.
  • Dynamic object-oriented structure using inheritance and polymorphism.
  • Basic user interaction via the console.

Technologies Used

  • C++
  • Standard Template Library (STL)
  • Object-Oriented Programming (OOP) principles

How to Run

  1. Clone the repository.

  2. Create a build directory and navigate into it:

mkdir build
cd build
  1. Run CMake to generate the build files:
cmake ..
  1. Build the project:
cmake --build .
  1. Prepare the menu CSV file with the following format before running the program.
Click to expand CSV file format description

Each line in the CSV file should have 5 comma-separated fields: DishType,Title,Price,Weight,AdditionalField

  • DishType: one of Cake, Coffee, Cola, Pizza, Salad, Tea
  • Title: the dish name (string)
  • Price: price as a decimal number
  • Weight: weight as a decimal number
  • AdditionalField:
    • For Cake and Tea: a descriptive string (e.g., flavor, type)
    • For Coffee, Cola, Pizza, Salad: a numeric value (e.g., caffeine amount, calories)

Example:

Cake,Chocolate Cake,4.5,150,Chocolate
Coffee,Espresso,2.0,50,80
Cola,Coca-Cola,1.5,330,120
Pizza,Margherita,7.0,300,250
Salad,Greek Salad,5.0,200,150
Tea,Green Tea,1.8,250,Jasmine
  1. Run the executable:
./buffet

About

Course work in Odesa I.I. Mechnikov National University (object-oriented programming) – 1st year of study

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published