Array Deletion at Middle Index
📖 Scenario: You have a list of daily temperatures recorded in an array. Sometimes, the middle day's temperature is incorrect and needs to be removed to keep the data accurate.
🎯 Goal: Build a program that deletes the middle element from an array of temperatures and shows the updated list.
📋 What You'll Learn
Create an integer array called
temps with exactly 7 values: 23, 25, 22, 20, 24, 26, 21Create an integer variable called
size and set it to 7Write code to delete the middle element (index 3) from the
temps array by shifting elements leftPrint the updated array elements separated by spaces
💡 Why This Matters
🌍 Real World
Deleting incorrect or unwanted data points from sensor readings or logs is common in data cleaning.
💼 Career
Understanding array manipulation is fundamental for software developers working with low-level data or embedded systems.
Progress0 / 4 steps
