Write a C++ program that accepts four numbers from a user and print out the total...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a C++ program that accepts four numbers from a user and print out the total and average of four numbers. Sample output Enter number 1:2 Enter number 29 Enter number 3: 5 Enter number 4: 4 Sample output The total is: 20 The average is: 5 Write a C++ program that accepts four numbers from a user and print out the total and average of four numbers. Sample output Enter number 1:2 Enter number 29 Enter number 3: 5 Enter number 4: 4 Sample output The total is: 20 The average is: 5
Expert Answer:
Answer rating: 100% (QA)
Heres an example of how you could achieve this in C cpp inclu... View the full answer
Related Book For
Posted Date:
Students also viewed these computer network questions
-
CHAPTER 5-Qualitative Research 1. What is the difference between qualitative data and quantitative data? In your discussion, also be sure to provide at least one example of qualitative data and one...
-
What is the output of the following? A. 1223445 B. 2445 C. 22445 D. 223445 E. 2233445 F. None of the above. public class InitOrder { } {System.out.print("1"); } static System.out.print("2"); } public...
-
Compute the Fourier coefficients for the function f (t) = t ( < t < 1).
-
Carnot cycle running on a closed system has 1.5 kg of air. The temperature limits are 300 K and 1000 K, and the pressure limits are 20 kPa and 1900 kPa. Determine (a) The efficiency and (b) The net...
-
Is there a single standard command-line processor to parse and process argv?
-
Kenneth Corporation expects to incur indirect overhead costs of $72,000 per month and direct manufacturing costs of $18 per unit. The expected production activity for the first four months of 2013 is...
-
A seal dives below the ice in search of fish. Its path can be modelled by where d is the depth in decameters and t the time in minutes. Use the equation above to answer questions about the seal's...
-
In the light of this analysis, what strategic options would you advise a Western oil producer such as Shell or BP to consider?
-
Given the Binary problem, return your answer in Hexadecimal. 1) (1.111 x 2^2)+(1.001 x 2^1) 2) (1.10 x 2^-4) - (1.11 x 2-^3) 3) (1.11 x 2^2) x (1.11 x 2^2) 4) (0.0 x 2^3) / (1.101 x 2^-1) Given the...
-
Maria had a problem. The research proposal for her masters research project was due. But she had no idea what to research. Sustainable tourism had been her favourite module on the programme and...
-
Japans prolonged recession during the 1990s forced many changes on financial institutions and the market for corporate control within Japan. List the largest three financial institutions in Japan....
-
Dr. John Kotter: Accelerate! The Evolution of the 21st Century Organization6:07 minutes. https://www.youtube.com/watch? v=Pc7EVXnF2aI In this video, Kotter provides a prescription for how...
-
Two investors are evaluating the stock of Beverly Enterprises for possible purchase. They agree on the stocks risk and on expectations about future dividends. However, one investor plans to hold the...
-
Leah had recently changed employment and was now working in a further education college close to her home. Her main reasons for choosing the college were her assumptions that the job was likely to be...
-
Oxford Manufacturing, Inc. is an audit case designed to introduce you to parts of the audit process. You are asked to assume the role of a veteran of two-to-three busy seasons, in charging for the...
-
A 6-lb shell moving with a velocity ?? v0k explodes at point D into three fragments which hit the vertical wall at the points indicated. Fragments A, B, and C hit the wall 0.010 s, 0.018 s, and 0.012...
-
Suppose that you have bivariate data for an entire population. a. How would you decide whether an association exists between the two variables under consideration? b. Assuming that you make no...
-
Give an example, other than those presented in this section, of a a. Qualitative variable. b. Discrete, quantitative variable. c. Continuous, quantitative variable.
-
The U.S. Census Bureau publishes census data on the resident population of the United States in Current Population Reports. According to that document, 7.3% of male residents are in the age group...
-
Meet with the person you interviewed in mini case 1 and present them with the design prototype you created. Get their feedback on the design. Do they like it? Could they navigate the pages? What...
-
So far, we've researched the viewpoints of leaders in the field of information presentation and human interface design for computer systems. What about experts in other areas? a. Find and interview...
-
On the human factors and human engineering issues in user interface design. The spirt of the discussion is that it is imperative that we understand the people who will be using the system and that we...
Study smarter with the SolutionInn App