First, we will assume that this is on flat ground (no hills or earth curvature) and there is no drag.
we know its x position is given by
x(t) = vx*t
where vx is initial velocity in the x-direction (caused by Big Bertha firing). Because we're not considering the force of drag, our x(t) has no forces acting on it, causing no acceleration. vx is found by considering the velocity from the cannon and the angle of its fire
vx = v*Cos(θ) = 2.35*Cos(41.7º) km/s
so our final x(t) equation is given by
***x(t) = (2.35*Cos(41.7º) km/s)*t *** (note this is in km)
once we know the time it crashes, we can plug in that into x(tcrash) to find the total distance traversed.
Our y-position is given by
y(t) = vy*t -g*t2/2 = (2.35*Sin(41.7º) km/s)*t - 9.8m/s2*t2/2
where vy is the initial velocity in the y-direction (Sin instead of Cos). Note that the left part of the equation is in km while the right part is in meters. So lets change our equation slightly.
y(t) = (2.35*Sin(41.7º) km/s)*t - .0098km/s2*t2/2
To find tcrash, we must find the times when y(t) = 0.
y(tcrash) = (2.35*Sin(41.7º) km/s)*tcrash - .0098km/s2*t2crash/2 = 0
--> tcrash[(2.35*Sin(41.7º) km/s) - .0098km/s2*tcrash/2] = 0
--> 2.35*Sin(41.7º) km/s - .0098km/s2*tcrash/2 = 0
==> tcrash =2*( 2.35*Sin(41.7º) km/s)/(.0098km/s2)
This gives you the time-of-flight (or the time the shell impacts) in seconds. Plug that answer into our ***x(t)*** equation to find the total horizontal distance traversed!