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
Airida [17]
3 years ago
8

Edhesive: Assignment 4: Evens and Odds

Computers and Technology
1 answer:
solniwko [45]3 years ago
6 0

Answer:

Written in Python

n = int(input("How many numbers do you need to check? "))

odd = 0

even = 0

for i in range(1,n+1):

     num = int(input("Enter Number: "))

     if num%2 == 0:

           print(str(num)+" is an even number")

           even = even + 1

     else:

           print(str(num)+" is an odd number")

           odd = odd + 1  

print("You entered "+str(even)+" even number(s).")

print("You entered "+str(odd)+" odd number(s).")

Explanation:

<em>I've added the full source code as an attachment where I use comments (#) as explanation</em>

Download txt
You might be interested in
18. which of these components is responsible for providing instructions and processing for a computer? a. cpu b. ssd c. ram d. r
cricket20 [7]

The components that is responsible for providing instructions and processing for a computer is a. CPU.

<h3>What area of the computer executes commands?</h3>

This command center's central processing unit (CPU) is a sophisticated, large-scale collection of electrical circuitry that carries out pre-stored program instructions. A central processing unit is a must for all computers, big and small.

Note that the CPU, RAM, and ROM chips are all located on the motherboard. The "brain" of the computer is known as the Central Processing Unit (CPU). It carries out instructions (from software) and directs other parts.

Learn more about CPU from

brainly.com/question/26991245
#SPJ1

7 0
1 year ago
which of the following statements about the evolving relationship between traditional newspaper operations and blogging is true?
Alex_Xolod [135]

Newspapers will continue to collapse or have their newsroom staffs substantially reduced as a result of their excessive debt.

One of these was advocacy journalism, where the journalist actively advances a specific cause or point of view. Early American newspapers were partisan and sensational, but in the late nineteenth and early twentieth century, they started to become more objective and professional. Many journalists have been confused by the fall in recent years since readers don't seem to be all that interested in reading newspapers. The decline in newspaper production is caused by a number of factors, including social media, corporate ownership, internet access, and advertising. Three of the four primary purposes of mass communication—surveillance, correlation, and cultural transmission—involve journalism to a significant extent.

Learn more about professional here-

brainly.com/question/1938929

#SPJ4

3 0
1 year ago
The digital EGR valve used on GM 3800 engines allows for how many different EGR flow rates?
Vesna [10]

Answer:

Is this an engine

Explanation:

5 0
3 years ago
An ergonomic keyboard is one that has been designed to fit the natural placement of your hands.
Natasha_Volkova [10]
True
hope this helps 
have a nice day
3 0
3 years ago
Read 2 more answers
Select the correct answer.
grandymaker [24]

Answer: C

Explanation:

5 0
3 years ago
Other questions:
  • How can the connection to salesforce be restricted only to the employee portal server? Universal containers (UC) uses a legacy E
    13·1 answer
  • If you could make any blog, what would it be about and why?
    9·1 answer
  • When using a target drive that is fat32 formatted, what is the maximum size limitation for split files?â?
    12·1 answer
  • All network operating systems today use the ____ protocol suite for internet communication.
    14·1 answer
  • True/False: The American Standard Code for Information (ASCII) is a code that allows people to read information on a computer.
    9·2 answers
  • _______and ________ enables computers to communicate and it can pass information between two networks.
    15·1 answer
  • Why computer is known as versatile and diligent device? Explain​
    7·1 answer
  • Write a python program to print the square of all numbers from 0 to 10.
    15·2 answers
  • A __________ is a sequence of characters.
    10·1 answer
  • True or false: Concurrent validation is more time consuming to measure than predictive validation because it involves a wait per
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!