Write a program that repeatedly prompts the user to enter 10 integers (positive numbers). For all...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that repeatedly prompts the user to enter 10 integers (positive numbers). For all the nonzero numbers entered, the program counts how many odd numbers, how many even numbers, and determines what is the biggest number, and what is the smallest number, and displays the information. Output 5 7 14 9 2 4 25 72 80 22 There are 4 odd numbers and 6 even numbers entered. The biggest number is 80 and the smallest number is 2 Write a program that repeatedly prompts the user to enter 10 integers (positive numbers). For all the nonzero numbers entered, the program counts how many odd numbers, how many even numbers, and determines what is the biggest number, and what is the smallest number, and displays the information. Output 5 7 14 9 2 4 25 72 80 22 There are 4 odd numbers and 6 even numbers entered. The biggest number is 80 and the smallest number is 2
Expert Answer:
Answer rating: 100% (QA)
include int main int bigNum0 int smallNum0 for i0 i 10 i int num do printf... View the full answer
Related Book For
Introduction To Java Programming And Data Structures Comprehensive Version
ISBN: 9780136520238
12th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these programming questions
-
is K. Give the shortest path using breadth first search (BFS), the initial state a and the goal F B A D J H N K P Q F R M)
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
1- What is the focal length of a converging mirror whose radius of curvature is 20 cm? What is the nature and placement of an image formed by the mirror if an object is 15 cm from the vertex of the...
-
Education is a very important job because it can change and shape people's lives. It gives people the knowledge, skills, and attitudes they need to be successful in their personal and work lives. As...
-
An electric field E and a magnetic field B have the same energy density. (a) Express the ratio E / B in terms of the fundamental constants 0 and 0. (b) Evaluate E / B numerically, and compare your...
-
The following data (in millions) are taken from the financial statements of Target Corporation: ___________________________Recent Year __________Prior Year Revenue ....................................
-
Find the critical value for the ???? = 0.01 level of significance. Exercises 1015 refer to the following data: Anthropologists can estimate the birthrate of an ancient society by studying the age...
-
Target Corporation prepares its financial statements according to U.S. GAAP. Targets financial statements and disclosure notes for the year ended February 3, 2018, are available in Connect. This...
-
Capitalized Lease - Part of FINAL HW assignment Lena Leasing Ltd. Leases excavating equipment that has a list price of $300,000 to Morgan Mining Co. on January 1, 2022. Ownership of the equipment...
-
On January 1, 2023, Doone Corporation acquired 60 percent of the outstanding voting stock of Rockne Company for $300,000 consideration. At the acquisition date, the fair value of the 40 percent...
-
The cash flows from these three investments are as follows: Investment Alternatives End of Year B C 1 $20,000 $20,000 2 20,000 345619 20,000 20,000 20,000 $20,000 6 20,000 100,000 8 20,000 20,000 a....
-
what ways does the integration of unsaturated soil mechanics into geotechnical design affect the analysis of earth structures such as embankments and dams, particularly under varying climatic...
-
A canister containing 8g of helium gas (atomic mass 4.0 u) was used to fill up party balloons. When the canister was full, the pressure in the gas was 3 atmospheres and its temperature was 27 C....
-
1. Research and outline the Lean Method and how it applies to marketing a products. Explain in one fifty words. 2. Outline your understanding of market research and what is should include: Be...
-
The distance from Cape Town to Johannesburg is 1400 kms. The average gas mileage is 10 miles per gallon of petrol fuel. The average cost of petrol per litre is R15,00. Calculate the total cost of...
-
How many hosts could the network support? IP: 192.168.1.2 Subnet mask: 255.255.255.0
-
A) Sketch one or more level sets (your choice of level as long as the set's non-trivial) for each of the following zero-mean Gaussian p.d.f.'s in R: 1. (0,) with = 2. (0,) with = 0 5 3 2) 5
-
Draw two scatterplots, one for which r = 1 and a second for which r = 21.
-
Rewrite Programming Exercise 3.1 to obtain imaginary roots if the determinant is less than 0 using the Complex class in Programming Exercise 13.17. Here are some sample runs: Enter a, b, c: 1 3 1...
-
Write a program to compute the following summation: 1 3 5 7 9. 11 95 97 3 7 9. 11 13 97 99 +
-
Write a Java servlet for Exercise 33.1, as shown in Figure 37.34. Data from Exercise 33.1, Write a server for a client. The client sends loan information (annual interest rate, number of years, and...
-
For each of the following events concerning disclosure of events that took place after year end, discuss the manner in which it should be disclosed in the financial statements or the audit report....
-
Determining whether a subsequent event requires an adjustment to the financial statements is difficult in many circumstances. Discuss the primary difference between subsequent events that require...
-
Each of the following techniques for managing earnings was described in the chapter: - "Big Bath" charges - Write-off of acquired assets - "Cookie Jar" reserves - Abuse of materiality - Questionable...
Study smarter with the SolutionInn App