subject

Design a main( ), oddEven( m1) and findAverage(n1, n2, n3, n4) functions in python. The main( ) prompts the user and receives five integers from user and calls other functions as explained below. The main( ) program is expected to pass the first value to the oddEven(m1 ) function and pass the other 4 values to the findAverage(n1, n2, n3, n4). The oddEven(m1) function is a void functions and simply prints whether the argument sent was odd or even. The findAverage(n1, n2, n3, n4) function a value returning function and returns the average of the four values back to the main to be printed over there. You may also design a forth optional function called findSum( ) to help the findAverage(n1, n2, n3, n4) function to do its job faster

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:30
Kyle, a receptionist for a building supply company, recently won an award for saving his company money on their phone system. after being presented with kyle's research, the company changed the way in which it made long-distance phone calls and cut their expenses in this area by 75 percent. the new system the kyle's company most likely adopted was wired communications switching stations voip hdtv
Answers: 3
question
Computers and Technology, 23.06.2019 05:00
Acompany is inviting design for its new corporate logo from its users. this is an example of ? a. crowdfunding b. crowdvoting c. crowdsourced design d. crowdtracking
Answers: 3
question
Computers and Technology, 23.06.2019 09:00
Which company provides a crowdsourcing platform for corporate research and development? a: mtruk b: wiki answers c: mediawiki d: innocentive
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
:you areto design the controller for alight that functions both as an ordinary light and also as a motion activated light and alarm. a.if the manual switch s is on, then the light l is on. b.besides the manual switch, there is a motion detector, m1, which activatesthis light.c.if motion is detected but the light is on anyway because s is on, only then a secondoutput a, an alarm, is turned on. d.the disable switch, d, disables the motion activated light and alarmbut leaves manual control operation of the light using switch s.(i)read the problem statement and clearly identify the inputs and outputs for the circuit you are designing. (ii)create the truth table for this system; include the light, alarm, switch, disable, and the motion sensor.(iii)draw a schematic of this system.
Answers: 1
You know the right answer?
Design a main( ), oddEven( m1) and findAverage(n1, n2, n3, n4) functions in python. The main( ) prom...
Questions
question
Mathematics, 01.10.2019 21:30
Questions on the website: 13722363