1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
SpyIntel [72]
4 years ago
12

What will the following segment of code output if 11 is entered at the keyboard? int number; cin >> number; if (number &gt

; 0) cout << "C++"; else cout << "Soccer"; cout << " is "; cout << "fun" << endl; 1. C++ is fun 2. Soccer is fun 3. C++ 4. C++fun 5. Soccerfun
Computers and Technology
1 answer:
galina1969 [7]4 years ago
5 0

Answer:

1. C++ is fun

Explanation:

Writing the code more clear:

int number;

cin >> number;

if (number > 0)

          cout << "C++";

else

          cout << "Soccer";

cout << " is ";

cout << "fun" << endl;

On the IF line, the conditional expression is evaluated TRUE (11 > 0), so the string "C++" is printed.

Then, the ELSE sentence is not executed since the expression has been already evaluated as TRUE.

Notice there are no additional brackets, so only the line cout << "Soccer"; is considered inside the ELSE.

The two remaining lines are executed always.

The final result is:

C++  is fun

You might be interested in
Which element of the word window is to the right of the screen
sesenic [268]

Answer: task pane

Using the task pane When opened, the task pane will appear on the right side of the Word window. The task pane provides easy access to commonly used menus, buttons, and tools.

Hope this helps....... Stay safe and have a Merry Christmas!!!!!!!!! :D

7 0
3 years ago
Read 2 more answers
Your program has a loop where a user guesses a letter.
baherus [9]

Answer:

This code loop depends on what you are actually using, JavaScript, Python? But it normally the user 'input'. Represented as an 'int' (integer). Also, I don't understand this.

5 0
3 years ago
Read 2 more answers
What do dns servers use to help resolve ip addresses to dns names?
VladimirAG [237]
PTR records. Normal job of DNS is the other way around, ie., dns name to ip address. Pointer records are for reverse DNS.
6 0
4 years ago
Read 2 more answers
Match each term in the second column with its correct definition in the first column. Write the letter of the term on the blank
Thepotemich [5.8K]

Answer:

1. Pie chart.

2. Goal seek.

3. Relative reference cell.

4. Data marker.

5. Chart sheet.

6. What-If-Analysis.

7. Rate = \frac {Amount \; of \; increase}{Base}

8. Order of operations.

9. Formula AutoComplete.

10. Axis.

11. Category axis.

12. Value axis

13. Value \; after \; increase = Base * Percent \; for \; new \; value

Explanation:

Microsoft Excel is a software application or program designed and developed by Microsoft Inc., for analyzing and visualizing spreadsheet documents.

A spreadsheet can be defined as a file or document which comprises of cells in a tabulated format (rows and columns) typically used for formatting, arranging, analyzing, storing, calculating and sorting data on computer systems.

Some of the terminologies and features of the Microsoft Excel software includes the following;

1. Pie chart: a chart that shows the relationship of each part to a whole.

2. Goal seek: a what-if-analysis tool that finds the input needed in one cell to arrive at the desired result in another cell.

3. Relative reference cell: in a formula, the address of a cell based on the relative position of the cell that contains the formula and the cell referred to in the formula.

4. Data marker: a column, bar, area, dot, pie slice, or other symbol in a chart that represents a single data point.

5. Chart sheet: a workbook sheet that contains only a chart.

6. What-If-Analysis: the process of changing the values in cells to see how those changes affect the outcome of formulas in a worksheet.

7. Rate = \frac {Amount \; of \; increase}{Base}: The mathematical formula to calculate a rate of increase.

8. Order of operations: the mathematical rules for performing multiple calculations within a formula.

9. Formula AutoComplete: the excel feature which, after typing - and the first letter of a function, displays a list of function names.

10. Axis: a line that serves as a frame of reference for measurement and that borders the chart plot area.

11. Category axis: the area along the bottom of a chart the identifies the categories of data, also referred to as the x-axis.

12. Value axis: a numerical scale on the left side of a chart that shows the range of numbers for the data points, also referred to as the y-axis.

13. Value \; after \; increase = Base * Percent \; for \; new \; value: the formula for calculating the value after an increase by multiplying the original value the base by the percent for new value.

5 0
4 years ago
The part of the computer that contains the brain
gulaghasi [49]

Answer:

It would either be the motherboard or the CPU.

Explanation:

"The part of the computer that contains the brain" is an odd way to put it. It would either be the motherboard or the CPU. The motherboard helps all the components work as one essentially preforming as one may call it a "brain". However, it can also be said that a CPU is alike in how a brain functions by processing information to other parts of the computer.

6 0
3 years ago
Other questions:
  • Data is physically transmitted from one computer or terminal to another in the ________ layer. physical transport application te
    7·1 answer
  • You've created a letter from a blank document. To format this letter with a unified font, colors, and effects you'll apply a A.g
    6·2 answers
  • A common type of non-volatile memory is _____.
    12·1 answer
  • Write an expression that computes the difference of the variables x and y on Python.
    5·1 answer
  • Lenders always accept applications for credit
    10·1 answer
  • Write Scheme functions to do the following. You are only allowed to use the functions introduced in our lecture notes and the he
    5·1 answer
  • One of the best ways to shoot a picture is to frame the subject in the middle of the screen or viewer. T or F
    14·2 answers
  • NEED HELP ASAP!!!!!!!!!!
    10·2 answers
  • What are the best programming languages of 2020 for beginners?<br>​
    15·2 answers
  • If a web page visitor clears the analytics cookie from their browser, what will occur?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!