Notice that for the first altered function we have that:
![x^3=(x-7+7)^3=f(x-7)](https://img.qammunity.org/2023/formulas/mathematics/high-school/hzgedi5vggjcv5lfnctij8c9ed4dj44qoy.png)
Therefore the +7 would directly affect the x-values, so the graph would shift horizontally.
For the next function we have that:
![x^3=x^3+7-7=f(x)-7](https://img.qammunity.org/2023/formulas/mathematics/high-school/zo75bnihw9m32kcdf4t1oq3dtht1mv9qby.png)
Therefore the +7 would directly affect the y-values, so the graph would shift vertically.