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
Gnoma [55]
3 years ago
10

Define a function below, posodd_number_filter, which takes a single numerical argument. Complete the function to return accepted

if the input is positive and odd. Otherwise, return rejected.
Computers and Technology
1 answer:
Vaselesa [24]3 years ago
5 0

The program is an illustration of functions.

<h3>What are functions?</h3>

Functions are set of program statements that are executed when called or evoked.

<h3>The main program</h3>

The function written in Python, where comments are used to explain each line of the program is as follows:

#This defines the function

def posodd_number_filter(num):

   #This checks if the function is odd and positive

   if num >0 and num%2 ==1:

       #If yes, this returns Accepted

       return "Accepted"

   #If no, this returns Rejected

   return "Rejected"

Read more about functions at:

brainly.com/question/14284563

You might be interested in
According to the video, what tasks do Carpenters commonly perform? Select four options. supervising Plumbers, Electricians, and
TiliK225 [7]

Answer:

Cutting, shaping, and fastening wood.

Installing rafters, joists, windows, and subflooring.

Setting hardwood floors.

Building kitchen cabinets.

7 0
3 years ago
Read 2 more answers
A device is sending out data at the rate of 1000 bps. How long does it take to send
vredina [299]

Answer:

0.01 second ; 0.008 seconds; 800 seconds

Explanation:

Given that:

Sending rate = 1000 bps

Rate of 1000 bps means that data is sent at a rate of 1000 bits per second

Hence, to send out 10 bits

1000 bits = 1 second

10 bits = x

1000x = 10

x = 10 / 1000

x = 0.01 second

2.)

A single character 8 - bits

1000 bits = 1 second

8 bits = (8 / 1000) seconds

= 0.008 seconds

3.)

100,000 characters = (8 * 100,000) = 800,000

1000 bits = 1 second

800,000 bits = (800,000 / 1000)

= 800 seconds

4 0
3 years ago
A smart refrigerator can use what to detect when you are running low on milk, and then send a reminder to you on a wireless
yulyashka [42]

Answer:

Internet of things

Explanation:

Smart refrigerators are equipped with IoTs which helps to sense when one is running low on milk and sends a reminder through a wireless connection.

Internet of things is connectivity or network of things.

  • It involves connection of different computing everyday devices which are able to interact with one another.
  • They have found a wide range of application in our hospitals, homes, and even work places.
  • The connectivity allows for more flexible controls and interaction wherever one might be with different components.
  • It uses a network of objects that exchanges data intermittently.
7 0
3 years ago
A mouse is known as a _____ device that is able to detect motion in relation to the surface and provides an onscreen pointer rep
hichkok12 [17]
I think the answer is C because u can control the computer with a mouse to point at stuff on screen and also click on things with it its the main device u use besides key pad but without mouse u cant really do anything so i would pick C
3 0
3 years ago
Anyone 13 i a boy 13 pan
Setler [38]

Answer:

RATED- SUS

Explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • Andy uses a dial-up modem to connect to the Internet. He usually browses news sites, but he notices that online video takes a lo
    15·1 answer
  • Inserting diagrams into documents can help readers better understand document text. True or False?
    10·1 answer
  • Dave has to create animations for a game. Which tool can Dave use?
    6·1 answer
  • You've finished programming the app! Now your company has to decide whether to use an open source
    6·1 answer
  • a machine needs a minimum of 100 sec to sort 1000 names by quicksort what is the approximate worst case time needed to sort 100
    13·1 answer
  • My pc suddenly freezes and i can't open any apps or task manager. Apps do not open at all and if i restart from the start it get
    9·1 answer
  • Google Slides is most similar to which of the following programs?
    10·2 answers
  • Write short cut of<br> fully justified​
    7·1 answer
  • Jim is working on a network design for a small office running a Windows file and printer server with Internet
    15·1 answer
  • Match each item with a statement below.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!