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, 21.06.2019 18:40
Access defaults to searching for information on the
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
Which of these is an example of an integrated presentation? a. a table created in powerpoint b. an image pasted into powerpoint c. a caption created in powerpoint d. an excel chart pasted into powerpoint
Answers: 1
question
Computers and Technology, 23.06.2019 19:00
Acompany is hiring professionals for web designing. the firm is small with few resources. they want employees who possess problem-solving skills and can independently carry out responsibilities. which kind of employee should they select?
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
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, 12.03.2021 17:00
question
Physics, 12.03.2021 17:00
question
Mathematics, 12.03.2021 17:00
question
Mathematics, 12.03.2021 17:00
question
Mathematics, 12.03.2021 17:00
question
Mathematics, 12.03.2021 17:00
question
Mathematics, 12.03.2021 17:00
Questions on the website: 13722361