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
adelina 88 [10]
4 years ago
10

What will be displayed after the following statements execute? int funny = 7, serious = 15; funny = serious % 2; if (funny != 1)

{ funny = 0; serious = 0; } else if (funny == 2) { funny = 10; serious = 10; } else { funny = 1; serious = 1; } cout << funny << " " << serious << endl;
Computers and Technology
2 answers:
Reika [66]4 years ago
8 0

Answer:

1 1

Explanation:

First we have funny = 7 and serious = 15 .Then after that remainder when serious is divided by 2 is stored in funny that is 1.if condition will be false because funny is equal to 1.else if condition will also be false because it is not 2.So else will be executed and funny =1 and serious =1.

Output=1 1

alina1380 [7]4 years ago
6 0

Answer:

11

Explanation:

your welcome!

You might be interested in
Why does it help to differentiate among self-esteem,self-image, and self value
joja [24]

Evaluation of one’s own worth is termed as self-esteem. Each person will take the defeat and pointed out mistake in different manner. One person may shout if somebody points out mistake and another may handle it with smile. Self-esteem plays the role here.

Self image is an imaginary of picture of how an individual is in their own perspective and how the same person in the view of other person’s perspective. This is one of the important traits of the people.

Self-value: Setting a value of one self, analyzing various situations and facts and stamping the seal as either “good” or “bad” is called self-value.

8 0
3 years ago
Read 2 more answers
The documents created in ms-excel is call what?​
rosijanka [135]

Answer:

It is called a Spreadsheet

5 0
3 years ago
Read 2 more answers
What is the best definition of inflation?
MakcuM [25]
I mean there’s 2 definitions for it

Inflation is a situation of rising prices in the economy. A more exact definition of inflation is a sustained increase in the general price level in an economy. Inflation means an increase in the cost of living as the price of goods and services rise.


Or inflation can be growing the size (blowing up a balloon)
5 0
3 years ago
Write an if/else statement that compares the variable age with 65, adds 1 to the variable seniorCitizens if age is greater than
Oduvanchick [21]

if age >= 65:

seniorCitizens = seniorCitizens + 1

else:

nonSeniors = nonSeniors + 1

6 0
3 years ago
Jorge wanted to find out how many 9-volt batteries connected in a series are required to create a 120-volt circuit. So, he divid
natta225 [31]

Answer:

Jorge would need over 13\frac{1}{3} number of 9 volts battery to create 120 volts.

Explanation:

A series connecting is one in which two or more batteries are connected terminal-to-terminal, so that the same current flow through each battery. Each battery has an internal resistance, r, which is the opposition to the flow of current by the battery itself.

The total emf, E, of a given number of cells connected in series is given by;

E = E_{1} + E_{2} + E_{3} + E_{4} + .........

And each of the cell has an internal resistance, r. So that the total internal resistance of the cells in series is;

r = r_{1} + r_{2} + r_{3} + r_{4} + .......

Thus, Jorge's mistake was that 13\frac{1}{3} number of 9 volts batteries would not give 120 volts because each battery has its internal resistance. Therefore the appropriate answer is that he would need over 13\frac{1}{3} number of 9 volts battery to create 120 volts.

5 0
3 years ago
Other questions:
  • People in STEM careers are considered thinkers who reach conclusions through sound judgment and reasoning.
    11·1 answer
  • What file may contain data written to it in case of an unexpected error or program shut-down?
    5·1 answer
  • File-sharing programs such as Napster, Kazaa, and iMesh make it possible for individuals to exchange music files over the Intern
    7·1 answer
  • It is possible to play older console games such as those written for the nintendo game boy or sega genesis on a personal compute
    6·1 answer
  • When classified data is sent over an unclassified network, what is this incident called?
    5·1 answer
  • There are some network modeling tools that can ________ the existing network.
    12·2 answers
  • What’s cloud-based LinkedIn automation?
    14·1 answer
  • Explain the working principal of computer system with suitable diagarm​
    10·2 answers
  • Write a single instruction that inverts bits 5 and 6 in the bl register
    11·1 answer
  • Input a list of employee names and salaries and store them in parallel arrays. End the input with a sentinel value. The salaries
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!