Assume that a spacecraft can travel at the speed of 100,000 km, how many days will it take to get from Earth to Mars?

Need more data.

100,000 km per what time unit?

Sometimes Earth is close to Mars, when it's making a pass, and other times it's far away, at the other side of the track. The minimum distance from the Earth to Mars is about 54.6 million kilometers. The farthest apart they can be is about 401 million km. The average distance is about 225 million km.

To calculate the number of days it would take a spacecraft to travel from Earth to Mars at a given speed, we need to know the distance between the two planets and the units in which the speed is provided. The average distance between Earth and Mars is approximately 225 million km.

Let's assume that the speed of 100,000 km you mentioned is per hour.

To find the number of hours required, we divide the distance by the speed:
225,000,000 km / 100,000 km/h = 2,250 hours

Since there are 24 hours in a day, we can convert the hours into days:
2,250 hours / 24 hours/day = 93.75 days

Therefore, it would take approximately 93.75 days to travel from Earth to Mars at a speed of 100,000 km/h.

Keep in mind that this calculation assumes a constant speed and a direct route, not accounting for factors such as acceleration, deceleration, orbital mechanics, and the varying distance between Earth and Mars due to their respective orbits around the Sun. Real interplanetary travel times may differ significantly.