1 Write a program that calculates and prints the average of several integers. Assume the last...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1 Write a program that calculates and prints the average of several integers. Assume the last value read with scanf is the sentinel 9999. An example input sequence would be: 10 8 11 7 9 9999 Indicating that the average of all the values preceding 9999 is to be calculated. 2 Write a program that uses a loop to calculate and print the sum of the even integers from 2 to 30. 1 Write a program that calculates and prints the average of several integers. Assume the last value read with scanf is the sentinel 9999. An example input sequence would be: 10 8 11 7 9 9999 Indicating that the average of all the values preceding 9999 is to be calculated. 2 Write a program that uses a loop to calculate and print the sum of the even integers from 2 to 30.
Expert Answer:
Answer rating: 100% (QA)
Here are the solutions to both of your tasks Program to calc... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
On January 1 of the current year, the records of Smita Corporation showed the following: Truck (estimated residual value, $9,000) Accumulated depreciation (straight line, two years) $27,000 6,000 On...
-
Mechanical clips are used to close bags and keep things together. Investigate the design of various paper clips, hair clips, and potato chip bag clips. Discuss what you think are important design...
-
6. Determine the sum of the measures of the interior angles of this polygon.
-
Greenback Sporting, a retailer of outdoor wear and sporting equipment, is investigating an opportunity to purchase Active Lifestyle Inc. An acquisition is expected to lower overhead costs, improve...
-
On May 6, 2012, Sterling Corporation signed a contract with Stony Associates under which Stony agreed (1) to construct an office building on land owned by Sterling, (2) to accept responsibility for...
-
Kimble, Sykes, and Gerard open an accounting practice on January 1 , 2 0 2 2 , in Chicago, Illinois, to be operated as a partnership. Kimble and Sykes will serve as the senior partners because of...
-
Water at \(60^{\circ} \mathrm{C}\) and 0.95 bar is evaporating into a \(12.0 \mathrm{~cm}-1\) ong tube (also at \(60^{\circ} \mathrm{C}\) ) and diffusing through a stagnant layer of air. The device...
-
Townside Food Vending operates vending machines in office buildings, the airport, bus stations, colleges, and other businesses and agencies around town and operates vending trucks for building and...
-
n referencing 1920, we find - Any requests for variances shall also be considered requests for viances under ________________. A. Just Variances B. Vessel Variance Act C. Long Shore Act D....
-
1. Assuming Anson decided to charge barrel costs (but not warehousing and aging costs) to inventory, what 2012 income statement and balance sheet items would change, and what would the new amounts...
-
Describe categorical and continuous variables with appropriate summaries (frequency, percent, mean, 5 point summary) and graphics (tables, charts, histograms, box plots) Vitamin C concentrations were...
-
Mr. Lachance wants to invest $50,000 and asks you to help him find the best investment. You have gathered information on the returns of the following two securities. Snarius Probabilits Title A Title...
-
The table shows people's favourite pizza toppings. (a) If a person is selected at random, what is the probability that pepperoni is not his or her favourite topping? (b) Find the probability that a...
-
Your economics textbook hit the market with a bang, selling 10856 copies in its debut year. The publisher is optimistic, forecasting a sales increase of 11% annually for the next 3 years, followed by...
-
Nike corporation earnings per share in 2005 were $4, and its growth rate during the prior 5 years was 9% per year. If that growth rate were maintained, how long would it take for Nike's earnings per...
-
The Funny-Stay Home (FSH) is an Instagram business. It has been lunched just on February 2020 as a result of the COVID 19 crisis. Mona, the owner of the business needs your help and consultation to...
-
Compute and plot the 30-minute average Reynold's stresses (u'w', v'w', u'v) and heat stress (u't', w't) for the entire dataset. The x-axis must be time, and the y-axis must be the stresses. For each...
-
An item of depreciable machinery was acquired on 1 July 2009 for $120,000 by cash It is expected to have a useful life of 10 years and zero salvage value On 1 July 2012, it was decided to revalue the...
-
In Problems 2834, solve each inequality. Express your answer using set notation or interval notation. Graph the solution set. |2x - 5| 9
-
If 3 -x = 2, what does 3 2x equal?
-
In Problems 14, determine the coordinates of the points shown. Tell in which quadrant each point lies. Assume that the coordinates are integers. -6
-
Return on Sales Calculate the company's return on sales for 2019 and compare the result to the industry average. Use the following financial data for Brenner Instruments Sales revenue.. Cost of goods...
-
Return on Assets Calculate the company's return on assets for 2019 and compare the result to the industry average. Use the following financial data for Brenner Instruments Sales revenue.. Cost of...
-
Earnings per Share If the company's most recent price per share of common stock is \(\$ 62.25\), what is the company's price-earnings ratio and dividend yield? Use the following financial data for...
Study smarter with the SolutionInn App