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
Goryan [66]
3 years ago
11

Write a function named "higher_lower" that takes an int as a parameter and returns "higher" if 14 is greater than the input and

"lower" if 14 is less than the input, and "correct" if 14 is equal to the input.
Computers and Technology
1 answer:
Butoxors [25]3 years ago
4 0

Answer:

Following are the program in python language for the above question:

Explanation:

Program :

def higher_lower(value): #function definition.

   if(value<14): #if condition for 14 is greator than the input.

      return "higher"

   elif(value==14): #else if condition for 14 is equal to the input.

       return "correct"

   else:# else condition.

       return "lower"  

return_value = higher_lower(int(input("Enter the integer value: "))) #take the value from the user and call the function.

print(return_value)# print the returned value.

Output :

  • If the user gives the input as 4, it will prints higher.
  • If the user gives the input 15, it will prints lower.

Code Explanation:

  • The above code is in python language, In which the first line will instruct the user, take the input and pass to the function after converting it into an integer.
  • Then the first line of the function is used to check the value is less than 14 or not.
  • Then the else if condition checks that the value is equal to 14 or not.
  • Then the else condition will be true if the value is greater than 14.
You might be interested in
Denise is working as a market analyst in a publishing house. What is her career field?
e-lub [12.9K]
Cynthia career field would be a office job such as assisting a CEO or leader of a company.
8 0
3 years ago
Read 2 more answers
An employee sets up an automation that transfers files in a specific folder on their PC to a remote drive for archiving, provide
Yuri [45]

Answer:

Rule based automation

Explanation:

8 0
3 years ago
What was the first car ever produced by Henry ford
Slav-nsk [51]

It was "The Henry Ford"

6 0
3 years ago
A condition-controlled loop uses a while loop.<br><br> true<br><br> false
matrenka [14]

Answer:

true

Explanation:

a while loop is a condition-controlled loop. While loops continue no matter what under a certain condition, unless you insert the keyword <em>break.</em>

One example in python is this:

while x > y:

      <em>pass</em>

The keyword to break a while loop may vary depending on the coding language you are using.

<u>Tip</u> The pass keyword allows a no error contact between loop and the terminal. Pass in a nutshell is almost as if saying nothing at all, but just leaving the condition blank. We only use pass because it prevents errors instead of no value.

8 0
2 years ago
The intersection of a row and a column is commonly called what?
Ierofanga [76]
I dont know the answer sorry i just need the points
6 0
3 years ago
Other questions:
  • Brian is testing a banking application. He enters an input and expects a certain output. What is the actual output of the applic
    11·1 answer
  • How i can connect to internet automatically when i switch on my computer?
    8·1 answer
  • The factorial of an integer N is the product of the integers between 1 and N, inclusive. Write a while loop that computes the fa
    10·1 answer
  • A ________ -tier design includes a middle layer between the client and server that processes the client requests and translates
    11·1 answer
  • What is the biggest challenge for most business when going online?
    12·1 answer
  • While you are working on your computer, it shuts down unexpectedly, and you detect a burning smell. When you remove the case cov
    10·1 answer
  • If a filesystem has a block size of 4096 bytes, this means that a file comprised of only one byte will still use 4096 bytes of s
    12·1 answer
  • Find the distance between the points.<br><br><br>(5,-2),(-6,-2)
    12·1 answer
  • When proofreading, you should do all of the following except _____.
    14·1 answer
  • Which of the following is a key feature of a relational database?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!