D) int a, b, c, sum, avg; a=2; b=4; c=6; sum = a+b+c; avg = a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
D) int a, b, c, sum, avg; a=2; b=4; c=6; sum = a+b+c; avg = a + b + c/3; cout<<"the sum is: "<<sum<<endl; cout<<"the average is: "<<avg<<endl; 7. Write a C++ program to: OUTPUT_ Get 4 integer numbers from the standard input(keyboard) Compute and print the sum and average of inputted numbers. D) int a, b, c, sum, avg; a=2; b=4; c=6; sum = a+b+c; avg = a + b + c/3; cout<<"the sum is: "<<sum<<endl; cout<<"the average is: "<<avg<<endl; 7. Write a C++ program to: OUTPUT_ Get 4 integer numbers from the standard input(keyboard) Compute and print the sum and average of inputted numbers.
Expert Answer:
Answer rating: 100% (QA)
D Output The sum is 12 The average is 4 7C include using namespace std int main and Declare variable... View the full answer
Related Book For
Artificial Intelligence A Modern Approach
ISBN: 9780134610993
4th Edition
Authors: Stuart Russell, Peter Norvig
Posted Date:
Students also viewed these programming questions
-
as at 1 July 2022, Winki company enters into a 10 year lease contract for building. Lease payments are $400,000 per year, starting on 30June 2023 and there is no purchase option or residual value...
-
Emily Jackson (Social Security number 765-12-4326) and James Stewart (Social Security number 466-74-9932) are partners in a partnership that owns and operates a barber shop. The partnership's first...
-
The site http://virtualpiano.net features an online player piano. If you click on the Key Assist menu just above the piano keyboard, and then Keyboard Keys, you will see that each key is labelled...
-
In Exercises find the vertex, focus, and directrix of the parabola, and sketch its graph. x 2 + = 0
-
Explain how the cash flow cycle works.
-
According to Stanford mathematics and statistics professor Persi Diaconis, the probability a flipped coin that starts out heads up will also land heads up is 0.51. Suppose you want to test this. More...
-
Identify each of the costs listed as a through \(h\) as one of the following: (1) prevention cost, (2) appraisal cost, (3) internal failure cost, or (4) external failure cost. a. Reworking a product...
-
Alexander has been accepted as a freshman at a college two hundred miles from his home for the fall semester. Alexanders wealthy uncle, Michael, decides to give Alexander a car for Christmas. In...
-
ABC Co. applies overhead to production on the basis of machine hours, reported the following data for the period just ended: Actual units produced: 13,000 Actual variable overhead incurred: $68,700...
-
a. Given the available capacity in the network, how much gas can be shipped from Katy to Leidy? From Katy to Joliet? b. How much gas should Bruce offer to sell to Joliet and Leidy if he wants to...
-
What is the future value of $1,682.48 deposited for 7 years at an interest rate of 6%?
-
A thin metallic spherical shell of radius 38.1 cm has a total charge of 8.85 C uniformly distributed on it. At the center of the shell is placed a point charge of 3.13 C. What is the magnitude of the...
-
Determine the cash fixed costs which are used when calculating EBDAT: Administrative expenses = $ 1 0 0 , 0 0 0 ; Rent expenses = $ 7 0 , 0 0 0 ; Depreciation expenses = $ 5 0 , 0 0 0 ; and Interest...
-
1. Let f.A B be an R-homomorphism, show that the following are equivalent: a) Kerfis a direct summand of A and Imf is a direct summand of B. b) There is homomorphism g: B A such that f= fgf.
-
Grazioso Salvare Specification Document Overview Grazioso Salvare currently uses dogs as search and rescue animals. They expect to begin training monkeys as search and rescue animals as well. In...
-
You are working as an analyst for a potential investor in a new wind farm. The wind farm will be located in a small electricity market. The market currently has one major generation firm and several...
-
Discuss the implications of hardware transactional memory (HTM) and software transactional memory (STM) techniques on concurrent programming practices, including their benefits for achieving...
-
What are the principal alloying elements in SAE 4340 steel?
-
Define in your own words: (a) Intelligence, (b) Artificial intelligence, (c) Agent, (d) Rationality, (e) Logical reasoning.
-
Examine at least three science-fiction movies in which AI systems threaten to (or actually do) take control. In the movie, does the takeover stem from spooky emergent consciousness or from a poorly...
-
Consider a robot whose operation is described by the following PDDL operators: Op(ACTION:Go(x, y), PRECOND:At(Robot, x), EFFECT:At(Robot, x) At(Robot, y)) Op(ACTION:P ick(o), PRECOND:At(Robot, x) ...
-
Presented below are the consolidated financial statements of The Mann Corporavane, CHECK tion as of year-end 2016 and 2015. Required Using the above financial data, prepare the statement of cash flow...
-
Presented below are cash flow data for L.A. Gear Inc. During this period of time, the manufacturer of athletic shoes and sportswear experienced a 1200 percent growth in net income. Required 1....
-
L.A. Gear, a manufacturer of sports shoes and sportswear, began operations in the early 1980s. By late 1996, however, the company was in bankruptcy. Following are cash flow data for the company for...
Study smarter with the SolutionInn App