Arrays and Buffers
Store, process and track groups of values
Read caller-owned arrays, capture and summarise readings, scale a sensor bank, then track parts with a queue, a stack, a rolling average and a shift register.
- 0
Read a Storage Slot
EXERCISEDifficultyeasyStatus—unknown - 1
// Clears old measurements from an array and resets the recorded reading count to zero.
Reset the Sample Buffer
EXERCISEDifficultyeasyStatus—unknown - 2
// Captures eight live readings and holds the snapshot until the next request.
Capture Machine Readings
EXERCISEDifficultyeasyStatus—unknown - 3
// Reports the average of the lowest three and of the highest three among eight readings.
Measure Reading Extremes
EXERCISEDifficultymediumStatus—unknown - 4
// Reports the average and spread of the valid readings among eight.
Measure Reading Spread
EXERCISEDifficultymediumStatus—unknown - 5
// Converts eight raw sensor readings into engineering units on request.
Scale a Sensor Bank
EXERCISEDifficultymediumStatus—unknown - 6
// Stores a part in the first empty carrier slot and reports whether it was accepted.
Allocate a Carrier Slot
EXERCISEDifficultymediumStatus—unknown - 7
// Queues up to four part IDs and releases them in arrival order.
Queue Parts for Processing
EXERCISEDifficultymediumStatus—unknown - 8
// Stores up to four tray IDs and removes the most recently added tray first.
Manage a Tray Stack
EXERCISEDifficultymediumStatus—unknown - 9
// Averages the latest eight accepted measurements, using only received samples during warm-up.
Average Recent Measurements
EXERCISEDifficultymediumStatus—unknown - 10
// Tracks which positions of an indexing conveyor hold a part as it advances and reverses.
Track an Indexing Conveyor
EXERCISEDifficultyhardStatus—unknown - 11
// Captures eight readings and holds their average, spread, extremes and first out-of-limit position.
Produce a Readings Report
EXERCISEDifficultyhardStatus—unknown - End
// Reads a part ID from a selected storage slot and reports an invalid selection.