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 https://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.

Topic archived. No new replies allowed.