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]
2 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]2 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
The sdlc phase in which functional data specifications and processing rules are created is the ______________ phase.
umka2103 [35]

In the analysis phase of the software development life cycle (SDLC), functional data specifications and processing rules are created.

In the software analysis phase of the software development life cycle (SDLC), functional data specification and processing rules are analyzed and created. This is mostly done and written in software requirement specification documents.

It is the phase (analysis phase), after gathering the requirements from clients or end-users (in which all stakeholder needs to do participation), requirements are finalized. Decisions about what functionality is required, data specifications, and processing rules are finalized and written in the software requirement specification document. This document is an asset for later use in the software development life cycle (SDLC) such as in the designing, implementation, and software testing phases.

Therefore, the analysis phase of SDLC is an important phase, and the success of the later SDLC phases depends on it. Because in this phase, the required software functionality, related data, and processing rules are finalized.

You can learn more about SDLC at

brainly.com/question/13897351

#SPJ4

3 0
1 year ago
Jose calls you at the help desk because he is having a problem logging on to his laptop computer. After several unsuccessful att
love history [14]

Answer:

- PC is being rejected by domain

- Caps lock is on

- Not connected to network

Explanation:

4 0
3 years ago
Dr. Wayne is trying to developing techniques to cure Parkinson’s disease by inserting genetic material into patients’ cells to c
algol [13]
I think it called gene therapy
8 0
2 years ago
If using the md5 hashing algorithm, what is the length to which each message is padded?
krek1111 [17]
If using the MD5 hashing algorithm, the length to which each message is padded 512 bits.

Answer: (d.) 512 bits.

MD5 stands for Message Digest 5. It is a hashing algorithm that is case sensitive.  It is a cryptographic hash values.

4 0
3 years ago
Write the definition of a function max that has three int parameters and returns the largest.
g100num [7]

Solution:

The definition of a function max that has three int parameters and returns the largest is given bellow:

def max(x,y,z):

if (x>z and x>y):

return (x)

elif (y>x and y>z):

return y

else:

return z

Thus this is required right answer.

4 0
3 years ago
Read 2 more answers
Other questions:
  • Double clicking a word selects the entire word?
    10·1 answer
  • 1. Access and PowerPoint are not included in all configurations of Microsoft Office 2013.
    14·1 answer
  • To edit the color of the text in presentation software, choose the Font color command Text Color in the ________ ribbon toolbar.
    15·2 answers
  • which telecommunications service allows internet and telephone service to work over the same phone line
    13·1 answer
  • What type of technology we need to use in order to make sure that users can freely room from one room to another one without wi-
    14·1 answer
  • Assume an ArrayList and a Linked List each contain 10,000 items. Which operation is performed fastest
    14·1 answer
  • Neview of related literature happens in two wayo (1) Traditional and
    6·1 answer
  • What is a case in programming​
    12·1 answer
  • 1.<br> _g<br> clue: fret; become worried<br> 2.<br> Fret become worried
    10·1 answer
  • When conducting memory and recall tests, some people make an effort to normalize memories by not reporting extreme cases. this l
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!