1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Citrus2011 [14]
3 years ago
7

LAB: Step counter

Computers and Technology
1 answer:
AlekseyPX3 years ago
7 0

The program is an illustration of functions.

Functions are group of code blocks that perform as one

The feet_to_steps() function in python where comments are used to explain each line is as follows:

#This defines the feet_to_steps() function

def feet_to_steps(feet):

   #This calculates the number of steps

   steps = feet/2.5

   #This returns the number of steps

   return "Steps: "+str(int(steps))

#The main begins here

#This gets input for the number of feet

feet = float(input("Feet: "))

#This prints the number of steps from the feet_to_steps function

print(feet_to_steps(feet))

Read more about similar programs at:

brainly.com/question/25223400

You might be interested in
people illegally download music over the internet although it's free it it is still illegal what do you choose to do? why
kodGreya [7K]

Answer:

its A i just did that

Explanation:

4 0
3 years ago
What are preconceptions?
anastassius [24]
An idea or statement  that you had previously or earlier.

6 0
4 years ago
Read 2 more answers
When both gears are the same size what will they produce
djverab [1.8K]

They produce a 1:1 ratio.  The input power is equal to the output power.

7 0
4 years ago
Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integer
Gre4nikov [31]

Answer:

The program in Python is as follows:

num = int(input())

numList = []

for i in range(num+1):

   numInput = int(input())

   numList.append(numInput)

for i in range(len(numList)-1):

   if numList[i] <= numList[-1]:

       print(numList[i],end=" ")

Explanation:

This gets input for the number of integers

num = int(input())

This initializes an empty list

numList = []

This iterates through the number of integers and gets input for each

for i in range(num+1):

   numInput = int(input())

The inputs including the threshold are appended to the list

   numList.append(numInput)

This iterates through the list

for i in range(len(numList)-1):

All inputs less than or equal to the threshold are printed

   if numList[i] <= numList[-1]:

       print(numList[i],end=" ")

7 0
3 years ago
What can be used to visually represent information similar to a diagram
Assoli18 [71]
A vin diagram should help you lay it out

5 0
4 years ago
Other questions:
  • Hardware- The ______________ equipment that makes up the computer.
    6·1 answer
  • What online resource name does a major University end with
    7·2 answers
  • WILL GIVE BRAINLIEST!!!!!!!!
    6·1 answer
  • Alisa Miller claims that today's college graduates:
    7·1 answer
  • What is the advantage of utilizing trees as a data structure? Describe a scenario where you may use either a linear data structu
    9·1 answer
  • Your program will search for prime numbers. You will first ask the user for the range of values to search, and use for loops to
    6·1 answer
  • Lost passwords set for documents in Microsoft® Word® documents can be retrieved in the backstage view. True False
    9·2 answers
  • Write a public static method named evens that takes in 1 argument int a, and returns a String containing all positive even numbe
    8·1 answer
  • How was the Big Ben project similar to the investigation you conducted in class to determine if the table was vibrating? How is
    7·1 answer
  • Backup software creates backups and prevents you from losing all your data, so would backup software be considered an applicatio
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!