First lab. Hand in all scripts for each part by 2:40, Thursday, 2/5. 1. Type in the program in Fig. 1.9 (attached). Compile, link, and run it. You should be able to do this before you leave lab. /* Figure 1.9 Miles-to-Kilometers Conversion Program * Converts distance in miles to kilometers. */ #include /* printf, scanf definitions */ #define KMS_PER_MILE 1.609 /* conversion constant */ int main(void) { double miles, /* input - distance in miles. */ kms; /* output - distance in kilometers */ /* Get the distance in miles. */ printf("Enter the distance in miles> "); scanf("%lf", &miles); /* Convert the distance to kilometers. */ kms = KMS_PER_MILE * miles; /* Display the distance in kilometers. */ printf("That equals %f kilometers.\n", kms); return (0); } /* Sample Run Enter the distance in miles> 10.00 That equals 16.090000 kilometers. */ 2. Due before lab next week: Modify the program so that it also reads in the car's mileage (miles per gallon) and cost of a gallon of gasoline, and displays the number of gallons of gasoline used and the cost of the trip. Compile, link, and run. You now have 3 input data items to read: the distance of the trip, the cost per gallon of gasoline (for example, 1.09), and the mileage your car gets (for example, 15.5 would be 15.5 miles per gallon). Once you have read in your input data, you can begin to do the calculations. First calculate the number of gallons needed for the trip. You can get this by dividing trip miles by your car's mileage. Next, calculate the total cost of gas. Display these results on the screen.