Write a C program that reads ten floating-point numbers. The program should count and print on...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a C program that reads ten floating-point numbers. The program should count and print on the screen total number of positive and negative values among these ten inputs. Output example: Enter integer 1: 51.3 Enter integer 2: -27.6 Enter integer 3: 30.9 Enter integer 4: 16.2 Enter integer 5: 40.8 Enter integer 6: -39.4 Enter integer 7: -6.92 Enter integer 8: -7.32 Enter integer 9: 68.6 Enter integer 10: 9.15 Number of positive: 6 Number of negative: 4 Write a C program that reads ten floating-point numbers. The program should count and print on the screen total number of positive and negative values among these ten inputs. Output example: Enter integer 1: 51.3 Enter integer 2: -27.6 Enter integer 3: 30.9 Enter integer 4: 16.2 Enter integer 5: 40.8 Enter integer 6: -39.4 Enter integer 7: -6.92 Enter integer 8: -7.32 Enter integer 9: 68.6 Enter integer 10: 9.15 Number of positive: 6 Number of negative: 4
Expert Answer:
Posted Date:
Students also viewed these programming questions
-
Goodwin's required return is 12.00000%. Fill in the following chart to determine Goodwin's horizon value at the horizon date (when constant growth begins) and the current intrinsic value. To increase...
-
In this question assume that p and q are atomic formulae. (a) Compare and contrast path formulae and state formulae in temporal logic. [4 marks] (b) Describe and contrast the meanings of F(G p) and...
-
Question: Old MathJax webview Old MathJax webview i need ans of these question but the source is alot Old MathJax webviewOld MathJax webview i need ans of these question but the source is alot these...
-
As the company accountant, the management of Nickle Company asks you to explain (a) the concept of reasonable assurance in internal control and (b) the importance of the human factor in internal...
-
Describe why enterprisers should be familiar with joint ventures and cooperatives.
-
Using the same information as in Problem 16, develop the best policies for a periodic-review system. Thus, Demand (D) = 94 units/week (assume 52 weeks per year) Ordering and setup cost (S) =...
-
Walter Corporation manufactures a fiber optic connector. The variable cost per unit is \($16\). The fixed cost per unit is \($9\). The company's desired ROI per unit is \($3\). Compute the markup...
-
Mountain High Ice Cream Company transferred $60,000 of accounts receivable to the Prudential Bank. The transfer was made with recourse. Prudential remits 90% of the factored amount to Mountain High...
-
A typical income statement for one round-trip of one such flight (flight 482) is as follows: Ticket revenue (180 seats 40% occupancy x $220 ticket price) Variable expenses ($16.00 per person)...
-
XYZ Enterprises is a partnership owned by X, Y and Z. Y decided to retire from the partnership. The partners' capitals are: X-P720,000; Y - P180,000; and Z - P360,000. The partnership profits and...
-
4. Clove oil is frequently used as a natural treatment for a toothache. Assume that your yield from a typical clove oil extraction is 8.2%. How many pounds of cloves would you need to start with in...
-
How has the introduction of decision making tools under uncertainty added to your understanding of financial decision making? What concepts/requirements have proven to be most difficult? What do you...
-
Determine the current price of a share of common stock for the following scenario. The last annual common dividend payment was $1.5. Assume a required rate of return of 15%. There is no dividend...
-
If in the next 3 years, Ani wants to buy a car for Rp. 200,000,000, then how much should Ani deposit into the bank every year at a bank that gives interest of 6% per year from now on
-
In early 2021, a portfolio manager of Johnson & Associates, Mark Johnson, was reviewing his holdings, including his position in Key Corp (KEY). A prominent shareholder had begun liquidating his...
-
1.Was Coles using a 'calm waters' or a 'white-water rapids' approach to organisational change? 2. What external forces continue to create a need for Coles to change?
-
Research corporate acquisitions using Web resources and then answer the following questions: Why do firms purchase other corporations? Do firms pay too much for the acquired corporation? Why do so...
-
Finch & Co. is a six-partner firm of chartered accountants, with an office in the small town of Bulhampton. Since the firm was founded in 1950, it has provided audit, tax and accountancy services to...
-
Name the various components of a measurement system.
-
Kemico Ltd manufactures a variety of chemicals which it supplies in bulk to industrial customers. Its factory at Gritborough employs 50 people, and its annual turnover in 1995 was 7.5M. During 1995,...
Study smarter with the SolutionInn App