Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

When running the program given, it is supposed to give the output bewlow. However, the program contains erros that prevent it from compiling and/or

    

When running the program given, it is supposed to give the output bewlow. However, the program contains erros that prevent it from compiling and/or running. Correct the program so that it works properly. The output: Please enter 10 integers, positive, negative, or zeros. The numbers you entered are: 2 7 -4 -3 0 7 4 0 -9 -4 There are 6 evens, which includes 2 zeros. The number of odd numbers is: 4. The program: #include using namespace std; const int LIMIT 10; int main () I float counter; int number; int zeros; int odds; int evens; " cout < < "Please enter < < Limit < < " integers, < < "positive, negative, or zeros." < < endl; cout < < "The numbers you entered are: " < < endl; for (counter = 1; counter switch (number / 2) { case 0: evens++; if (number = 0) zeros++; case 1: case 1: odds++; cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals of Financial Management

Authors: Eugene F. Brigham, Joel F. Houston

15th edition

1337671002, 978-1337395250

More Books

Students also viewed these Programming questions