Create a program that asks for 10 integer numbers. The program then counts how many odd,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a program that asks for 10 integer numbers. The program then counts how many odd, how many even, how many negative, how many positive, and how many zero numbers. note: you need to use loops (you may choose whether for, while, or do while) Sample output: Input 10 integer numbers. Input number 1:0 Input number 2: -1 Input number 3: 20 Input number 4: -4 Input number 5: 0 Input number 6: 14 Input number 7:7 Input number 8: 71 Input number 9: 16 Input number 10: -7 Total Even numbers: 4 Total Odd numbers: 4 Create a program that asks for 10 integer numbers. The program then counts how many odd, how many even, how many negative, how many positive, and how many zero numbers. note: you need to use loops (you may choose whether for, while, or do while) Sample output: Input 10 integer numbers. Input number 1:0 Input number 2: -1 Input number 3: 20 Input number 4: -4 Input number 5: 0 Input number 6: 14 Input number 7:7 Input number 8: 71 Input number 9: 16 Input number 10: -7 Total Even numbers: 4 Total Odd numbers: 4
Expert Answer:
Answer rating: 100% (QA)
C PROGRAM CODE include int main int numbers10 int j pos0 neg30zeroD0even00dd3D3B prin... View the full answer
Posted Date:
Students also viewed these programming questions
-
For equally likely minimax regret EMV EVwPI you need to use all three numbers for each alternative not just two numbers because there are three state of natures for each alternative There is no...
-
Create a program that displays five random addition problems, one at a time, on the computer screen. Each problem should be displayed as a question, like this: What is the sum of x + y?. The x and y...
-
Create a program that tests the class Merlin described in the previous exercise. Use the toString method to verify that a unique instance has been created. Previous exercise. Sometimes we would like...
-
Identify for each one individually if they are Intensive, selective, or exclusive distribution Identify which distribution strategy is being used in each of the following: 1. Coca Cola products 2....
-
A factorial experiment was designed to test for any significant differences in the time needed to perform English to foreign language translations with two computerized language translators. Because...
-
OReilly Manufacturing, Inc.s cost of goods sold for the month ended July 31 was $345,000. The ending work in process inventory was 90% of the beginning work in process inventory. Factory overhead was...
-
Based on the information for Norwegian Bristling Company for the year ended December 31, 2018: a. How much is the firms net working capital and what is the debt ratio? b. Complete a statement of cash...
-
APB Opinion No. 20 was concerned with accounting changes. SFAS No. 154 changes the accounting treatment for some accounting changes. Required: a. Define, discuss, and illustrate each of the following...
-
1. Hydrogenation of the above compound in the presence of poisoned palladium catalyst gives Me Me Me H H (a) An optically active compound (c) A racemic mixture (b) An optically inactive compound (d)...
-
1. Based on what you read in this chapter, what would you have suggested Lisa and her team do first with respect to training, particularly in terms of the companys strategy? Why? 2. Have Lisa and the...
-
1) Suppose that Mountville Cable Inc. has a monopoly in the market for cable services in the town of Mountville. The demand function for cable services in Mountville is given by P=1400- 2 10 where P...
-
Recessions occur a. regularly, about every 3 years. b. regularly, about every 7 years. c. regularly, about every 12 years. d. irregularly.
-
Because most loans are written in ________ terms, an unexpected increase in inflation hurts ________. a. real; creditors b. real; debtors c. nominal; creditors d. nominal; debtors
-
In the United States, unionized workers are paid about _____ percent more than similar nonunion workers. a. 2 b. 5 c. 15 d. 40
-
What are the capabilities needed to be a broad adaptive cost leader?
-
In the model of aggregate demand and aggregate supply, the quantity of ________ is on the horizontal axis, and the ________ is on the vertical axis. a. output; interest rate b. output; price level c....
-
8 .Convert the 16-bit signed 2's complement binary number 1001000111111010 to hex. Write answer only :
-
Bonus shares can be issued out of revenue reserves. True/False?
-
Identify and describe the relationship between the strategy formulation process and the strategy implementation process.
-
Identify and briefly describe the purpose and functions of a management system, work process and organization policy.
-
Describe the link between the size of an organization and the formalization process.
Study smarter with the SolutionInn App