Answer:
To save the course object instances in an array, use;
Course[] courses = new Course[7];
courses[0] = new Course("IT 145");
courses[1] = new Course("IT 200");
courses[2] = new Course("IT 201");
courses[3] = new Course("IT 270");
courses[4] = new Course("IT 315");
courses[5] = new Course("IT 328");
courses[6] = new Course("IT 330");
Explanation:
The java statement above assigns an array of size 7 with the course class constructor, then order courses are assigned to the respective indexes of the new array.
Together We Can Create Digital Systems That Provide Scale, Speed & Enable GrowthCohesive Digital Strategy · Secure IT Infrastructure · Secure Digital Foundation · New Digital EconomyTypes: Digital Business, Digital Operations, Digital Systems, Digital Technology<span>Digital Systems & TechDigital OperationsDigital Business<span>Latest Thinking</span></span>
Answer:
The complete program is as follows:
def convert_distance(miles):
km = miles * 1.6 # approximately 1.6 km in 1 mile
return km
my_trip_miles = 55
# 2) Convert my_trip_miles to kilometers by calling the function above
my_trip_km =convert_distance(my_trip_miles) #3) Fill in the blank to print the result of the conversion
# 4) Calculate the round-trip in kilometers by doubling the result,
print("The distance in kilometers is " +str(my_trip_km))
# and fill in the blank to print the result
print("The round-trip in kilometers is " + str(my_trip_km * 2))
Explanation:
<em>The program is self-explanatory because I used the same comments in the original question.</em>
What are the answer choices?