DataÃ?â??Ã? Structures Lab
SimpleÃ?â??Ã? FixedÃ?â??Ã? SizeÃ?â??Ã? Queues BuildÃ?â??Ã? bothÃ?â??Ã? aÃ?â??Ã? PipelineÃ?â??Ã? andÃ?â??Ã? aÃ?â??Ã? CircularÃ?â??Ã? QueueÃ?â??Ã? structureÃ?â??Ã? ofÃ?â??Ã? fixedÃ?â??Ã? lengthÃ?â??Ã? sizeÃ?â??Ã? ofÃ?â??Ã? 10Ã?â??Ã? slots.Ã?â??Ã? DataÃ?â??Ã? StructureÃ?â??Ã? andÃ?â??Ã? methodsÃ?â??Ã? forÃ?â??Ã? Queue: Ã?¢ââ??¬Ã?¢ AÃ?â??Ã? ConstructorÃ?â??Ã? toÃ?â??Ã? createÃ?â??Ã? andÃ?â??Ã? initializeÃ?â??Ã? theÃ?â??Ã? NODELEMENTÃ?â??Ã? entriesÃ?â??Ã? ofÃ?â??Ã? theÃ?â??Ã? Queue.Ã?â??Ã? Ã?¢ââ??¬Ã?¢ MethodÃ?â??Ã? toÃ?â??Ã? INSERTÃ?â??Ã? anÃ?â??Ã? elementÃ?â??Ã? atÃ?â??Ã? theÃ?â??Ã? backÃ?â??Ã? ofÃ?â??Ã? theÃ?â??Ã? queue. Ã?¢ââ??¬Ã?¢ MethodÃ?â??Ã? toÃ?â??Ã? REMOVEÃ?â??Ã? anÃ?â??Ã? elementÃ?â??Ã? atÃ?â??Ã? theÃ?â??Ã? frontÃ?â??Ã? ofÃ?â??Ã? theÃ?â??Ã? queue. Ã?¢ââ??¬Ã?¢ TestÃ?â??Ã? forÃ?â??Ã? Ã?â??Ã? EMPTYÃ?â??Ã? Ã?â??Ã? andÃ?â??Ã? Ã?â??Ã? FULLÃ?â??Ã? conditions, Ã?¢ââ??¬Ã?¢ ShowÃ?â??Ã? theÃ?â??Ã? COUNTÃ?â??Ã? ofÃ?â??Ã? theÃ?â??Ã? currentÃ?â??Ã? elementsÃ?â??Ã? inÃ?â??Ã? theÃ?â??Ã? queueÃ?â??Ã? (theÃ?â??Ã? currentÃ?â??Ã? size). Ã?¢ââ??¬Ã?¢ ShowÃ?â??Ã? theÃ?â??Ã? TAILÃ?â??Ã? elementÃ?â??Ã? indexÃ?â??Ã? andÃ?â??Ã? contentsÃ?â??Ã? atÃ?â??Ã? theÃ?â??Ã? tail. Ã?¢ââ??¬Ã?¢ ShowÃ?â??Ã? theÃ?â??Ã? HEADÃ?â??Ã? elementÃ?â??Ã? indexÃ?â??Ã? andÃ?â??Ã? contentsÃ?â??Ã? atÃ?â??Ã? theÃ?â??Ã? head. Ã?¢ââ??¬Ã?¢ CheckÃ?â??Ã? forÃ?â??Ã? existenceÃ?â??Ã? ofÃ?â??Ã? aÃ?â??Ã? givenÃ?â??Ã? informationÃ?â??Ã? elementÃ?â??Ã? inÃ?â??Ã? queue. Ã?¢ââ??¬Ã?¢ ShowÃ?â??Ã? allÃ?â??Ã? queueÃ?â??Ã? slotsÃ?â??Ã? (indices)Ã?â??Ã? andÃ?â??Ã? theirÃ?â??Ã? contents. TestingÃ?â??Ã? viaÃ?â??Ã? theÃ?â??Ã? MainÃ?â??Ã? userÃ?â??Ã? interface: WriteÃ?â??Ã? aÃ?â??Ã? programÃ?â??Ã? thatÃ?â??Ã? testsÃ?â??Ã? eachÃ?â??Ã? ofÃ?â??Ã? theÃ?â??Ã? methodsÃ?â??Ã? usedÃ?â??Ã? toÃ?â??Ã? manipulateÃ?â??Ã? theÃ?â??Ã? dataÃ?â??Ã? structure. UseÃ?â??Ã? aÃ?â??Ã? loopÃ?â??Ã? duringÃ?â??Ã? dataÃ?â??Ã? input. WhenÃ?â??Ã? displayingÃ?â??Ã? theÃ?â??Ã? fullÃ?â??Ã? structureÃ?â??Ã? useÃ?â??Ã? aÃ?â??Ã? loopÃ?â??Ã? thatÃ?â??Ã? showsÃ?â??Ã? indexÃ?â??Ã? andÃ?â??Ã? itsÃ?â??Ã? content,Ã?â??Ã? oneÃ?â??Ã? nodeÃ?â??Ã? atÃ?â??Ã? aÃ?â??Ã? time. YourÃ?â??Ã? programÃ?â??Ã? shouldÃ?â??Ã? employÃ?â??Ã? aÃ?â??Ã? menuÃ?â??Ã? thatÃ?â??Ã? repeatedlyÃ?â??Ã? promptsÃ?â??Ã? theÃ?â??Ã? userÃ?â??Ã? toÃ?â??Ã? performÃ?â??Ã? theÃ?â??Ã? aboveÃ?â??Ã? functions.Ã?â??Ã? Ã?â??Ã? DemonstrateÃ?â??Ã? thatÃ?â??Ã? itÃ?â??Ã? worksÃ?â??Ã? forÃ?â??Ã? theÃ?â??Ã? structureÃ?¢ââ??‰â??¢sÃ?â??Ã? Ã?¢ââ??¬Ã?â??boundaryÃ?â??Ã? conditionsÃ?¢ââ??¬Ã?Â?. ShowÃ?â??Ã? allÃ?â??Ã? inputs,Ã?â??Ã? outputs,Ã?â??Ã? explanationÃ?â??Ã? ofÃ?â??Ã? returnÃ?â??Ã? codes,Ã?â??Ã? andÃ?â??Ã? anyÃ?â??Ã? informationalÃ?â??Ã? messages. OutputÃ?â??Ã? Example: Index:Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? TAILÃ?â??Ã?ÂÃ?â??Ã?Â>Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? 7Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? 6Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? 5Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? 4Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? 3Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? 2Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? 1Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? Ã?â??Ã? 0Ã?â??Ã? Ã?â??Ã? <Ã?â??Ã?ÂÃ?â??Ã?ÂHEAD Content:Ã?â??Ã? TAILÃ?â??Ã?ÂÃ?â??Ã?Â>Ã?â??Ã? Ã?â??Ã? 890Ã?â??Ã? Ã?â??Ã? 789Ã?â??Ã? Ã?â??Ã? 678Ã?â??Ã? Ã?â??Ã? 567Ã?â??Ã? Ã?â??Ã? 456Ã?â??Ã? Ã?â??Ã? 345Ã?â??Ã? Ã?â??Ã? 234Ã?â??Ã? Ã?â??Ã? 123Ã?â??Ã? Ã?â??Ã? <Ã?â??Ã?ÂÃ?â??Ã?ÂHEAD