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
klio [65]
4 years ago
14

The algorithm below is used to simulate the results of flipping a coin 4 times. Consider the goal of determining whether the sim

ulation resulted in an equal number of heads and tails.
Step 1: Initialize the variables heads_counter and flip_counter to 0.
Step 2: A variable coin_flip is randomly assigned a value of either 0 or 1. If coin_flip has the value 0, the coin flip result is heads, so heads_counter is incremented by 1.
Step 3: Increment the value of flip_counter by 1.
Step 4: Repeat steps 2 and 3 until flip_counter equals 4.
Following the execution of the algorithm, which of the following expressions indicates that the simulation resulted in an equal number of heads and tails?
A. coin_flip = 1
B. flip_counter = 1
C. flip_counter = 2
D. heads_counter = 2
Computers and Technology
1 answer:
Leni [432]4 years ago
5 0

Answer:C

Explanation:

You might be interested in
1. The first popular animated feature film was 1937’s Snow White and the Seven Dwarfs. (1 point)
valina [46]
1. Not exactly the first animated film, but is considered to be the first animated feature film was "Snow White and the Seven Dwarfs." It was the first film created that was completely hand-drawn. His previous works were usually made using cutouts and stop motion. 

2. There were actually two big honchos of the film industry who were interested in Alexander Schure's Work. One of them was Francis Ford Coppola, director of , "The Godfather." The other one was George Lucas, the creator of, "Star Wars." So your answer would be D.

3. A storyboard is a graphic organizer in the form of illustrations and/or images. They are arranged in a sequence so that the animators can pre-visualize the sequence of events and actions and dialogues of each event. It serves as a blueprint for the whole film. 

4. <span> 3-D printing has been hailed as the phenomenon that will bring forth the Fourth Industrial Revolution.  Much like the previous revolution, 3-D printing will take global income levels to the next step. Rendering services more efficiently was one of the highlights of technology, with regards to digital media. However, 3-D printing will also be able to drive the supply-side of the economy.
</span>
5. 3-D printing is the process of making physical objects from a three dimensional model. The are made by joining materials and solidifying them through computer control. Layers of the material are laid out one by one in succession to create the object. So your answer is A.

6. The first video game console was made by Atari. Atari Pioneered the home video game console industry. One of its earliest products was a game called "Pog," created by Allan Alcorn. Pong was the first commercially successful video game. The answer is C.

7. <span>The kids of the 1980s basically played with two-dimensional sticks, dots, and quadrilateral-shaped characters is false. The 1980's was the kick off years of video gaming. Although still mostly in 2D, graphic designs were much more advanced and around 1987, 3D games were introduced. 
 
</span>
8. <span>France and Japan produced some of the earliest examples of animation. French animation dates back to the early 19th Century. The first Japanese animation was said to have first come out around the 1910's. Verifiable films though were dated to at least 1917.
</span>
9. The CAD that we use today is different from the CAD that was used in the 1980's. The introduction of PC, tablets, and smartphones have greatly influenced the potentials and used of CAD. Mostly used in the engineering industry in the past, CAD is now used across many fields and other industries. So your answer is False.

11. Steven Spielberg is an Academy Award Winning director, producer, and screenwriter. He is considered to be one of the most influential figures in the film industry of all time. He has won 3 Academy awards and was nominated for 7 for the Best Director Category.

12. Pixar Animation Studios, is a computer animation film studio that produced 19 feature films. The very first computer animation film that was produced by Pixar was Toy Story in 1995. They also produced Monster's Inc in 2001, and Finding Nemo in 2003. 

13. <span>3-D modeling, simulation, and artificial intelligence will allow for law-enforcement agents to recreate crime scenes. The Hong Kong Police already use this technique to better understand court cases. They also use it to plan raids and assess terrorist threats.  
</span>
14. It was Alexander Schure who founded the New Institute of Technology. He wished to be the next, "Walt Disney," of film making. However, he did not have the same creative mind as Disney when it came to making story lines. So the answer to that question is false. 

15. Robotics is the branch of engineering that deals with the building of robots. They deal with the design, concept, manufacturing and operations of robots. So with that definition, you could say that  robotics team is a group or team that work together to build robots. You answer is A.
7 0
4 years ago
Type (dog, cat, budgie, lizard, horse, etc.) Create a class that keeps track of the attributes above for pet records at the anim
Alenkinab [10]

Answer:

If you did the exercise with two Dog objects, it was a bit boring, right? After all, we have nothing to separate the dogs from each other and no way of knowing, without looking at the source code, which dog produced which bark.

In the previous article, I mentioned that when you create objects, you call a special method called a constructor. The constructor looks like the class name written as a method. For example, for a Dog class, the constructor would be called Dog().

The special thing about constructors is that they are the path to any new object, so they are a great place to call code that initializes an object with default values. Further, the return value from a constructor method is always an object of the class itself, which is why we can assign the return value of the constructor to a variable of the type of class we create.

However, so far, we have not actually created a constructor at all, so how come we can still call that method?

In many languages, C# included, the language gives you a free and empty constructor without you having to do anything. It is implied that you want a constructor; otherwise there would be no way of using the class for anything, so the languages just assume that you have written one.

This invisible and free constructor is called the default constructor, and, in our example, it will look like this:

public Dog(){ }

Notice that this syntax is very similar to the Speak() method we created earlier, except that we do not explicitly return a value nor do we even declare the return type of the method. As I mentioned earlier, a constructor always returns an instance of the class to which it belongs.

In this case, that is the class Dog, and that is why when we write Dog myDog = new Dog(), we can assign the new object to a variable named myDog which is of type Dog.

So let’s add the default constructor to our Dog class. You can either copy the line above or, in Visual Studio, you can use a shortcut: type ctor and hit Tab twice. It should generate the default constructor for you.

The default constructor doesn’t actually give us anything new because it is now explicitly doing what was done implicitly before. However, it is a method, so we can now add content inside the brackets that will execute whenever we call this constructor. And because the constructor runs as the very first thing in an object’s construction, it is a perfect place to add initialization code.

For example, we could set the Name property of our objects to something by adding code such as this:

public Dog()

{

   this.Name = "Snoopy";

}

This example will set the Name property of any new objects to “Snoopy”.

Of course, that’s not very useful because not all dogs are called “Snoopy”, so instead, let us change the method signature of the constructor so that it accepts a parameter.

The parentheses of methods aren’t just there to look pretty; they serve to contain parameters that we can use to pass values to a method. This function applies to all methods, not just constructors, but let’s do it for a constructor first.

Change the default constructor signature to this:

public Dog(string dogName)

This addition allows us to send a string parameter into the constructor, and that when we do, we can refer to that parameter by the name dogName.

Then, add the following line to the method block:

this.Name = dogName;

This line sets this object’s property Name to the parameter we sent into the constructor.

Note that when you change the constructor’s signature, you get a case of the red squigglies in your Program.cs file.When we add our own explicit constructors, C# and .NET will not implicitly create a default constructor for us. In our Program.cs file, we are still creating the Dog objects using the default parameter-less constructor, which now no longer exists.

To fix this problem, we need to add a parameter to our constructor call in Program.cs. We can, for example, update our object construction line as such:

Dog myDog = new Dog(“Snoopy”);

Doing so will remove the red squigglies and allow you to run the code again. If you leave or set your breakpoint after the last code line, you can look at the Locals panel and verify that your object’s Name property has indeed been? Got it?

5 0
3 years ago
You work in an office that uses Linux servers and Windows servers. The network uses both the TCP/IP protocol. The Linux server i
kap26 [50]

Answer:

The answer is "ifconfig".

Explanation:

The ifconfig. me is indeed a website that shows basic network packets, like IP address, hostname, user agent string. It provides a simple interface that may be queried with the assistance of the command prompt to obtain the required information. The whole function provides the essential information about a certain program's interface.

5 0
3 years ago
A system with an availability of 99.999% can be down for a maximum of 52 minutes per year.
rjkz [21]
False. Just calculate what those five mins mean. And remember in percents so you have to divide by an extra 100

Five-nines or 99.999% availability means 5 minutes, 15 seconds or less of downtime in a year. Or, if you are really ambitious, shoot for six nines or 99.9999% availability, which allows 32 seconds or less downtime per year.
5 0
3 years ago
During the software planning process, Rick, a project manager, finds that his team has made an incorrect estimation of funds. Wh
allochka39001 [22]

Answer:

Rick has identified a cost risk.

Explanation:

Risk is the probability of loss in a given setting. Herein, the risk involved is the inadequate assessment of the costs involved to carry out the project usually as a result of poor pricing evaluation of resources required for the project. At the early stage of every project, effective and efficient cost estimation is needed because it provides a basis for estimation of the total costs, it helps distribute the cost budget, it eases decision making and thereby assuring a level of profitability, everything being equal.

7 0
3 years ago
Read 2 more answers
Other questions:
  • Please help on this project, I'm not sure why but I've had lots of trouble with it. I'll try my best to show the instructions fo
    12·1 answer
  • Which Google Analytics visualization compares report data to the website average?A. Pivot viewB. Comparison viewC. Performance v
    8·1 answer
  • I need help, please and thank you.
    7·2 answers
  • -..
    11·1 answer
  • What is interest? How does interest affect credit card purchases?
    11·1 answer
  • The following are three possible logon scenarios. Explain why option (c) below is preferable in terms of system security. a. Wel
    12·1 answer
  • Cute nya diba I like bts army​
    10·1 answer
  • What does the x mean in .docx
    6·1 answer
  • What are the nuclear codes?
    14·1 answer
  • List and describe the 3 tasks learners can do in a Technology classroom.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!