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
Goshia [24]
3 years ago
13

Create Python program code that will use a for loop to ask the user to enterfourintegers. Itwillcount how many of the integers a

re divisible by 2. The programwill print each of the 4integers and a message saying whether the integeris even or odd. The code will print the total number of even integers

Computers and Technology
1 answer:
aleksandrvk [35]3 years ago
7 0

Answer:

is_even = 0

int_numbers = []

for n in range(4):

n = int(input('press any four integer numbers')

int_numbers.append(n)

for n in int_numbers:

if n%2==0:

print(n, 'integer is even')

is_even+= 1

else:

print(n, 'integer is odd')

print('Total even numbers =', is_even)

Explanation:

is_even = 0 (initiates a counter to record the number of even integers).

int_numbers creates a list to store the inputs entered by the user.

int(input()) : allows users to enter an integer number

int_numbers.append(n) : adds user input to list list variable created.

n%==2 : checks if entered digit leaves a remainder of 0 when divided by 2; hence an even number

is_even+= 1: counter updates by 1 for every even number confirmed.

You might be interested in
Henry wants to build a computer that will allow him to run a hypervisor program.
maria [59]

Answer:

<em>High-end video card</em> is not the necessary requirement to run hyper-visor program.

Explanation:

Hyper-visor program is actually a virtual machine operating system, It use the same hardware with two different operating systems using shared resources.

It creates another computer system with different operating system, which can called a virtual machine.

Virtual machine or Hyper-visor program is sharing the following resources:

1. RAM

2. Processor

3. Hard Disk

So, to install or run Hyper-visor program, the above three mentioned resources are needed or having high demand. On the other end it is not necessary requirement of Video Card to run this program.

5 0
4 years ago
Choose the person responsible for each innovation.
shepuryov [24]

Answer:

John Blankenbaker

Explanation:

5 0
3 years ago
Choose the list of the best uses for word processing software.
Ann [662]

Answer:

book reports, letters to your friends, resumes, and contracts

Explanation:

4 0
3 years ago
When does personal information often need to be entered online?
soldi70 [24.7K]

Answer:

Like when your doing an application for a job or anything important lol

Explanation:

3 0
3 years ago
When using an IDE, what must you do to use a class that's stored in a library? Select one: a. Nothing. Classes in libraries are
AleksAgata [21]

Answer:

Both B and C

Explanation:

In order to use methods from another class (library) in your code, the class library will have to be added or imported into your code.

This is implemented in different ways across different programming languages, for example;

Java uses the keyword import followed by the class library name

C++ uses the key word #include

C# Uses the keyword using

8 0
3 years ago
Read 2 more answers
Other questions:
  • Your smartphone, digital camera, and printer are all part of a network in your workspace. What type of network is likely in use
    7·1 answer
  • Which unique address is a 128-bit address written in hexadecimal?
    13·1 answer
  • More Loops: All versions of foods.py in this section have avoided using for loops when printing to save space. Choose a version
    13·1 answer
  • A user found that their personal data had been exfiltrated from their computer by a malicious program that they clicked on sever
    12·1 answer
  • How can the output of a command be redirected to a file instead of being displayed on the computer's screen?
    9·1 answer
  • Define an iterative function named append_ordered; it is passed two arguments: a linked list (ll) whose values are ordered from
    15·1 answer
  • KeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKeyonnnKe
    8·2 answers
  • Describe in detail what each step would look like if you ran into a software error.
    7·1 answer
  • What will be the output of following python code? a,b=3,4 a,b,c=b,a+3,b-1 print(a,b,c)​
    7·1 answer
  • Which three options below describe typographic hierarchy?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!