Question: code in C. please follow example. Two spacecraft are traveling at different speeds from Earth to Mars. While spacecraft A doubles its speed every day,
Two spacecraft are traveling at different speeds from Earth to Mars. While spacecraft A doubles its speed every day, spacecraft B triples its speed in the same period. Given their initial speeds, your task is to determine how many days spacecraft B will take to travel faster than spacecraft A. - If the initial speed of spacecraft A is 7 , it will be 14 after 1 day, 28 after 2 days, and so on. - If the initial speed of spacecraft B is 4 , it will be 12 after 1 day, 36 after 2 days, and so on. - If the initial speed of spacecraft A and B are 7 and 4 , respectively, B will be faster than A after 2 days, as the speed of A will be 28 and the speed of B will be 36. Example \#1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
