Write a complete c++ program to read integers using repetition control structure until the user terminates...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a complete c++ program to read integers using repetition control structure until the user terminates the program by entering zero, then do the following: 1. Print the total number of positive numbers. 2. Print the total number of negative numbers. 3. Print the largest number in them. For Example 1: For Example 2: Enter 0 to stop the program or any integer to continue: Enter 0 to stop the program or any integer to continue: -15 44 -60 7 -25 -3 -8 -400 -80 -10 0 the total number of positive numbers: 0 the total number of negative numbers: 7 the largest number: -8 200 -6 0 the total number of positive numbers: 3 the total number of negative numbers: 2 the largest number: 200 Activat Go to get Write a complete c++ program to read integers using repetition control structure until the user terminates the program by entering zero, then do the following: 1. Print the total number of positive numbers. 2. Print the total number of negative numbers. 3. Print the largest number in them. For Example 1: For Example 2: Enter 0 to stop the program or any integer to continue: Enter 0 to stop the program or any integer to continue: -15 44 -60 7 -25 -3 -8 -400 -80 -10 0 the total number of positive numbers: 0 the total number of negative numbers: 7 the largest number: -8 200 -6 0 the total number of positive numbers: 3 the total number of negative numbers: 2 the largest number: 200 Activat Go to get
Expert Answer:
Answer rating: 100% (QA)
The image contains instructions for writing a C program along with two examples of program input and ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Find reactions of support 1,2 and 3 F=10KN, a=2m, ?a=60 (45%) F 2a
-
Gwen is a tax accountant who works very hard for a large corporate client. The client is pleased and gives her a gift of $10,000 at year-end. How much of the gift is taxable to Gwen?
-
The REA data model used to design AID databases does not contain information about a. Resources b. Agents c. Technical infrastructure
-
From calculus, one obtains the following formula (Leibnitz rule) for the time derivative of an integral that contains time in both the integrand and the limits of the integration: \[ \frac{d}{d t}...
-
John Ingles has provided you with the following information related to his various investment holdings as of December 31, 2012. Interest earned on joint bank account with his spouse (spouse...
-
Explain the systematic process of continuous improvement What is a training needs analysis and how are they used? How can you present improvements to the work team and management? What is quality and...
-
The trial balance of Rosiak Fashion Center contained the following accounts at November 30, the end of the companys fiscal year. Adjustment data: 1. Supplies on hand totaled 2,100. 2. Depreciation is...
-
Gross income is defined as "all income from whatever source derived." Why do we exclude unrealized gains, such as the increased value in your home before it sold, in gross income? Also discuss the...
-
A firm expects to have earnings before depreciation and taxes of $150,000 in each of the next four years. There are no interest payments and taxes are at a rate of 40%. The firm is considering the...
-
As part of his relocation package back to Singapore, Benson was granted the option to purchase 20,000 shares in PPI at $13.50 per share. On 16 July 2021, he exercised the option and bought 10,000...
-
How are cinematic effects such as camera distance, camera angle, lighting, sound, editing, props and setting used to create atmosphere, character and theme in this sample from Hitchcock's classic...
-
Identification of stereotypes others may have about you based on the cultural identities. Discussion of whether or not these stereotypes are generally accurate, and how you clarify inaccurate...
-
Boring Company sells its product for $50. In addition, it has a variable cost ratio of 45 percent and total fixed costs of $6,875. What is the break-even point in units for Boring Company?
-
BACKGROUND The company, North S.L., has the following information in the Balance Sheet and Profit and Loss Account for 2016, before calculating its Corporate Tax: BALANCE SHEET ASSETS LIABILITIES...
-
In Exercises 1558, find each product. (9 - 5x) 2
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-7. Ivan sold the following securities during the year and received a Form 1099-B that...
-
Robert Ramos (age 36) is a single taxpayer, living at 8765 Bay Dr., Monterey, CA 93940. His Social Security number is 976-23-5132. Robert's earnings and income tax withholding as the manager of a...
-
Kent Pham, CPA, is a 45-year-old single taxpayer living at 169 Trendie Street, La Jolla, CA 92037. His Social Security number is 865-68-9635. In 2012, Kent's W-2 as the controller of a local...
-
The tube is subjected to a torque of 750 N. m. Determine the amount of this torque that is resisted by the gray shaded section. Solve the problem two ways: (a) by using the torsion formula, (b) by...
-
The solid shaft has a diameter of 0.75 in. If it is subjected to the torques shown, determine the maximum shear stress developed in regions BC and DE of the shaft. The bearings at A and F allow free...
-
The solid shaft has a diameter of 0.75 in. If it is subjected to the torques shown, determine the maximum shear stress developed in regions CD and EF of the shaft. The bearings at A and F allow free...
Study smarter with the SolutionInn App