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
Marina86 [1]
2 years ago
11

13. A 2-sided coin has an equal likelihood of landing on each side. One side is called "heads" and the other is called "tails".

The program below simulates randomly
flipping that coin many times,
var heads -
var tails - ;
var rolls - 100;
for(var i=0; i
if(randonlumber(0,1) - )
heads
} else
tails
Which of the following is NOT a possible combination of values of the variables in this program when it finishes running?
O A. tails has a value of O and heads has a value of 100
B. tails has a value of 100 and heads has a value of O
0 C.tails has a value of 20 and heads has a value of 20
O D. tails has a value of 50 and heads has a value of 50
Computers and Technology
1 answer:
serious [3.7K]2 years ago
7 0

Answer: c

Explanation:

only reasonable answer

You might be interested in
A _____ page is an unchanging page retrieved from a file on a Web server. a. static b. customized c. dynamic d. personalized
Naily [24]

Answer:

A. Static

Explanation:

Static page (also known as flat page or stationary page) is a web page that is delivered to the user's browser exactly as it was stored. They are web pages that contains fixed content. It is the easiest and most basic type of website. It is an unchanged page retrieved from a file on a web server. It is in direct contrast with dynamic websites that do not require any web programming or data base design.

6 0
3 years ago
Galleons, Sickles, and Knuts are types of coinage from the Harry Potter franchise. Write source code in C++ that converts the nu
olga2289 [7]

Answer:

The c++ program for the given scenario is given below.

#include <iostream>

using namespace std;

int main() {

   double galleons, knuts;    

   cout << " This program converts Galleons to Knuts " << endl;

   cout << " Enter the number of galleons to be converted into knuts: " << endl;

   cin >> galleons;    

   knuts = galleons * 493;    

   cout << galleons << " Galleons is equivalent to " << knuts << " Knuts. " << endl;

   return 0;

}

OUTPUT

For decimal value.

This program converts Galleons to Knuts  

Enter the number of galleons to be converted into knuts:  

1.1

1.1 Galleons is equivalent to 542.3 Knuts.  

For integer value.

This program converts Galleons to Knuts  

Enter the number of galleons to be converted into knuts:  

2

2 Galleons is equivalent to 986 Knuts.

Explanation:

This program uses two variables to holds galleons and knuts which are declared with data type double.

 double galleons, knuts;

The data type double is taken since it can hold both integer and decimal values.

The variables are not initialized since the program is supposed to take user input for the number of galleons to be converted to knuts as shown below.

The cout keyword is used to print to the standard output.

 cout << " Enter the number of galleons to be converted into knuts: " << endl;

The cin keyword is used to take the input from the user.

 cin >> galleons;

Galleons are converted into knuts using the conversion rate given in the question. The formula to convert galleons into knuts is given as follows.

  knuts = galleons * 493;

The entered number of galleons and the corresponding number of knuts are displayed to the standard output.

  cout << galleons << " Galleons is equivalent to " << knuts << " Knuts. " << endl;

In the program, endl keyword is used to insert new line.

The program terminates with the following statement since the return type of main is shown as integer.

 return 0;

4 0
3 years ago
How can you make sure to save all annotations from a slide show?
valentinak56 [21]

Answer:

The answer is A.

Explanation:

I just did this question on Edge2021.

7 0
2 years ago
Read 2 more answers
A software engineer with a detail oriented personality has the patience and aptitude for
AnnZ [28]

Answer is: looking through many lines of code for errors that cause bugs



Explanation:

A software engineer with a detail oriented personality has the patience and aptitude for  looking through many lines of code for errors that cause bugs


Because software writes many lines of code for developing different application so he has to go through through many lines of code for errors that causes a bug or errors.

I hope you got the idea and answer thanks.

5 0
3 years ago
Why do computer have Histrorys?
RideAnS [48]
So you know what people are doing so they can be safe at all times
7 0
3 years ago
Read 2 more answers
Other questions:
  • Is techonology better? Lot of votes needed.
    5·1 answer
  • To change a selected shape’s height or width to a specific value, type the value in the Height or Width text boxes on the
    14·1 answer
  • Which is a description of phishing?
    7·1 answer
  • Which most properly uses the SUM function to sum the values in cells A1 through A4?
    5·2 answers
  • (tco 7) the asp.net ajax client-side framework is loaded on the _____ for an asp.net web application.
    15·1 answer
  • The birthday problem is as follows: given a group of n people in a room, what is the probability that two or more of them have t
    12·1 answer
  • Write a Python program that inputs an integer between 0 and 1000 and adds all the digits in the integer. For example, if integer
    6·1 answer
  • Binary search takes a list of information and divides the list into two parts, one is divided and one is kept.
    15·1 answer
  • Help me with the question please..​
    6·1 answer
  • WILL GIVE A BRAINLIEST!!! PLS HELP!!!
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!