Difficulty understanding how program works...structures?
<p>I am new to programming. I have to write a program, using a structure named distanceType which consists of three integers: feet, yards, and miles. A user can either enter two distances and the program will add them together, or a user can enter a distance and time and the program will calculate the rate. My instructor gave us the functions to use, but I'm stuck on how to start. Should my display message ask the user to enter any two values and then I can use if statements to break down the problem? Or is there a better way? </p>

<p>Also, if a user enters two distances, which are integer values, can I automatically read them into the structure? My professor gave us two functions that we are to use, one which converts yards into a variable of type distanceType and one that converts feet into a variable of type distanceType. I am confused because I am not sure if I need to convert the entered values using these functions, because if this is the case, then I would need one that converts miles as well, right (which he did not state to include)?</p>

<p>Any clarification is appreciated. I have not started so I can't post any code, my problem is understanding how the program will work. </p>

<p>Thanks. </p>
