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 23:30
Creating "smart interfaces" in all sectors of industry, government, and the public arena is one of the fastest growing hct areas. these interfaces model, interpret, and analyze such human characteristics as speech, gesture, and vision. the field of biometrics, in which humans authenticate themselves to machines, is an area of considerable interest to hct practitioners. fingerprint scans are one of the most frequently used biometric options, and this article, biometric student identification: practical solutions for accountability & security in schools, makes a case for the implementation of fingerprint scans in schools. critique the article, and answer the following questions: according to the author, what are the main benefits of adopting fingerprint scans in schools for student identification? according to the author, what are the main drawbacks of adopting fingerprint scans in schools for student identification? do you agree with the author's assessment of the pl
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
On early television stations, what typically filled the screen from around 11pm until 6am? test dummies test patterns tests testing colors
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Stops: using the information learned in this course, explain three things you will not do when driving. a. b. c. explain why you will not do these things when driving. starts: using the information learned in this course, explain three things you will do when driving. a. b. c. explain why you will do these particular things when driving. explain one thing you will stop doing as a passenger. explain one thing you will start doing as a passenger.
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
Choose the answers that best complete each sentence. on average,are more expensive than other kinds of postsecondary schools. the cost of room and board includes. to save money, some students attend auniversity in their home state.
Answers: 2
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, 16.12.2020 23:10
question
Physics, 16.12.2020 23:10
question
Mathematics, 16.12.2020 23:10
question
Mathematics, 16.12.2020 23:10
Questions on the website: 13722367