subject

Write a program that will ask a user for how many numbers they would like to check. Then, using a for loop, prompt the user for a number, and output if that number is even or odd. Continue doing this as many times as the user indicated. Once the loop ends, output how many even numbers were
entered and how many odd numbers were entered
Hint: For a number to be even when the number is divided by 2. there should be no remainder - so you will want to use the modulus (%) operator.
Hint: You will need two count variables to keep track of odd and even numbers.
Sample Run 1
How many numbers do you need to checks
Enter unter 20
20 is an even number.
Enter number: 3)
33 anood number
Enter ruber: 4
4 is an even number
Enter bert77
73 is an odd number
Later :
15 an even number
you entered number(s).
you entered 2 od number(s).
Sample Run 2
Hanumbers do you need to check
30 is een ruber.
Enter ute!
315 od ruber.
Enter uber 4
you entered seven number(s).
You entered 1 hue(s).
Benchmarks
1. Prompt the user to answer the question. "How many numbers do you need to check?"
2. Create and initialize two count variables one for add and one for even
3. Based on the previous input, create a for loop that will run that exact number of times.
1. Prompt the user to 'Enter number:
2. If that number is even output "Inumber is an even number:
3. Update the even count variable.
4. Orelse if the number is odd. output number is an odd number:
5. Update the odd count variable
4. Output "You entered numberleven numbers
5. Output "You entered number odd numbers)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:00
Program description: a c# app is to be created to produce morse code. the morse code assigns a series of dots and dashes to each letter of the alphabet, each digit, and a few special characters (such as period, comma, colon, and semicolon). in sound-oriented systems, the dot represents a short sound and the dash represents a long sound. separation between words is indicated by a space, or, quite simply, the absence of a dot or dash. in a sound-oriented system, a space is indicated by a short period of time during which no sound is transmitted. the international version of the morse code is stored in the data file morse.txt.
Answers: 3
question
Computers and Technology, 22.06.2019 15:00
This is not a factor that you should use to determine the content of your presentation. your audience your goals your purpose your technology
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Cloud computing service providers manage different computing resources based on the services they offer. which resources do iaas and paas providers not manage? iaas providers do not manage the for the client, whereas paas providers usually do not manage the for their clients. iaas- storage server operating system network paas- applications interafce storage vertualiation
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Alcohol’s affects on the cornea and lens of the eye make it more difficult
Answers: 1
You know the right answer?
Write a program that will ask a user for how many numbers they would like to check. Then, using a fo...
Questions
question
Mathematics, 07.10.2020 09:01
question
Mathematics, 07.10.2020 09:01
question
Mathematics, 07.10.2020 09:01