The area \( A \) of a triangle can be calculated using the formula:
\[ A = \frac{1}{2} \times \text{base} \times \text{height} \]
In this case, we know the area \( A = 7 \) square inches and the base = 4 inches. We can plug these values into the formula to find the height.
\[ 7 = \frac{1}{2} \times 4 \times \text{height} \]
First, simplify the equation:
\[ 7 = 2 \times \text{height} \]
Now, divide both sides by 2 to solve for the height:
\[ \text{height} = \frac{7}{2} = 3.5 \text{ inches} \]
Therefore, the height of the sandwich is 3.5 inches.