Create a java program that asks for 10 integer numbers. The program then counts how many...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a java 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 java 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)
Here is the Java code with the comments to explain the code impo... View the full answer
Posted Date:
Students also viewed these programming questions
-
Create a Java program that prints out this kind of figure using asterisks. *** **** ****** ** ** *** **** *** **
-
Create a Java program that prints out this kind of figure using asterisks. ********** ********** ********** ********** ********** ********** **********
-
Create a Java program that prints out this kind of figure using asterisks. ********** * * * * * * * **********
-
58. HarperMotors sells 40 cars per month at an average price of $25,000. Thecarrying cost per car is $160 and the fixed order cost is $695. Howmany orders should the company place per year? 2 answers
-
An American Automobile Association (AAA) study investigated the question of whether a man or a woman was more likely to stop and ask for directions (AAA, January 2006). The situation referred to in...
-
Following is a partial list of account balances for two different merchandising companies. The amounts in the accounts represent the balances at the end of the year before any adjustments are made or...
-
Draw an \(x y z\) coordinate system with the \(x\) axis pointing horizontally to the right, the \(y\) axis pointing up the page, and the \(z\) axis pointing out of the page. Show a current-carrying...
-
Mayaguez Corporation provides its officers with bonuses based on net income. For 2010, the bonuses total $350,000 and are paid on February 15, 2011. Prepare Mayaguezs December 31, 2010, adjusting...
-
11. The current in a metallic conductor is plotted against voltage at two different temperatures T and T2. Which is correct :- Current 2 (1) T Voltage (2) T
-
RZNY, LP., is a calendar-year, cash-basis limited partnership. Marc Liu, an individual, owns a 55% interest in RZNY as a general partner. During Year 1, RZNY had the following results: 1. Sales -...
-
Read the tread lightly through these accounting minefields case study. This case addresses the different ways that companies choose to deal with the pressure created by an ever-changing economic...
-
What are the different types of organizational plans? Are they independent of each other?
-
What are the characteristics of a multi-domestic corporation?
-
Job stress is a major problem for employees working in many organizations today. Discuss some of the job stressors. What can a manager do to reduce stressors for employees?
-
A coworker takes credit for the excellent job youve performed. Frustrating! Its probably happened to you or someone you know. How did it happen? Perhaps you shared an idea with a coworker and then...
-
Mintzberg suggests that managerial roles should encompass interpersonal, decisional, and informational roles. Clearly, this is an idealized vision of the manager. They are encouraged to encompass all...
-
Choose the three functions of a WAN Edge router. ( ( Choose three. ) ) Deploys centralized control plane policies, such as service chaining, multitopology, and shared services. Establishes secure...
-
(a) Given a mean free path = 0.4 nm and a mean speed vav = 1.17 105 m/s for the current flow in copper at a temperature of 300 K, calculate the classical value for the resistivity of copper. (b)...
-
Novo Nordisk is a Denmark-based biopharmaceutical company with a focus on diabetes drugs. The company provides detailed disclosure of revenue along geographic, business segment, and product lines....
-
Use the data in Example 1 on Novo Nordisk to answer the following questions: i. Xiaoping Wu is an equity analyst covering European pharmaceutical companies for his clients in China. Wu projects that...
-
Walgreens and Rite Aid are two of the largest retail drugstore chains in the United States. For both companies, around two-thirds of their sales are from prescription pharmaceuticals, with the...
Study smarter with the SolutionInn App