The problem below uses the function get_numbers() to read a number of integers from the user. Three unfinished functions are defined, which should print only certain types of numbers that the user entered. Complete the unfinished functions, adding loops and branches where necessary. Match the output with the below sample:


Enter 5 integers:

0 5

1 99

2 -44

3 0

4 12

Numbers: 5 99 -44 0 12

Odd numbers: 5 99

Negative numbers: -44

Answers

Answer 1
size=6

def get_numbers(num):
numbers = []
print('Enter %s integers:' % num)

for i in range(0,num):
print(i,end=' ')
user_input = int(input())
numbers.append(user_input) # Add to numbers list
return numbers

def print_all_numbers(numbers):
# Print numbers
print('\nNumbers:',end=' ')
for i in range(0,len(numbers)):
print(numbers[i],end=' ')

def print_odd_numbers(numbers):
# Print all odd numbers
print('\nOdd numbers:',end=' ')
for i in range(0, len(numbers)):
if numbers[i]%2!=0:
print(numbers[i], end=' ')


def print_negative_numbers(numbers):
# Print all negative numbers
print('\nNegative numbers:',end=' ')
for i in range(0, len(numbers)):
if numbers[i] <0:
print(numbers[i], end=' ')

nums = get_numbers(size)
print_all_numbers(nums)
print_odd_numbers(nums)
print_negative_numbers(nums)
The Problem Below Uses The Function Get_numbers() To Read A Number Of Integers From The User. Three Unfinished

Related Questions

What free website can you record videos on, and edit them without money?

Answers

Answer:

You can edit videos on Capcut for free and I think you can also use Alightmoon

Answer:

You can edit videos using this application called Kinemaster.

Explanation:

After recording the video download Kinemaster available on Playstore and App store

What is accomplished by the following code snippet, assuming all variables had been
populated?
amount_owed += duration rate

O Amount owed is set to duration times rate.
O Amount owed adds duration times rate to it.
O Amount owed is displayed to a user as duration rate.
O This line would return a syntax error.

Answers

There are different kinds of computer programs. The option that is accomplished by the following code snippet is the Amount owed adds duration times rate to it.

Code Snippet is simply regarded as a term used to show a tiny portion of re-usable source code, machine code etc. It is know to help a programmer to avoid typing repetitive code when undergoing routine programming.

It is a common example in documentation. It depicts how to use some particular class or how to finish an assigned task. It can be in form of a short snippet that is based on a specific task or a longer one.

Learn more about Code Snippet from

https://brainly.com/question/24171161

10011÷11 binary division​

Answers

Answer:

110.01001

Explanation:

it's a repeating decimal

g Tonya recognizes that one example of the impact of censorship on Internet service providers (ISPs) is that

Answers

law-enforcement agencies can force ISPs to identify customers who send emails using anonymous remaliers

What term describes the story of a game?
tale
fable
narrative
setting

Answers

I would say tale because a tales like more for stuff like games

Answer:

tale.

Explanation:

because the other answers make 0 sense.

(Find the number of uppercase letters in a string) Write a recursive function to return the number of uppercase letters in a string using the following function headers: def countUppercase(s): def countUppercaseHelper(s, high): Write a test program that prompts the user to enter a string and displays the number of uppercase letters in the string.

Answers

def countUppercase(s):
count=0
for i in s:
if i.isupper():
count+=1
s=s.replace(i, "")
else:
s=s.replace(i, "")
countUppercase(s)
return count

element=input("Enter the string: ")
string=countUppercase(element)
print("\nNumber of upper letter in the string: ",string)

A certain microprocessor requires either 2, 4, 8, 12, or 16 machine cycles to perform various operations. Seventeen and one-half (17.5) percent of its instructions require 2 machine cycles, 12.5% require 4 machine cycles, 35% require 8 machine cycles, 20% require 12 machine cycles, and 15% require 16 machine cycles. What is the average number of machine cycles per instruction for this microprocessor

Answers

The answer is 8.45

since (17.5*2+12.5*4+35*8+20*12+15*16)/100 = 8.45

Read the problem listed below. Formulate a Decomposition or Outline of the problem. Determine if you have seen this problem before and how it was solved. Start to write your Algorithm, making note of the inputs and outputs that will be required. Write your code, test and debug.

Problem:
Create a program in Python that will draw a series of triangles. The program needs to ask the user for the number of triangles to draw and the size of the triangle.

The inputs for this program need to look like the following:

Enter the number of triangles:
Enter the size of the triangles:
Using these two inputs, your program will then draw a series of triangles in the size the user wishes.

For example if the user enters 3 triangles with a size of 5, the following will be the output:

*
**
***
****

*
**
***
****

*
**
***
****
The easiest way to solve this problem is with two loops. One loop draws the triangles and the other repeats the drawing.

When testing your program make sure you test with different sizes and different numbers of triangles as this will be how your code will be run by Codio.

Answers

URL where the media can be found;

the description of the type of media used in the example;

an analysis of the media piece in relation to the best practices discussed in this lesson, which answers these questions:

Does the piece illustrate best practices?

Which are best represented?

What point do you feel the company

Implement a function mystery( ) that takes as input a positive integer n and answers this
question. How many times can n be halved (using integer division) before reaching 1?

Answers

Count= 0
While n > 1
n = n
Count += 1
Return count

The function mystery that takes as input a positive integer n is given below. The number of times that can n be halved (using integer division) before reaching 1 is infinite.

What are function mysteries?

The non-negative integers are used to define the mystery function. The more common name of this method is hidden to avoid tempting you to explore the Web for assistance in completing this task, which would be a very dishonorable thing to do. Assume n has m bits.

Count= 0

While n > 1

n = n

Count += 1

Return count

Once. You now have 1/2. You can split 1/2 in half to make quarters, but that is not dividing one, it is dividing one half. If you mean how long the series of subsequent subdivisions you can make can be, the answer is infinite.

Therefore, the number of times that can n be halved (using integer division) before reaching 1 is infinite.

To learn more about function mysteries, refer to the below link:

https://brainly.com/question/14201335

#SPJ2

The current annual interest rate is 5 percent, and you are taking out a 20-year loan with a monthly end-of-month payment. If you can afford monthly payments of $3000 per month, what is the most you can borrow?

Answers

Answer:

720k.

Explanation:

What sound customization option would you use in Scratch to simulate a sound happening in a large, empty room (like a theater)?
louder
reverse
echo
slower

Answers

C. Echo ( I May Be Wrong )

Answer:

Louder

Explanation:

Here’s my last question

Answers

Answer:

Can't find it lolol

Explanation:

Where?

I’m bored too … hey

who invent cars and who invent bikes and who invent pc

Answers

Answer:

Cars were invented in 1886 by Karl Benz.The term bicycle was coined in France in the 1860s, but The first verifiable claim for a practically used bicycle belongs to German Baron Karl von Drais in 1817The first computer was by Charles Babbage, an English mechanical engineer and polymath he originated the concept of a programmable computer.

Project planning output is :

A. Top-down planning

B. Bottom up planning

C. Waterfall planning

D. Iterative planning

Answers

Answer:

A

Explanation:

The main output of Project palnning is project plan.

Which system carries the idea of GPS service further than simply telling you which route to take to arrive at a particular place

Answers

There are different uses of GPS. Apple’s Siri system carries the idea of GPS service further than simply telling you which route to take to arrive at a particular place.

Apple Siri  is a software device that can make calls or send texts for a person when he or she is driving.

It often carries the idea of GPS service further as it does not only give GPS but it can help you to tell you, your messages on your Airpods. It often offers some suggestions on things you want to do will driving.

Learn more about Apple Siri from

https://brainly.com/question/9795929

Victor and Ellen are software engineers working on a popular mobile app. Victor has been in his position for 10 years longer than Ellen, who is a recent graduate. During the development of a new feature, Ellen expressed her concern that VIctor's proposed code would create instability in the app. Victor told Ellen he would address her concern with their supervisor. When Victor met privately with his supervisor, he claimed that he had discovered the problem, and that Ellen had dismissed it. Which principle of the Software Engineering Code of Ethics has Victor violated

Answers

Victor violated principle 7: Colleagues of the Software Engineering Code of Ethics

A code of ethics reaffirms an organization's ethical conducts and morals so that workers, as well as, third parties are aware of the expectations they must meet.

A code of ethics' objective is to instruct persons functioning on behalf of an organization on how they should act.

The attitude of Victor towards her junior colleague (Ellen) is unjust and dishonest since Victor has claimed the credit meant to be for Ellen.

Therefore, we can conclude that Victor has violated principle 7: Colleagues of the Software Engineering Code of Ethics.

Learn more about the code of ethics here:

https://brainly.com/question/18401975

reflection image and design

Answers

Explanation:

It is the image and design

What should you look out for when choosing snacks that seem healthy? How can you make sure that the snacks you are choosing are actually healthy?

Answers

Answer:

You can make sure that the snack is healthy by looking at the ingreadents. A healthy snack should not have alot of persavatives and sugars. A good golden rule is if you can't pronaunce the word then its not good for you.

Explanation:

One of the main operations associated with the dictionary ADT is:
(a) given a key and value, remove the entry with given key and value from the dictionary
(b) given a value, remove the entry that contains the value
(c) remove the last item in the dictionary
(d) given a key, return the value of the dictionary entry with the given key

Answers

ITS B my friends and teacher helped

In the year, , the American Department of Defense put a military research network, called ARPANET online.

Answers

Answer:

November 21st of 1969.

Explanation:

In the year, 1969, the American Department of Defense put a military research network, called ARPANET online.

In PowerPoint, a picture might be a photograph, a shape you draw, a piece of clip art, or an illustration created using a graphics app
O True
O False​

Answers

Answer:

True

Explanation:

In PowerPoint, you can insert pictures/images that include photographs, shapes, and illustrations.

Answer:

True

Explanation:

Write a recursive boolean method named isMember. The method should accept two arguments: an int array and an int value. The method should return true if the value is found in the array, or false if the value is not found in the array.

Answers

Answer:

hi the answer is nothig

Explanation:

bacause i guessed

Q) Look at the code and determine the output

y=-10
while(y<10):
print('$', end="") y += 5

(a) $$$$$$$$$$
(b) $$$$
(c) $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
(d) Nothing will be printed

Answers

Answer:

B.

Explanation:

Please answer the questions.

Answers

Answer:

10 days

Explanation:

because they have to go through all your history to see if any of that could of caused it

Answer to questions 1 is option D, answer to question 2 is option B, answer to question 3 is option D

Why is information so important in our lives

Answers

Information is very important because it helps us as a society make decisions. Decisions are impossible without information, and we are constantly seeking information in everything we do. Information is important in decreasing our sense of doubt and uncertainty as well.
Information is important in everyone's lives because without information, we would not be able to develop our knowledge on the world. Retaining information starts when you're a baby up until you die and this is through sensory - being able to touch, hear, see and taste.

Additionally, what's the importance of technology in our life? Technology can make any family or business feel safer. There are many security devices and software available to secure your financial data, protect your home when you are away and much more. Technology is important because it makes you feel more secure with every area in life for both personal and business reasons.

he JavaScript ________ defines items on a web page such as graphics, tables, and headers as objects.

Answers

The JavaScript DOM defines items on a web page such as graphics, tables, and headers as objects.

The JavaScript DOM defines items on a web page such as graphics, tables, and headers as objects.

The JavaScript DOM

The JavaScript DOM Known as the Document Object Model (DOM) is a programming interface that allows one to manipulate the  web documents, such that one  can change the document's structure, style, and content using objects like :

graphicstablesheaders.

Therefore, to access items on a web page, The  JavaScript DOM is applied.

Learn more about the dom here:https://brainly.com/question/25772355

Does The ps5 digital have a disc drive even Though ps4 games are not compatible

Answers

Answer:

Since the PS5 is backward compatible with the PS4, PS4 games can be played on the new console. Then, select the game hub from your Games home page. Quick tip: If you have a PS5 Digital Edition, you won't be able to use physical game discs since it does not have a disc drive to read them.

Explanation:

HOPE IT HELPS

When running the following code:
true = 5
false = 6
print (true + false)
-
The interpreter will:

Answers

Answer:

print(11)

Explanation:

true + false = print statement

5 + 6 = 11

To permit communication between two people who do not speak the same language, interpreters accurately and objectively translate spoken or sign languages into other languages.

What is role of print statements in interpreter?

It is the interpreter's responsibility to use these code objects and carry out the directives. You might be astonished to learn that compilation even occurs during the execution of Python code.

As contrast to “compiled” languages like C or Rust, Python is frequently referred to as a “interpreted” language like Ruby or Perl.

A trained expert who facilitates communication between those who speak or sign in various languages is known as an interpretation.

The print() function outputs the message to the normal output device, such as the screen. The message can be a string or any other object, and before it is displayed on the screen, the object will be changed into a string.

Therefore, true + false = print statement 5 + 6 = 11

Learn more about print statements here:

https://brainly.com/question/24200615

#SPJ2

What is a disadvantage of communicating on social media?

Collaborating with others
Speed
Lack of privacy
Maintaining relationships

Answers

Answer:

Lack of privacy

Explanation:

A wireless ________ extender is a network device that enhances transmission of your wireless signal.

Answers

Explanation:

A wifi range extender,sometime called a range expander,is type of wireless repeater used to exten wifi range.

Other Questions
HELP ME ASAP THANK YOU VERY MUCH why don't elements in a group have consicutive atomic numbers? Yoo what it do I dont know the answer tho Find the unknown side (w) of the rectangular solid. Please help.. Richard wants to paint the top and sides of the block column. What is the surface area he needs to cover?592 sq. ft512 sq. ft960 sq. ft800 sq. ft What is the result of subtracting 4x^2 + 3xy +2y^2 from 5x^2 + 3xy + 6y^2? expand and simplify 3(5x+1)+5(5x-4) 17. The shape of a river is determined by which of the following? (Choose all thatapply)A ErosionB. DepositionC. WeatheringD. water speed A light post 5 1/5 metres long was set 1 1/2 metres into the ground. What was the length of the post above the ground? Write your answer in its simplest form * A teacher asked her students to divide a large number by 50. Aslan divided the number by 50. Lucy divided the number by 5 and then divided the answer she got by 10. Jack divided the number by 10 and then divided the answer he got by 40.Who among these got the correct answer assuming they did NOT make mistakes in division? How is the product of 4 and 2 shown using integer tiles?4 positive tiles and 2 positive tiles.4 negative tiles and 2 negative tiles.4 sets of 2 positive tiles.4 sets of 2 negative tiles. Mrs. Traynor's class is taking a field trip to the zoo. The trip will cost $26 for each student. There are 22 students in her class. Use compatible numbers to estimate the total cost of the field trip. Which equation best represents the line? y = 3/4x + 4y = 4/3x + 4y = 4x + 3/4y = 4x + 4/3 Hitler wants to recover land lost in the Treaty of Versailles and beyond. Identify the cause: Question 5 options:a) Hitler wants the whole world to be German. b) Hitler wants to see how many other governments he can take down. c) Hitler wants control of all trade in the region. d) Hitler says he wants all Germans to live together in one big Germany. Sociologists associate sexuality with The standard configuration for a Colorado license plate is 3 letters followed by 3 digits. How many different license plates are possible if letters and digits can be repeated? What is a Objective Summary on Global Warming? I NEED SO BAD another word for a religious group {studies weekly week 14} in older adults, a higher level of social support is related to The value of X is units in length.