# 1) Complete the function to return the result of the conversion
def convert_distance(miles):
km = miles * 1.6 # approximately 1.6 km in 1 mile

my_trip_miles = 55

# 2) Convert my_trip_miles to kilometers by calling the function above
my_trip_km = ___

# 3) Fill in the blank to print the result of the conversion
print("The distance in kilometers is " + ___)

# 4) Calculate the round-trip in kilometers by doubling the result,
# and fill in the blank to print the result
print("The round-trip in kilometers is " + ___)

Answers

Answer 1

Answer:

See explanation

Explanation:

Replace the ____ with the expressions in bold and italics

1)          return km

 

return km returns the result of the computation

2)  = convert_distance(my_trip_miles)

convert_distance(my_trip_miles) calls the function and passes my_trip_miles to the function

3)  + str(my_trip_km)

The above statement prints the returned value

4)  +str(my_trip_km * 2)

The above statement prints the returned value multiplied by 2


Related Questions

1. P=O START: PRINT PP = P + 5 IFP
<=20 THEN GOTO START: * what is output​

Answers

Answer:

0

5

10

15

20

Explanation:

P=O should be P=0, but even with this error this is the output.

When P reaches 20 it will execute the loop once more, so 20 gets printed, before getting increased to 25, which will not be printed because then the loop ends.

importance of information
literay to the society

Answers

Explanation:

Information literacy is important for today's learners, it promotes problem solving approaches and thinking skills – asking questions and seeking answers, finding information, forming opinions, evaluateing sources, and making decisions fostering successful learners, effective contributors, and confident individuals.

Which functions do you use to complete Step 3e? Check all that apply.

Animations tab
Animation styles
Design
Lines
Motion Paths
Reordering of animations

Answers

Answer: Animations tab

Animation styles

Lines

Motion paths

Explanation: Edg2021

What may make it easy for cybercriminals to commit cybercrimes? Select 2 options.

Cybercrimes are not classified as real crimes, only as virtual crimes.

They operate from countries that do not have strict laws against cybercrime.

They are not physically present when the crime is committed.

The United States has no law enforcement that acts against them.

Law enforcement agencies lack the expertise to investigate them.

Answers

Answer: They operate from countries that do not have strict laws against cybercrime.

They are not physically present when the crime is committed.

Explanation:

edg

Answer:

They operate from countries that do not have strict laws against cybercrime.

They are not physically present when the crime is committed.

Explanation:

Create an array of doubles to contain 5 values Prompt the user to enter 5 values that will be stored in the array. These values represent hours worked. Each element represents one day of work. Create 3 c-strings: full[40], first[20], last[20] Create a function parse_name(char full[], char first[], char last[]). This function will take a full name such as "Noah Zark" and separate "Noah" into the first c-string, and "Zark" into the last c-string. Create a function void create_timecard(double hours[], char first[], char last[]). This function will create (write to) a file called "timecard.txt". The file will contain the parsed first and last name, the hours, and a total of the hours. See the final file below. First Name: Noah

Answers

Solution :

[tex]$\#$[/tex]include [tex]$<stdio.h>$[/tex]  

[tex]$\#$[/tex]include [tex]$<string.h>$[/tex]    

void parse[tex]$\_$[/tex]name([tex]$char \ full[]$[/tex], char first[tex]$[],$[/tex] char last[tex]$[])$[/tex]

{

// to_get_this_function_working_immediately, _irst

// stub_it_out_as_below._When_you_have_everything_else

// working,_come_back_and_really_parse_full_name

// this always sets first name to "Noah"

int i, j = 0;

for(i = 0; full[i] != ' '; i++)

  first[j++] = full[i];

first[j] = '\0';  

// this always sets last name to "Zark"

j = 0;

strcpy(last, full+i+1);

// replace the above calls with the actual logic to separate

// full into two distinct pieces

}

int main()

{

char full[40], first[20], last[20];

double hours[5];

// ask the user to enter full name

printf("What is your name? ");

gets(full);

// parse the full name into first and last

parse_name(full, first, last);

// load the hours

for(int i = 0; i < 5; i++)

{

   printf("Enter hours for day %d: ", i+1);

   scanf("%lf", &hours[i]);

}

// create the time card

FILE* fp = fopen("timecard.txt", "w");

fprintf(fp, "First Name: %s\n", first);

fprintf(fp, "Last Name: %s\n", last);

double sum = 0.0;

for(int i = 0; i < 5; i++)

{

   fprintf(fp, "Day %i: %.1lf\n", i+1, hours[i]);

   sum += hours[i];

}

fprintf(fp, "Total: %.1f\n", sum);    

printf("Timecard is ready. See timecard.txt\n");

return 0;

}

what does the
command do

Answers

Please specify your question.

By using your own data, search engines and other sites try to make your web experience more personalized. However, by doing this, certain information is being hidden from you. Which of the following terms is used to describe the virtual environment a person ends up in when sites choose to show them only certain, customized information?

A filter bubble

A clustered circle

A relational table

An indexed environment

Answers

I believe it is a filter bubble

Answer:

A filter bubble

Explanation:

Other Questions
True or false: Butler believes that the term queer is a healthy or powerful term to use in reference to another person? In 2020, the CEO of Crimson, Inc., entertains 9 clients at a skybox in Memorial Stadium for a single athletic event during the year. Substantive business discussions occurred at various times during the event. The box cost $11,300 per event and seats 11 people. (The cost of a regular, nonluxury box seat at Memorial ranges from $90 to $180.) Refreshments served during the event cost $820 (and were separately itemized on the bill Crimson received).Required:How much of these costs may Crimson deduct? Ms. Sacco needs to have her car repaired, but she does not want to spend more than $375 for the repairs. The mechanic says that the part needed for the repair will cost $100 and the labor will cost an additional $40 per hour. Which inequality below represents the greatest number of hours the mechanic can work without exceeding Ms. Saccos budget? *A. 140x 375B. 40 + 100x > 225C. 100 + 40x 375D. 100 + 40x > 375 The primary duty of an officer's wife at Fort Union was to (GIVING BRAINLIEST!!!!!!)Which environment has low temperatures and low humidity?A) GrasslandB) RainforestC) TundraD) Wetland 1What is the mass of 0.328 mol of CO2? In order for a rhombus to be proven using either its sides or angels, it must first be proven to be a I NEED HELP ASAP FIND THE MEASURE OF MISSING ANGLE find the volume of a plastic cube vuilding block with a side length of 12 centimeters If the measure of arc RT = 80 degrees and the measure of arc US = 40 degrees, what is the m A line passes through the points (-3,0) and (2,5). Find its equation in generalform. Which unhealthy condition30 point would most likely result from a person eating too much food for many years? In what year were more than one quarter of American workers without jobs 6. (09.04 LC)For the equation y = 6x2 9x + 22, choose the correct application of the quadratic formula. (5 points)X-6+1(6)- 4(-9)(22)2(-9)X6 + (6)- 4-9)(22)21-9)--9 +1(-99) - 4(6)(22)X2(6)X9+(-9) - 4(6)(22)2(6) NEED HELP MY GRADE DEPENDS ON THIS QUESTION!!! Write a congruence statement that describes the figures below. what do humans call their source of energy For the past several years, the high school theater department has performed a musical in their auditorium. Each year since the first, they have raised ticket prices by $0.25, however the department has also noticed a decline in the number of people attending each year. This year, they are analyzing the ticket prices, attendance, and sales to determine the ticket price that maximizes their sales. Which of the following statements are equivalent to the statement"price increased by 100%"?Choose all correct answers.(A) The price doubled(B) The price is 150% of the price before(C) The price was reduced by a quarter(D) The price became a half of what it was before(E) The price is now 1.5 of what it was before(F) The price now is 662 % of what it was before3(G) The price now is 200% of what it was before(H) The price is 75% of what it was before scrupulous" means.A eagerB defiantC negligent D thorough A ladder is standing on horizontal ground and rests against a verticalwall. The ladder is 4.5 m long and its foot is 1.6 m from the wall.Calculate how far up the wall the ladder will reach. Round youranswer to three decimal places. (Show your working)