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
-
At the instant it leaves the player's hand after a jump shot, a 0.62-kg basketball is traveling 8.4 m/s. When it passes through the hoop its speed is 6.8 m/s. (a) How much work has gravity done on...
-
Multiple-Concept Example 9 reviews the concepts that are important to this problem. A light bulb is wired in series with a 144- resistor, and they are connected across a 120.0-V source. The power...
-
On September 14, 2010, C & T Machinery, Inc., sold $2,300 of inventory (cost is $1,350) on account to one of its customers. The terms were 1/10, n/30, FOB destination. On September 16, C & T...
-
Network Solutions just introduced a new, fully automated manufacturing plant that produces 2,000 wireless routers per day with materials costs of $50 per router and no other costs. The average number...
-
E8-11 (Algo) Calculating Cash Receipts [LO 8-4] Shadee Corporation expects to sell 630 sun shades in May and 310 in June. Each shades sells for $14. Shadee's beginning and ending finished goods...
-
The file P02_07.xlsx includes data on 204 employees at the (fictional) company Beta Technologies. For this problem, consider this data set as the population frame. a. Using the method in this section...
-
These are all cases where someone synthesizes brings material from two or more sources in order to new information or to support a new . When you do research, you need to go beyond what your sources...
-
jerrys gifts has a new project with an initial cost of 340,000 that is expected to generate cash flows of 39k for 6 years and cash flows of 50k for the following 4 years if the required return is 8%...
-
What is the accumulated sum of the following stream of payments? $18,143 every year at the beginning of the year for 7 years, at 3.84 percent, compounded annually. what are all the excel formulas i...
-
In order to understand the impact of climate change, a scientist collected measurements of average yearly sea surface temperatures from 1880 to 2012. His data is graphed below. What hypothesis might...
-
Spanish Peaks Railroad Inc. is considering acquiring equipment at a cost of $230,000. The equipment has an estimated life of 10 years and no residual value. It is expected to provide yearly net cash...
-
You have just received a windfall from an investment you made in a friend's business. She will be paying you $49,725 at the end of this year, $99,450 at the end of next year, and $149,175 at the end...
-
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) ...
-
Is the color of a smartphone nominal or ordinal?
-
A pollster wants to estimate the proportion of voters in a certain town who are Democrats. He goes to a large shopping mall and approaches people to ask whether they are Democrats. Is this a simple...
-
Provide an example of a qualitative variable and an example of a quantitative variable.
Study smarter with the SolutionInn App