695 B
695 B
Hints
1. Determine how long it takes to mix a juice
- Julia has no
switchstatement, in contrast to many other languages. - The
if…elsefif…elsesyntax was covered in the Conditionals concept.
2. Replenish the lime wedge supply
- A
whileloop can run until you have enough lime wedges. - The
popfirst!()function was covered in the Vectors concept.
3. List the times to mix each order in the queue
- Looping over a vector is easy with
for…in. - Building a new vector could use
push!(), which was covered in the Vectors concept. - Later in the syllabus we will explore various other ways to do this in Julia.
4. Finish up the shift
- See task 2.