Which of the following is NOT a possible combination of values of the variables in this program when it finishes running?

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
C. tails has a value of 20 and heads has a value of 20
D. tails has a value of 50 and heads has a value of 50

Answers

Answer 1

Answer:

Definitely D

Explanation:

When you flip a coin it’s a 50/50 chance. Meaning it’s equal.

Answer 2

Given that they are familiar with what the tails have a value of 50 variables stand for and heads have a value of 50, programmers will find it simpler to read and comprehend the code, hence option D is correct.

What is a combination of values of the variables?

Almost all programming languages use a similar technique for saving values in variables: we place the variable name on the left side of the equal sign (=), and the value we wish to store on the right.

Print the variables in reverse order in addition to the entered order by typing the variables backward.

In addition to printing the sequence in reverse, print the double's int casting value by placing (int) before the variable name, tails has a value of 50 and heads has a value of 50, hence option D is correct.

Learn more about variables, here:

https://brainly.com/question/18090442

#SPJ6


Related Questions

When identifying who will send a presentation, what are the two types of audiences?

Answers

Answer:

Explanation:Demographic audience analysis focuses on group memberships of audience members. Another element of audience is psychographic information, which focuses on audience attitudes, beliefs, and values. Situational analysis of the occasion, physical setting, and other factors are also critical to effective audience analysis.

Do my Twitter posts count as opinions or facts?

Answers

They count as opinions

2. A rectangular water tank is being filled at the
constant rate of 10lt/s. The base of the tank has
width, w= 10m and length, 1 = 15m. If the volume
of the tank is given by V = wxlxh where h repre-
sents the height of the tank, what is the rate of
change of the height of water in the tank?.​

Answers

Answer:

Explanation:

1 [tex]meter^{3}[/tex] = 1000 liters

150 meter base

150 * 1000 = 150,000 liters to go up one meter

150,000 / 10 liters per second = 15,000 seconds to go up one meter

or

6 [tex]\frac{2}{3}[/tex] * [tex]10^{-7}[/tex] meters  [tex]sec^{-1}[/tex]   :/   not too much huh

How to do a row of circles on python , with the commands , picture is with it .

Answers

Answer:

o.o

Explanation:

In the formula =C5*$B$3, C5 is what type of cell reference?

relative
absolute
mixed
obscure

Answers

Answer:

relative

Explanation:

i just got a 100 and it says its right on odsyware

Write a short note on the topic ,' My Brother'.​

Answers

Answer:

I have an older brother whose name is Michael.

He is two years older than me and studies in Class 3.

My brother has a round face with black hair and brown eyes.

He is very caring, loving and outgoing by nature.

He takes care of me, whenever my parents are not at home.

He shares his toys with me, whenever we are playing indoors.

My brother is a well-mannered boy who is loved by everyone.

He is very good in his studies and helps me in my studies too.

He is very sincere and intelligent and never misses his school.

I love my brother and always pray to God to help us maintain a strong bond forever.

Explanation:

Answer:

Explanation:

To begin with, a brother is an important member of the family because he loves his siblings like a father, cares like a mother and sometimes annoys his sister(s). Sibling relationships usually tend to be emotionally powerful. Therefore, building a strong brother-sister relationship is important not only in childhood, but for the entire lifetime. Siblings learn social skills from each other like negotiating power and managing conflicts among themselves.

In which link-building opportunity are you directly competing with another website in a ""win-win"" situation

Answers

Answer:

I'm kind of sorta am now with aboutblank.com but it doesn't matter now

Explanation:

//Precondition: pLeft is the address of a MY_STRING handle // containing a valid MY_STRING object address OR NULL. // The value of Right must be the handle of a valid MY_STRING object //Postcondition: On Success pLeft will contain the address of a handle // to a valid MY_STRING object that is a deep copy of the object indicated // by Right. If the value of the handle at the address indicated by // pLeft is originally NULL then the function will attempt to initialize // a new object that is a deep copy of the object indicated by Right, // otherwise the object indicated by the handle at the address pLeft will // attempt to resize to hold the data in Right. On failure pLeft will be // left as NULL and any memory that may have been used by a potential // object indicated by pLeft will be returned to the freestore. void my_string_assignment(Item* pLeft, Item Right);

Answers

Answer:this is an answer i dont know :

Explanation:

Sheeeeeesssssssshhhhhhhhhhhh

Ryan has a new Android tablet that does great voice dictation, but he keeps "fat-fingering" the built-in, on-screen keyboard. What device could increase his accuracy and cut down on his typos? *

Answers

Answer:

A tablet keyboard

Explanation:

This would be the device used

Use the drop-down tool to select the word or phrase that completes each sentence.

The manipulation of data files on a computer using a file browser is
.

A
is a computer program that allows a user to manipulate files.

A
is anything that puts computer information at risk.

Errors, flaws, mistakes, failures, or problems in a software program are called
.

Software programs that can spread from one computer to another are called
.

Answers

Answer:

file management file manager security threat bugs virus

Explanation:

Write a loop to print 56 to 70 inclusive (this means it should include both the 56 and 70). The output should all be written out on the same line.

Sample Run
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70

Answers

for i in range(56,71):
print(i, end = “ “)

match the cell reference to its definition

Answers

Answer:

which cell reference:-|

Answer:

absolute reference: the cell remains constant when copied or moved.

mixed reference: the cell has a combination of two other types of cell references.

relative reference: the cell changed based on the position of rows and columns.

1) Create a method Sum to include a FOR loop. Get a scanner and input a number form the keyboard in main(). The method will take one parameter and calculate the sum up to that number. For example, if you pass 5, it it will calculate 1+2+3+4+5 and will return it back to main() method. Main method should call the method, get the sum back, and print a sum. You call the method from main() and get the result back to main() 2) Create another method: Factorial that calculates a Product of same numbers, that Sum does for summing them up. Make sure you use FOR loop in it. 3) Make a switch that Calls either sum(...) method OR factorial(...) method, depending on what user of the program wants. Ask the user to enter a selection, after the number is entered, such as "do sum" or "do factorial", read it with the Scanner next(), then call the appropriate method in a switch.

Answers

Answer:

Explanation:

The following Java code creates both methods using a for loop. Asks the user for the value and choice of method within the main() and uses a switch statement to call the correct method.

import java.util.Scanner;

class Brainly {

   static Scanner in = new Scanner(System.in);

   public static void main(String[] args) {

      System.out.println("Enter a value: ");

      int userValue = in.nextInt();

      System.out.println("Enter a Choice: \ns = do Sum\nf = do Factorial");

      String choice = in.next();

      switch (choice.charAt(0)) {

          case 's': System.out.println("Sum of up to this number is: " + sum(userValue));

              break;

          case 'f': System.out.println("Factorial of up to this number is: " + factorial(userValue));

              break;

          default: System.out.println("Unavailable Choice");

      }

   }

   public static int sum(int userValue) {

       int sum = 0;

       for (int x = 1; x <= userValue; x++) {

           sum += x;

       }

       return sum;

   }

   public static int factorial(int userValue) {

       int factorial = 1;

       for (int x = 1; x <= userValue; x++) {

           factorial *= x;

       }

       return factorial;

   }

}

What are the important points
concerning critical thinking?
(Select all that apply.)
You must evaluate information.
You should use your feelings.
You need to practice the right skills
You need to be well-spoken
You can learn it quickly
You need to use logic and reason
You need to be unbiased and unemotional

Answers

Answer:

You must evaluate information

Explanation:

The first step to thinking critically is to accept information only after evaluating it. Whether it's something read or heard, critical thinkers strive to find the objective truth. In doing this, these employees evaluate by considering possible challenges and solutions. This process of vetting new information and considering outcomes is called evaluation.

First, open two separate terminal connections to the same machine, so that you can easily run something in one window and the other. Now, in one window, run vmstat 1, which shows statistics about machine usage every second. Read the man page, the associated README, and any other information you need so that you can understand its output. Leave this window running vmstat for the rest of the exercises below. Now, we will run the program mem.c but with very little memory usage. This can be accomplished by typing ./mem 1 (which uses only 1 MB of memory). How do the CPU usage statistics change when running mem

Answers

dnt listen to da file shi

Which of the following statements is true?

Group of answer choices

A.Only products made from plastic damage the environment

B.Products mostly of metal do the most damage to the environment

C.All products have some effect on the environment

D.Reducing the enciroment impact of products can be both dangerous and frustrating for users

Answers

Answer:

It due to the dirt subsatnces that get wired polluted and the chloroflurocarbons that destroy the ozone layer

Explanation:

Given two integers as user inputs that represent the number of drinks to buy and the number of bottles to restock, create a VendingMachine object that performs the following operations:

Purchases input number of drinks Restocks input number of bottles.
Reports inventory Review the definition of "VendingMachine.cpp" by clicking on the orange arrow.
A VendingMachine's initial inventory is 20 drinks.

Ex: If the input is: 5 2
the output is: Inventory: 17 bottles

Answers

Answer:

In C++:

#include <iostream>

using namespace std;

class VendingMachine {

 public:

   int initial = 20;};

int main() {

 VendingMachine myMachine;

   int purchase, restock;

   cout<<"Purchase: ";  cin>>purchase;

   cout<<"Restock: ";  cin>>restock;

   myMachine.initial-=(purchase-restock);

   cout << "Inventory: "<<myMachine.initial<<" bottles";  

   return 0;}

Explanation:

This question is incomplete, as the original source file is not given; so, I write another from scratch.

This creates the VendingMachine class

class VendingMachine {

This represents the access specifier

 public:

This initializes the inventory to 20

   int initial = 20;};

The main begins here

int main() {

This creates the object of the VendingMachine class

 VendingMachine myMachine;

This declares the purchase and the restock

   int purchase, restock;

This gets input for purchase

   cout<<"Purchase: ";  cin>>purchase;

This gets input for restock

   cout<<"Restock: ";  cin>>restock;

This calculates the new inventory

   myMachine.initial-=(purchase-restock);

This prints the new inventory

   cout << "Inventory: "<<myMachine.initial<<" bottles";  

   return 0;}

Hi guys, I am in need of help. I have an HTML assignment due today at 11:59 PM and I have to work with video and animation. I am having trouble with working on keyframes because when I run my program, my video remains the same size. I do not know what I am doing wrong. I have attached a picture of my code. Please help me ASAP.

Answers

Answer:

Nothing much is wrong

Explanation:

Nothing much is wrong with it but then again I'm a full on computer geek, I assume you need to go back and re-read it and edit whatever you feel is wrong or incorrect it's like a gut feeling and you will have doubts on certain parts of what you are doing

What vieo editor is best for beginner? I have heard that TunesKit Acemovi and Adobe Premier is good, but i'm not sure wich one is better for me.I just use the video editor to organize my photo and vlog snippets. Can you tell me more about them? Thanks.

Answers

Answer:

Depends on what system you are on. I think Apple has a lot of decent free editing software for their devices, but on windows you are limited to windows movie maker... or paying for adobe or Sony Vegas (if people still use that...). Don't know anything about TunesKit Acemovi.

is pseudocode obtained from Algorithm or is Algorithm obtained from pseudocode?

Answers

Answer:

An algorithm is defined as a well-defined sequence of steps that provides a solution for a given problem, whereas a pseudocode is one of the methods that can be used to represent an algorithm.

hope this gives you at least an idea of the answer:)

You have been given an encrypted copy of the Final exam study guide here, but how do you decrypt and read it???

Along with the encrypted copy, some mysterious person has also given you the following documents:

helloworld.txt -- Maybe this file decrypts to say "Hello world!". Hmmm.

hints.txt -- Seems important.

In a file called pa11.py write a method called decode(inputfile,outputfile). Decode should take two parameters - both of which are strings. The first should be the name of an encoded file (either helloworld.txt or superdupertopsecretstudyguide.txt or yet another file that I might use to test your code). The second should be the name of a file that you will use as an output file. For example:

decode("superDuperTopSecretStudyGuide.txt" , "translatedguide.txt")

Your method should read in the contents of the inputfile and, using the scheme described in the hints.txt file above, decode the hidden message, writing to the outputfile as it goes (or all at once when it is done depending on what you decide to use).

Hint: The penny math lecture is here.

Another hint: Don't forget about while loops...

Mac hint: use encoding="utf-8" in your file open functions, like this:

Mac hint: use encoding="ascii" in your file open functions, like this:

fin = open(input_file,"r",encoding="ascii")

Answers

Answer:

You use a decoder

Explanation:

You can find one on an internet browser

What does running the “sudo” command do?
Restarts the computer
Saves files permanently to the desktop
Elevates rights to what you can access
Opens a different directory

Answers

Answer:

Elevates rights to what you can access

Write a superclass encapsulating a rectangle. A rectangle has two attributes representing the width and the height of the rectangle. It has methods returning the perimeter and the area of the rectangle. This class has a subclass, encapsulating a parallelepiped, or box. A parallelepiped has a rectangle as its base, and another attribute, its length; it has two methods that calculate and return its area and volume. You also need to include a client class to test these two classes.

Answers

That’s how you do it times the box and the rectangle to have a parallelepiped

In this lab you will learn about the concept of Normal Forms for refining your database design. You will then apply the normalization rules: 1NF, 2NF and 3NF to enhance your database design. Lab Steps: Read about the Normal Forms in your textbook, chapter 14, pages 474 to 483. Check the learning materials on Normal Forms under the Learning Materials folder of Week 5. Apply the Normalization rules to your database design. Describe in words how 1NF, 2NF and 3NF apply to your design/database schema. Apply all the modifications that you made due to applying NF rules to your actual database in the DBMS (MS SQL Server). Put your explanation for how 1NF, 2NF and 3NF apply to your database in a Word document OR PowerPoint presentation.

Answers

Answer:

I don't know

Explanation:

is about knowing how to make use of the refinery

What does the CPU do in a modern computing device?

Enables the user to encrypt data
Enables the user to store data
Performs data computation
Provides electricity

Answers

Answer:  it connects to the power supply to run the pc

Explanation: your welcome

With the aid of a diagram,explain CDMA spread spectrum

Answers

Answer: This is when the input- source coding- modulation

output- source decoding- channel- demodulation

Explanation:

What is the size of type int on 64 bit system

(1/1 Point)


4 byte


8 byte


16 byte


None of the given

Answers

The answer is none of the given

Do the same exercise but this time use the value returning function. Here is the skeleton of the main function. Write functions definition according to the function call. Note: Do not change the main(). Copy it as it is. Must define the function after the main(). Make sure you write the function prototype before main(). // function prototype.

Answers

Answer:

The function prototypes are as follows:

int findSum(int fn, int sn, int tn);

int findMin(int fn, int sn, int tn);

int findMax(int fn, int sn, int tn);

The functions are as follows:

int findSum(int fn, int sn, int tn){

   return fn+sn+tn;}

int findMin(int fn, int sn, int tn){

   int min = fn;

   if(sn<=min && sn<=tn){

       min = sn;    }

   if(tn <= min && tn <= sn){

       min = tn;    }

   return min;}

int findMax(int fn, int sn, int tn){

   int max = fn;

   if(sn>=max && sn>=tn){

       max = sn;    }

   if(tn>=max && tn>=sn){

       max = tn;    }

   return max;}

Explanation:

Given

See attachment 1 for the main function

Required

Write the following functions

findSumfind MinfindMax.

The following represents the function prototypes

int findSum(int fn, int sn, int tn);

int findMin(int fn, int sn, int tn);

int findMax(int fn, int sn, int tn);

This declares the findSum function

int findSum(int fn, int sn, int tn){

This returns the sum of the three numbers

   return fn+sn+tn;}

This declares the findMin function

int findMin(int fn, int sn, int tn){

This initialzes min (i.e. minumum) to fn

   int min = fn;

This checks if sn is the minimum

   if(sn<=min && sn<=tn){

       min = sn;    }

This checks if tn is the minimum

   if(tn <= min && tn <= sn){

       min = tn;    }

This returns the minimum of the three numbers

   return min;}

This declares the findMax function

int findMax(int fn, int sn, int tn){

This initialzes max (i.e. maximum) to fn

   int max = fn;

This checks if sn is the maximum

   if(sn>=max && sn>=tn){

       max = sn;    }

This checks if tn is the maximum

   if(tn>=max && tn>=sn){

       max = tn;    }

This returns the maximum of the three numbers

   return max;}

See cpp attachment for complete program which includes the main

which of the following is equivalent to (p>=q)?
i) P q iv) !p Where are genius people?:)

Answers

Answer:

Explanation:

This is unsolvable if you have no variable substitutes


p -> q

Took the test !

Which symbol is used for an assignment statement in a flowchart?

Answers

Equal symbol

equal symbol

Within most programming languages the symbol used for assignment is the equal symbol.

Other Questions
According to the attribution theory of leadership, leadership is characterized by ________. A. the impact of substitutes and neutralizers in enhancing the role of the leader B. the division of the group into ingroup and out-group members based on the leader's preference C. the focus on the actual accomplishments and performance of the leader D. the significant gains made in the mentoring relationship between the leader and follower E. the act of people ascribing qualities like intelligence or charisma to leaders which table shows a proportional relationship between x and y If Jessica ate 3 hamburgers with her grandmother, and yesterday she took her mom out for lunch, how many grandchildren does Jessica's grandmother have? ..........fodder crop called as queen of fodder crop A portfolio is efficient if which of the following is true? QuestionWhat is the net signed area between f(x) = 2x + 3 and the x-axis over the interval (-4,2]? Do not include any units inyour answerProvide your answer below: List some of the alternatives that Chris and his son could have done to make their life better. PLEASE HELP ASAP! ILL MARK BRAINLIST Stephen Douglas would most likely support which statement?A. slavery goes against the American ideal that all men are created equal.B. conflicts between states will become worse unless slavery stop spreading.C. The federal government should not influence states decisions about slavery.D. States that oppose slavery should be forced to leave the United States. The perimeter of a triangle is 61 in. The shortest side is 8 in. less than the longest side. The middle side is 19 in. less than the combined lengths of the shortest and longest sides. Find the lengths of the three sides. Calculate the mass in grams of 550 mol of aluminumHelp please! Could someone verify this answer if you dont know the answer dont say anything I dont want to download the answer if you cant tell me dont say anything the question says find the area of the compound figure 24 divided by the product of 6 and 2 Mark runs to catch a ball. Explain how the structure of muscle tissue helps him perform this function our neighbors have _cat and _owl. On January 1, Year 1, the Charleston Company (Charleston) issues bonds with a face value of $100,000 and a stated annual cash interest rate of 6% for $86,410 in cash to yield an assumed effective interest rate of 8%. Interest is paid every June 30th and December 31st, and the effective-rate method is being applied. What amount of interest expense should Charleston report for the year ending December 31, Year 2 One of the themes of "Harrison Bergeron" is:A. the danger of enforcing samenessB. the danger of lack of freedomC. a combination of A and BD. neither A nor B Reports say that the mean birth weight of babies of European heritage is 3.5\text{ kg}3.5 kg3, point, 5, start text, space, k, g, end text. Marta wants to perform a significance test to see if this holds true in her nation. She takes a random sample of babies and observes a mean birthweight of \bar x=3.43\text{ kg.} x =3.43 kg.X, with, \bar, on top, equals, 3, point, 43, start text, space, k, g, point, end text Here's Marta's null hypothesis: H_0:H 0 :H, start subscript, 0, end subscript, colon The mean birth weight in this nation is... Describe the two methods to increase the rate at which a substance dissolves. Which expression below has a Coefficient of 3? Take your pickTop or Bottom