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
lawyer [7]
3 years ago
11

Assignment 4: Evens and Odds

Computers and Technology
1 answer:
Anika [276]3 years ago
5 0

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

odd = 0

even = 0

i = 0

while i < n:

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

   if num % 2 == 0:

       even += 1

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

   else:

       odd += 1

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

   i += 1

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

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

I hope this helps!

You might be interested in
Assume you define a vector in the following way:
salantis [7]

Answer:

vec[0].push_back(10)

Explanation:

Given

Declaration: vector <int> vec

Required

Assign 10 to the first element

This can be done using the push_back keyword.

The syntax is:     <em>vectorname[position].push_back(value); </em>

In this case:

vectorname = vec

position = 0 i.e. first element

value = 10

So, we have:

vec[0].push_back(10)

6 0
3 years ago
A meeting of the quality team June is nervous about suggesting ideas because he is not sure he understands why they are qualifie
Flura [38]

Answer: Believe in himself Despite the idea will good or bad

Explanation: We are humans, so he can make a mistake with his ideas, the most important thing for a positive workplace behaviors in the meetings is to show security about your thinking, your ideas also when you are talking, keep in mind that is normal the wrongs and the mistakes, but it is no final you can start again and do it better than the last time, and improve your behavior

3 0
3 years ago
Read 2 more answers
Recall the CFG G4 that we gave in Example 2.4. For convenience, let’s rename its variables with single letters as follows. E → E
dimaraw [331]

Answer:

Check the attached image

Explanation:

the diagram for explaning all the solutions is in the attaged images below.

6 0
3 years ago
Which relation is created with the primary key associated with the relationship or associative entity, plus any non-key attribut
konstantin123 [22]

Answer:

- Transform binary or unary M:N relationship or associative entity with its own key.

Explanation:

Transform binary relation is described as the method through which a decimal can easily be converted into binary while the unary relationship is described as a relationship in which both the two participants occurs from the same entity.

In the given case, 'transform binary or unary M:N relationship' can be created using 'the primary key linked with the relationship plus any non-key aspects of the relationship and the primary keys of the related entities' as it displays the existence of a relationship between the occurrences of a similar set of the entity i.e. associative entity here.

5 0
4 years ago
Can someone please join my tournament on Zombs Royale if u win u can win 30,000 dollars all u have to do is go to Zombs Royale t
gogolik [260]

Answer:

ye i will

Explanation:

Only i I get the brainliest

6 0
3 years ago
Other questions:
  • . What is the difference between subnetting and supernetting?
    13·1 answer
  • Consider the following code segment:
    5·1 answer
  • What file format is best for photo editing? Select one: a. JPG b. RAW c. DOC d. RTF
    12·2 answers
  • How do you make your graphics ADA accessible in BlueGriffon?
    12·2 answers
  • The numbering system we commonly use is called the decimal numbering system because it uses ________ symbols to represent all po
    5·1 answer
  • When specifying keywords to conduct an internet search, which of the following parts of speech will be the most useful??
    6·1 answer
  • When would it be beneficial to make a copy of a document
    10·1 answer
  • Among us Question. Worth 15 Points.<br> Which Vents do the Admin Vents Connect?
    14·2 answers
  • The part of the screen where you see the results of your code is called the Editor.
    15·2 answers
  • Suppose the size of process is 10000 bytes and the relocation register is loaded with value 5000 which of the following memory a
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!