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
earnstyle [38]
3 years ago
13

How to complete Assignment 4: Evens and Odds in Project STEM

Computers and Technology
1 answer:
Soloha48 [4]3 years ago
6 0

Answer:

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).")

You might be interested in
Write a function header for the ZooAnimal class member function daysSinceLastWeighed. This function has a single integer paramet
Dmitry_Shevchenko [17]

Answer:

Answered below

Explanation:

public int daysSinceLastWeighed(int today)

Method is public which means it is visible to other classes. It returns an integer which is indicated as int. Next is the method's name which clearly describes what the method does 'days since last weighed'. The opening and closing parentheses enclose the integer parameter named today. This is the function header.

4 0
3 years ago
I need answer pooooooo​
lara [203]
Read the instructions right, youll get ir done
7 0
3 years ago
What is the value of the result after the following statement is executed? int result = 2 + 3 + 4 ;
kow [346]

2 + 3 + 4 = 9 so the value of result is also 9

8 0
3 years ago
Which part of the water cycle is most affected by a sunny day with few clouds?
nirvana33 [79]
Increase in evaporation
8 0
3 years ago
Read 2 more answers
Given the following array definition, write a constant declaration named ArraySize that automatically calculates the size in byt
Rina8888 [55]

Answer:

ArraySize = ($ - newArray)

Explanation:

Given

Array name: newArray

Type: DWORD

Required

The size of the array in bytes

The following formula is used to calculate the size of an array in assembly language.

Variable = ($-Array name)

So, we have:

ArraySize = ($ - newArray)

<em>Where ArraySize is the variable that holds the size of newArray (in bytes)</em>

8 0
3 years ago
Other questions:
  • What do you think is the most effective way to ensure that code adheres to good coding standards? (1 correct answer)
    5·2 answers
  • A computer with a domain name is called a
    8·2 answers
  • Which protocol is the data transmission standard for the Internet, responsible for sending information from one computer to anot
    14·1 answer
  • Please label the parts its urgent Best answer receives a brainliest and 20 points please i need it :) :) ​
    5·2 answers
  • What is the current when the voltage is 18 volts and the resistance is 6 ohms?
    7·1 answer
  • What’s the difference between the logical and physical structure of a file? What are the advantages of not having an application
    15·1 answer
  • In the transactional process model of communication, the meaning of a message resides with the ___________.
    6·1 answer
  • What's a website layout
    15·2 answers
  • You are assigned by your teacher to perform the assembly of all the parts of the computer in preparation for the hands on activi
    7·1 answer
  • How to add up multiple user inputs for example: If i ask the user How many numbers do you want to add? they say 5 then i out put
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!