Restaurant Dining System Donald Kaulukukui. Introduction ► Team manager = ME ► Secretary = ME ► President = ME ► R & D = ME ► Tester = ME.

Slides:



Advertisements
Similar presentations
Linked List 1. Introduction to Linked List 2. Node Class 3. Linked List 4. The Bag Class with Linked List.
Advertisements

Engineering Problem Solving With C++ An Object Based Approach Additional Topics Chapter 10 Programming with Classes.
Operator overloading redefine the operations of operators
CSCE 2100: Computing Foundations 1 Intro to Advanced C++
1 CSC241: Object Oriented Programming Lecture No 21.
Introduction to Programming Lecture 39. Copy Constructor.
Queues. Queue Definition Ordered list with property: All insertions take place at one end (tail) All insertions take place at one end (tail) All deletions.
C++ Programming Languages
Kanban Task Manager for Outlook ‒ Introduction
1 CS 201 Introduction to c++ (2) Debzani Deb. 2 Classes (1) A class definition – in a header file :.h file A class implementation – in a.cc,.cpp file.
Class template Describing a generic class Instantiating classes that are type-specific version of this generic class Also are called parameterized types.
. Plab – Tirgul 8 I/O streams Example: string class.
Class Array template The array class defined in last week manipulate array of integer If we need to define class of array for float, double data type,
Restaurant Dining System Donald Kaulukukui. Introduction ► Team manager = ME ► Secretary = ME ► President = ME ► R & D = ME ► Tester = ME.
計算機概論實習 Last Practice (P4) members StudentTeacher private: char name[80]; protected: int number; public: void setName(char *); void getName(char*);
計算機概論實習 Class Sample: RECT Class weight length class RECT{ private: int weight, length; public: RECT(); int surface(); int perimeter();
Introduction to Object- Oriented Programming Prof. Shie-Jue Lee Dept. of Electrical Engineering National Sun Yat-sen University.
Operator Overloading 1. Introduction Let’s define a class for Complex numbers: class Complex { private: double real, image; public: Complex () : real(0.0),
More Classes in C++ Bryce Boe 2012/08/20 CS32, Summer 2012 B.
Introduction to C++. Overview C++? What are references Object orientation Classes Access specifiers Constructor/destructor Interface-implementation separation.
1 Chapter 3 Lists, Stacks, and Queues Abstract Data Types, Vectors Sections 3.1, 3.2, 3.3, 3.4 Abstract Data Types (ADT) Iterators Implementation of Vector.
Class Byteline Ustyugov Dmitry MDSP November, 2009.
Problem Session Working in pairs of two, solve the following problem...
Matrices Introducing Inheritance. Consider A matrix is a grid in which numbers can be stored. Algorithms for problems in scientific computing frequently.
Operator Overloading Mark Hennessy Dept. Computer Science NUI Maynooth C++ Workshop 18 th – 22 nd September 2006.
Overloading Operator MySting Example. Operator Overloading 1+2 Matrix M 1 + M 2 Using traditional operators with user-defined objects More convenient.
Concordia University Department of Computer Science and Software Engineering Click to edit Master title style ADVANCED PROGRAM DESIGN WITH C++ Part 9:
CSC1401 Classes - 2. Learning Goals Computing concepts Adding a method To show the pictures in the slide show Creating accessors and modifiers That protect.
Object Oriented Programming (OOP) Lecture No. 10.
Chapter 6 Introduction to Defining Classes. Objectives: Design and implement a simple class from user requirements. Organize a program in terms of a view.
Chapter 4 Introduction to Classes, Objects, Methods and strings
Java - Classes JPatterson. What is a class? public class _Alpha { public static void main(String [] args) { } You have been using classes all year – you.
Student Book Input / Output in C++
Class Miscellanea Details About Classes. Review We’ve seen that a class has two sections: class Temperature { public: //... public members private: //...
Chapter 11 Friends and Overloaded Operators. Introduction to function equal // Date.h #ifndef _DATE_H_ #define _DATE_H_ class CDate { public: CDate();
Spring 2008 Mark Fontenot CSE Honors Principles of Computer Science I Note Set 5 1.
Lecture 20 Stacks and Queues. Stacks, Queues and Priority Queues Stacks – first-in-last-out structure – used for function evaluation (run-time stack)
Introduction to Programming Lecture 40. Class Class is a user defined data type.
C String, Proper Type, and String Objects Andy Wang COP 4530: Data Structures, Algorithms, and Generic Programming.
1 Chapter 3 Lists, Stacks, and Queues Reading: Sections 3.1, 3.2, 3.3, 3.4 Abstract Data Types (ADT) Iterators Implementation of Vector.
C++ Features Function Overloading Default Functions arguments Thinking about objects – relationship to classes Types of member functions Constructor and.
Class Operations Creating New Types. Review Last time, we began building, a class to allow us to model temperatures: Last time, we began building Temperature,
CMSC 202 Computer Science II for Majors. CMSC 202UMBC Topics Templates Linked Lists.
Introduction Every program takes some data as input and generate processed data as out put . It is important to know how to provide the input data and.
Yan Shi CS/SE 2630 Lecture Notes
Strings: C-strings vs. Strings as Objects
Objects as a programming concept
CS1220 Midterm Review.
Introduction to Programming
Overloading Operator MySting Example
Introducing Inheritance
A First C++ Class – a Circle
Abstract Data Types Polynomials CSCI 240
CISC181 Introduction to Computer Science Dr
Jim Fawcett Copyright ©
CISC/CMPE320 - Prof. McLeod
Pointers and Linked Lists
Overloading the << operator
Strings: C-strings vs. Strings as Objects
Advanced Program Design with C++
תכנות מכוון עצמים ו- C++ יחידה 06 העמסת אופרטורים
[Chapter 4; Chapter 6, pp ] CSC 143 Linked Lists [Chapter 4; Chapter 6, pp ]
Class Everything if Java is in a class. The class has a constructor that creates the object. public class ClassName private Field data (instance variables)
COP 3330 Object-oriented Programming in C++
Lists CMSC 202, Version 4/02.
Lists CMSC 202, Version 4/02.
Overloading the << operator
Operator overloading Friend Function This Operator Inline Function
Jim Fawcett Copyright ©
solve the following problem...
Presentation transcript:

Restaurant Dining System Donald Kaulukukui

Introduction ► Team manager = ME ► Secretary = ME ► President = ME ► R & D = ME ► Tester = ME

Overview ► Create a computer system for a restaurant that will handle checks, tables, servers, and item information. ► Allow easy manipulation of table data and allow for ease of customization.

General Approach ► My main approach will be to design the program using C++ object oriented design. ► Data structures (lists, classes, etc.)to handle data modification and access. ► Implement a GUI for use on touch screen terminals

General Program Structure

Table.h ► class Table { ► public: ► // constructors ► Table(); ► Table(char *name,int table); ► ~Table(); ► // accessors ► char* getname(); ► float gettotal() const; ► int getnumber() const; ► int getchecknumber()const; ► //mutators ► void Deleteitem(int listpos,int tablepos=0); //deletes an item from pos in sent list (need privlages) ► void Addtempitem(Item item); //adds to temp list ► void Deletetempitem(int pos=0); //deletes from temp list ► void Sendtemplist(); //adds temp list onto end of pos list ► void CloseTable(); //calls destructor ► void setname(char *); ► void setnumber(int); ► friend ostream& operator<<(ostream& s,const Table &table); ► friend istream& operator>>(istream& s,Table &table); ► List temp; ► private: ► // private helper functions ► //private data fields ► char custname[MAX_NAME]; ► int checknumber; ► int tablenumber; ► float checktotal; //total of all posotion numbers

The Table

Remaining Tasks ► Server Class ► Main Program ► Implement GUI ► Add Features

Future Problems ► GUI  No Experience  Difficulty? ► Program Structure  Changing entire structure ► Advanced Features  Not entirely sure what will be added later

Progress Chart