coffee order program

hello. i need some help.
program is this.

----------------------
this is coffee order program.(finish:Q/q)
*order espresso >> latte
*add something(milk) >> milk
*finish >> prepare latte
*order espresso >> ice americano
*add something(ice) >> ice
*finish >> prepare ice americano
*order espresso >> americano
*add something(ice) >>
*finish >> prepare americano
*order espresso >> moca
*add something(choco) >> choco
*finish >> prepare moca
order coffee >> Q
---------------------------------------------
this program is what i want to make.
must use 'class' can you help me?
1
2
3
4
5
6
7
8
9
10
11
IF interest for learning equals none then
  GO TO http://www.assignmentexpert.com/blog/do-my-c-homework/
ELSE Begin 
  Read textbook or course material
  Make a plan to solve the problem
  Write some code
  if code is not working begin
    read http://www.catb.org/esr/faqs/smart-questions.html
    post your question and code here
  end
END

I am sure you are familiar with the concept of class, and the use of getters and setters. I think you can use an array to build a queue (a data structure; research about it). If you use queue, it is like a program that you insert something, and then if you insert again, your order will go after the previous order like this:

you order coffee, so we store coffee at 1:

1. coffee

Then someone orders lemon juice,
1. coffee
2. lemon juice

Also, if you remove something then it removes the first one, then next, and next ... .

Another example of queue is like a bank.

Think how you can use this feature to create your program. Write your steps and then start coding.

Registered users can post here. Sign in or register to post.
  • 1007451581 2018-02-22
  • 8908121580 2018-02-22
  • 141161579 2018-02-22
  • 9421578 2018-02-22
  • 2826901577 2018-02-22
  • 3647361576 2018-02-22
  • 5717551575 2018-02-22
  • 523811574 2018-02-22
  • 6439871573 2018-02-22
  • 8109431572 2018-02-22
  • 8757321571 2018-02-22
  • 5265111570 2018-02-22
  • 3351351569 2018-02-22
  • 5109361568 2018-02-22
  • 4455391567 2018-02-22
  • 9091121566 2018-02-22
  • 24791565 2018-02-22
  • 2486841564 2018-02-21
  • 9847231563 2018-02-21
  • 9264681562 2018-02-21