Question

Could you help me create a python code for this question? Thanks 

Create Python program code that will use a for loop to ask the user to enter four integers.
It will count how many of the integers are divisible by 2. The program will print each of the
4 integers and a message saying whether the integer is even or odd. The code will print the
total number of even integers.
Expand
Transcribed Image Text

Create Python program code that will use a for loop to ask the user to enter four integers. It will count how many of the integers are divisible by 2. The program will print each of the 4 integers and a message saying whether the integer is even or odd. The code will print the total number of even integers.

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Engineering

Programing

Related Computer Engineering Q&A

Find answers to questions asked by students like you.

Q: what the purpose of the 4-way handshake is, what information is exchanged in each step, and what the...

A: In this problem, 4-way handshake is explained in detailed. All the details of 4-way handshake, namel...

Q: Hi! I need assistance writing the PSEUDOCODE and the SOURCE CODE for the problem listed below! Any h...

A: import random# Function that returns kilometerdef miles_to_km(mile): return mile * 1.60934# Funct...

Q: Which of the following operator is used to access the members of a structure a. ( )  b.  ....

A: The given information is  Which of the following operator is used to access the members of a structu...

Q: Assume you are working as a network professional in a company. The company requires you to create so...

A: Network 192.168.10.0/26 is the given IP address It belongs to Class C IP address a) Subnet mask is 2...

Q: Write a program to ask user to enter his date of birth and calculate how many independence days (15t...

A: The program is written in c  

Q: 1. What is Scilab Code?2. How to run a Scilab code?3. Distinguish between 2D and 3D plots in Scilab ...

A: 1. What is Scilab Code? Scilab code is a code which is written in the Scilab programming language. T...

Q: Assuming even parity, find the parity bit for each of the following data units.a. 1001010b. 0001101c...

A: Parity bit: Parity of number is define as, if the total number of set that is 1-bit in binary repre...

Q: write a c++ program which calculate the average of the student and display the corresponding verbal ...

A: Note: You are asking to calculate the average of the student and display the corresponding verbal i...

Q: Write a program that asks the user to enter a signed number and read it. Then display thecontent of ...

A: Since you have not mentioned the language, I will attempt in python. if you need it in any other lan...

Q: Help me

A: Solution in Step 2.

Q: There are six memory partitions of 50 kB, 100 KB, 500 KB, 200 KB, 300 KB and 600 KB in order, how wo...

A: we have six memory partitions. 50 kB, 100 KB, 500 KB, 200 KB, 300 KB, and 600 KB Processes are P1 = ...

Q: (c) Match the following to one or more layers of the OSI model:a. Format and code conversion service...

A: a) Format and code conversion services -  Presentation Layer. b) Establishes, manages and terminates...

Q: How does technical drawings and flowchart important in computer system servicing as a student?

A: Flowchart is pictorial representation of a process which is considered  to be blue print of a algori...

Q: Bundoo khan is famous restaurant in Karachi, they have almost manual process. Now they are willing t...

A: The question asks about building the menu list for items and perform the following operations. 1-Cre...

Q: Ssuet network gateway, 2 Mbps, packet size 1000 bytes, arrival rate of 125 packets/sec. The what is ...

A: -> A gateway is a bit of systems administration equipment utilized in media communications for br...

Q: What is output security?

A: Answer in step2  

Q: What is the difference between void and NULL pointers .Give suitable examples in support of your ans...

A: A null pointer is one which is not pointing to anything, i.e. it is assigned a null value. If there ...

Q: 3. Write a C++ program that can accept two inputs from user. First input being of character type (sy...

A: Please find the answer below :  

Q: Help their can possibly be more than one correct answer

A: The, answer has given below:

Q: im struggling please help me

A: The given statements have variable a and b with the below assignments:    a=2; ---- this statement s...

Q: how to write the algorithm in this code int main(){ queue a;int c; while(1){cout<<"\nPlease Se...

A: Queue overflow() results from attempting to add an element to a complete queue,  Queue underflow() o...

Q: Slack is an example of collaboration software. True or False?

A: True because collaboration software are that in which a group of people work together or help people...

Q: What is topology?

A: In this case, we have to define topology.

Q: Help fast

A: Relocation register: It contains the offset value which is added to the logical address to obtain th...

Q: Help their can possibly be more than one correct answer

A: Given: x = 1 a = 1e-20 y = (x+a)-x y/a

Q: (b) Match the following to one or more layers of the OSl model:a. Communicates directly with user's ...

A: a. Communicates directly with user's application programb. Error correction and retransmissionc. Mec...

Q: All of the following are among the important factors in designing a management support system except...

A:   d.Making sure response time is slow

Q: make a program with a programming language 1.pascal to determine the status of an age that is inputt...

A: Program Plan:- 1. If the age is 1-5 years, the status is "BALITA" 2. If the age entered is between 6...

Q: c++   How do you declare a pointer that will hold an integer type?. Multiple choice.   int *p; ...

A: To declare a pointer that will hold an integer type: To store the memory address of another variabl...

Q: A common programming problem is maintaining a list in numerical or alphabetical order. For example, ...

A: package Java.C.c; import java.util.*; import java.lang.*; import java.io.*; class value { staticin...

Q: Discuss the advantages and disadvantages of the following a.Processor Speed b.Increasing RAM size c....

A: a .Processor Speed(CPU): Advantages: The CPU has better performance, executes tasks more easily, suc...

Q: In terms of client-server architectures, can you explain the difference between the two-tier, three-...

A: Actually, A client is a computer hardware device or software that accesses a service made available ...

Q: dangling and wild pointers are known to be problems with pointers.justify the statement with the hel...

A: Dangling Pointer is a pointer which points to the memory location which is already freed Wild Pointe...

Q: Translate the C expression f = g*23 to MIPs assembly language Assume that f and g are allocated in s...

A: Define the segment for mentioning the data variables/registers Define registers $s0, $s1, 23, $t0 an...

Q: A system administration is trying to unmount a filesystem.  The mount point of the filesystem is  /o...

A: Answer in step2

Q: Please use MATLAB to solve the problem.

A: Actually, MATLAB is a programming platform designed specifically for engineers and scientists.