This assigment deals with a program using scala. For this you need sbt, scala and intellij in your system.
I have made two classes DoubleQueue and Square Queue in the Trait. Now DoubleQueue will enqueue the element after doubling them and SquareQueue will enqueue the element after squaring them
The dequeue method will remove the first element from the queue(having concrete definition in trait Queue).
So this is the program all about.