Keeps track of the peak number of orders

Status
Not open for further replies.

Pink_Flower

Junior Member
Joined
Apr 15, 2020
Member Type
Student or Learner
Native Language
Persian
Home Country
Iran
Current Location
United States
I am writing a computer program and the professor asked us to implement the following structure using programming:

Stand (hot dog stand) class - holds and manages Orders
i. Use a double linked list to manage Orders
1. With next and prev links
ii. Create a Stand then add or remove Orders to the stand
1. Add(...) - add Orders
2. Remove(...) - remove Orders
iii. Keeps track of the current number of orders
iv. Keeps track of the peak number of orders


What does peak number of orders mean?
 

teechar

Moderator
Staff member
Joined
Feb 18, 2015
Member Type
English Teacher
Native Language
English
Home Country
Iraq
Current Location
Iraq
You need to ask your professor. The meaning is not clear.
It could mean the highest number of orders received/fulfilled in a day/week/month, but I'm just guessing.
 

Glizdka

Key Member
Joined
Apr 13, 2019
Member Type
Other
Native Language
Polish
Home Country
Poland
Current Location
Poland
Not a teacher. Not a computer scientist.
------


It looks like the professor wants your program to remember both the current number of orders and the highest number of orders.

Monday: 12 | Peak: 12 (Monday)
Tuesday: 15 | Peak: 15 (Tuesday)
Wednesday: 10 | Peak: 15 (Tuesday)
Thursday: 14 | Peak: 15 (Tuesday)
Friday: 17 | Peak: 17 (Friday)
Saturday: 16 | Peak: 17 (Friday)
Sunday: 11 | Peak: 17 (Friday)
 
Status
Not open for further replies.
Top