If a while loop iterates forever,what is the most likely cause?

Answers

Answer 1

Answer:

Runtime error probably. The program won't make it past the while loop in the code.

Answer 2

Answer: The loop has a condition that cannot possibly be false.

Explanation:

If A While Loop Iterates Forever,what Is The Most Likely Cause?

Related Questions

Write instructions for the following: You have a bag filled with jelly beans of three different colors: pink, green, and yellow and 3 cups that cannot be moved arranged in a line in front of you. The end result should be that all the jelly beans have been removed from the bag and placed into cups. Each cup should only contain 1 color. The jellybeans should be placed into the cups so that the pile that is the smallest is on the left, and the pile that is the largest is on the right. Jellybeans cannot be placed anywhere except in the bag or in a cup.

Answers

The instructions for the following: You have a bag filled with jelly beans of three different colors: pink, green, and yellow are 1. Open the bag.2. Put a jelly bean withinside the left cup.

Why Jelly beans are lined in wax?

As the little sweet beans are tumbling round withinside the cement mixer-like vessel, growing their outer shell, they may be being prepped for his or her ultimate coating — wax.

Put a jelly bean withinside the proper cup that does not suit the shadeation of the other jelly beans.Fill withinside the left cup with the corresponding shadeation.Repeat step #five with the center and the proper cup.Examine the cups, being attentive to every quantity withinside the cup. If the left cup has greater than the center cup observes steps 8a - 8, in any other case dismiss it. Empty the center cup into the bag cup.Remove the jelly beans from the bag and vicinity them into the center cup.Take the jelly beans out the left cup and vicinity them into the proper cup.Take the jelly beans out the center cup and vicinity them into the left cup.

Read more about the jelly:

https://brainly.com/question/153467

#SPJ1

This program has a bug. When the green flag is clicked, nothing happens. How would you fix it?
A. Change the number inside the “Move” block
B. Change the number inside the “repeat” block
C. Make the sound louder with the purple block
D. Connect the event block directly to the “repeat” block

Answers

The correct answer is D, if you connect it, the program will operate properly.

To notify the browser that we have JavaScript code, we should use .............

Answers

Answer:

almost all browsers allow you to type JavaScript code directly into the browser, using something called the “console

Which Internet protocol (IP) packet fragmentation header field specifies where the fragment belongs in the original datagram

Answers

An Internet protocol (IP) packet fragmentation header field which specifies where the fragment belongs in the original datagram is the fragment offset.

What is the TCP/IP model?

The TCP/IP model is known as the Internet protocol suite or Transmission Control Protocol and Internet Protocol (TCP/IP) model and it can be defined as a standard framework that is designed and developed for the transmission (prepare and forward) of information on the Internet.

In the TCP/IP model, a fragment offset simply refers to an Internet protocol (IP) packet fragmentation header field which is used to specify where the fragment belongs in the original datagram.

Read more on Internet protocol here: https://brainly.com/question/17387945

#SPJ1

Write a class called point that represents a point in 2d plane.
- the constructor accepts the x and y dimensions of the point.
- provide a method getx that returns the x coordinate of a point, and another method gety
that returns the y coordinate of a point.
- provide a method called translate that changes the original coordinates of the point by
adding a given values for x and y coordinates.
- provide a method distanceto that calculates the distance between that point and another
one.
use this equation to calculate the distance math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2))
while the math is a library you should import. where the (x1, y) is the coordinates of the first point
and (x2, y2) is the coordinates of the second point
the output should be like this screenshot

Answers

In this way, writing the code in C++ we can say that it will be possible to make the coordinates on the planes.

Writing the code we have:

#include <iostream>

#include <cmath>

#include <iomanip>

using namespace std;

class Point{

private:

float x;

float y;

public:

Point(){

x = y = 0;

}

Point(float x, float y){

this->x = x;

this->y = y;

}

float getX(){

return x;

}

float getY(){

return y;

}

float getDistance(){

return math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2));

}

string toString(){

return "("(x1, y)","(x2, y2)")";

}

};

See more about C code at brainly.com/question/17544466

#SPJ1

which two features could be added to a game using an "if () then " block

Answers

The two features could be added to a game using an "if () then " block are:

Using nested If Then blocks.Checks the specific Bid quantity for the instrument.

What does the If Then block mean?

The If Then block is known to be the outputs one of  a given two values, that is as a result of  the value of a Boolean input.

Note that  the input value  is very important and as such, The two features could be added to a game using an "if () then " block are:

Using nested If Then blocks.Checks the specific Bid quantity for the instrument.

Learn more about game  from

https://brainly.com/question/1786465

#SPJ1


Why does binary addition have a rule for 1 + 1 + 1 if only two numbers
are being added together?

Answers

Answer:

See below

Explanation:

Because sometimes you have to 'carry' a 1 over to the ext column when adding two binary numbers

Example :

 1 1 1

+1 1 1    <==== starting in the first R column add  1 + 1  to get 0 and carry 1

                then the next column you will add   1 + 1 + 1  = 1   and carry 1 again

                    then 1 + 1 + 1= 1  and carry 1 again (to column 4)  to get

1   1  1 0

sequence structure is when have a repetition of instructions. true false

Answers

Answer:

false

Explanation:

repedition would be s loop like FOR or WHILE

Select all the correct answers. Javier is preparing his resume for a network enginee list relevant experien El use a fancy font style for aesthetics mention all the certifications achieved list skills related to the job give importance to personal sition. Which three best practices should be employ? Reset Next​

Answers

Answer:

A and C

Explanation:

yes its correct I know what I'm doing

Most practical applications of integer linear programming involve mostly ordinary integer variables and a small number of 0-1 integer variables. only 0-1 integer variables and not ordinary integer variables. a near equal number of ordinary integer variables and 0-1 integer variables. only ordinary integer variables.

Answers

Most practical applications of integer linear programming involve mostly; a. only 0-1 integer variables and not ordinary integer variables.

How to deal with Linear Programming Questions?

Linear programming is defined as a method used to achieve the best outcome in a mathematical model where its' requirements are represented by linear relationships.

Now, Linear programming is useful in a number of different applications and where integer linear programming is involved, it uses only 0-1 integer variables and not ordinary integer variables.

Read more about Linear Programming at; https://brainly.com/question/14309521

#SPJ1

What are the benefits of digital media?

Answers

Answer:

- easy to access

- day to day information updates worldwide

- convenient

- versatility

- accuracy

- cost....etc

Explanation:

Hypertext enables you to navigate through pieces of information by clicking the __________, that connect them.

Answers

What we usually click to open the hypertext is called; Hyperlinks.

What is hypertext?

Hypertext is defined as a form of writing with three characteristics namely;

Discernable free standing content nodes.Links between nodes.The expectation of active choice by readers.

Now, a hyperlink is one that points to a whole document or to a specific element within a document. Hypertext is simply text with hyperlinks which we click to view the hypertext.

Read more about Hypertext at; https://brainly.com/question/853165

#SPJ1

How did Lamarck's theory of evolution differ from Darwin's?

Lamarck believed animals evolved by passing acquired traits down to offspring.

Lamarck believed species evolved slowly, over millions of years.

Lamarck believed that only vertebrates could evolve.

Lamarck believed that the fossil record was complete.

Answers

Answer:

Lamarck's theory of evolution was wrapped around the fact that in order for the organism to adapt to it's "new" environment it has to change but Darwin's theory was that the organism will change before it's environment does thus it doesn't impact it's change

Desktop computers have a(n) ________ unit, located within the system unit, that plugs into a standard wall outlet, converts AC to DC, and provides the power to drive all the system unit components. Group of answer choices battery bus miniDC power supply

Answers

Answer:

The answer is power supply

Explanation:

i build pcs

Online banking is a convenience that mostly affects which area of your life?
OA. Personal
B. Social
C. Cultural
OD. Ethical

Answers

Online banking is a convenience that mostly affects this area of a person's life: A. personal.

What is online banking?

Online banking simply refers to a type of technology that is used by financial institutions to offer their customers an opportunity to receive and send money through the Internet.

Some examples of online banking institutions include the following:

MoneygramPayment processorWestern UnionPay-Pal

In conclusion, online banking is a convenience that mostly affects the personal area of a person's life.

Read more on online banking here: https://brainly.com/question/2772610

#SPJ1

When you compose an email and click the to or cc button, where does outlook search first by default?.

Answers

Answer:

it looks for the best answer suited for your search result.

Explanation:

How to turn off parental controls without a password on android?.

Answers

Answer:

Ask your parents.

What will be the result from running the following program?
print("Grades")
print(100)
print(93)
print(82)
print("Total")
print(100+93+82)

Answers

Answer:

If this is python

then you will get this from console:

Grades
100
93

82

Total
275

write a program to input elements of 4*3matrix and prints its elements properly using array ​

Answers

Answer:

Step by step explanation:

pls help!!

Calculate the standard deviation for the following data set: Data Set = 2, 9, 10, 4, 8, 4, 12

Answers

Answer:

4.24

Explanation:

First you find the mean of the data set, which is 7. Then to find standard deviation you have to follow the formula which tells you to subtract the mean from each number under the square root : √(2 - 7)^2 + (9 - 7)^2 + (10 - 7)^2 + (4 - 7)^2 + (8 - 7)^2 + (4 - 7)^2 + (12 - 7). Once you solve the parenthesis you square it, once you square it the negatives won't matter. That will leave you with this : √(25 + 4 + 9 + 9 + 25). The formula tells you to find the sum of those numbers (which is 72) then subtract one from how many numbers there are, 5 - 1 = 4, and divide your sum by that number. So 72 / 4 = 18. Then you find the square root of 18 and that becomes your answer.

A computer program can contain limited number of instructions true or false

Answers

Answer:

true

Explanation:

depending on how it is made

Question 2 of 10
Online banking is a convenience that mostly affects which area of your life?
A Cultural
B. Personal
C. Social
D. Ethical

Answers

Online banking is a convenience that mostly affects Ethical area of your life.

What is online banking and what is its purpose?

Online banking is known to be a type of banking that is done via the internet and it helps a user to carry out  financial transactions easily and fast.

Note that Online banking is a convenience that mostly affects Ethical area of your life as it tells where you really stand for.

Learn more about Online banking from

https://brainly.com/question/2772610

#SPJ1

Your dod common access card has a public key infrastructure token approved for access to the.

Answers

Your dod common access card has a public key infrastructure token approved for access to the NIPRNet.

What is NIPRNet?

This is known to be Non-classified Internet Protocol (IP) Router Network (NIPRNet).

It is said to be a kind of an IP network that is often used to pass in and out unclassified information, such as information subject and thus Your dod common access card has a public key infrastructure token approved for access to the NIPRNet.

Learn more about public key from

https://brainly.com/question/8782374

#SPJ2

Your college has several campuses located across the city. within each campus, the buildings are interconnected with a campus area network. if you connect each of the campuses to each other across the city, what type of network would this become

Answers

Answer:

Metropolitan Area Network (MAN)

Explanation:

Mediacom Communications has requested you to manage the access to its 802.11 standard wireless networks. A recent instance of errors in transmission has been recorded, and in order to fix this problem, you want to run a cyclical code to check for errors in transmission. In which field of the 802.11 data frame will you run this check

Answers

Based on the above scenario, in frame control field of the 802.11, the data frame will you run this check.

What are the three key 802.11 frame types?

There are 3 types of 802.11 frames which are:

ManagementcontrolData

Therefore, Based on the above scenario, in frame control field of the 802.11, the data frame will you run this check.

See full question below

Mediacom Communications has requested you to manage the access to its 802.11 standard wireless networks. A recent instance of errors in transmission has been recorded, and in order to fix this problem, you want to run a cyclical code to check for errors in transmission. In which field of the 802.11 data frame will you run this check?

a.

Sequence Control

b.

Trailer

c.

Data

d.

Frame Control

Learn more about Communications from

https://brainly.com/question/26152499

#SPJ1

help me help you...........

Answers

Answer:

the 1st answer

Explanation:

come on !

X and Y stand for the x and y coordinates of where to put the object on a grid.

Which e-mail netiquette rules did the student break? check all that apply.

limit the use of emoticons.
always proofread before sending.
do not discuss personal information.
do not forward large attachments.
identify yourself by name.

Answers

The e-mail netiquette rules that the student broke are:

Always proofread before sending.Identify yourself by name.Do not reveal personal information.

What are the email netiquette rules?

This is known to be the rules for email etiquette and they are:

The use of a clear, professional subject words.Always Proofread all email that you send. Compose the email before entering the recipient email address and others.

The e-mail netiquette rules that the student broke are:

Always proofread before sending.Identify yourself by name.Do not reveal personal information.

Learn more about etiquette from

https://brainly.com/question/2528165

#SPJ1

Answer: The answer for the following email

Hey you guys!!!!!! LOL

A: Limit the use of emoticons

B: Always proofread before sending

E: Identify yourself by name.

Explanation:

I just did it on edge 2022.

For browsers to connect to resources on the Internet, the location of the resources must be specified through addresses called ________. Group of answer choices Hypertext Markup Language (HTML) top-level domains (TLDs) uniform resource locators (URLs) hyperlinks

Answers

URL is the right answer

Explanation:

Ive worked in data management

you are pairing a bluetooth headset to a mobile device. on the device, after finding the device for pairing, what is the next step to take

Answers

Answer:

You can use Bluetooth to connect some devices to your phone without a cord. After you pair a Bluetooth device for the first time, your devices can pair automatically. If your phone is connected to something through Bluetooth, at the top of the screen, you'll see a Bluetooth icon .

The arrangement of keys on a keyboard, QWERTY reflects the keyboard layout by ________. Group of answer choices using the letters of the alphabetic characters that are closest to access while typing taking the letters of the first six alphabetic characters found on the top row of keys using the alphabetic characters most frequently used on the keyboard representing the phonetics of the alphabets most closely associated with the keyboard

Answers

The setup of keys on a keyboard, QWERTY shows the keyboard layout by taking the letters of the first six alphabetic characters found on the top row of keys.

What is keyboard?

A keyboard is known to be a kind of peripheral device that helps a user to be able to input text into any computer or any any kind of electronic device.

Note that The setup of keys on a keyboard, QWERTY shows the keyboard layout by taking the letters of the first six alphabetic characters found on the top row of keys.

Learn more about keyboard from

https://brainly.com/question/13380788

#SPJ1

Other Questions
What is the area of the circle why is electric current scalar quantity with having direction ? What is socialistic government? Which conclusion to this story is most logical? Write the point-slope form of the equation for a line that passes through (1, 4) with a slope of 2.The value of x isThe value of y isThe point-slope form of the equation is If a figure has a line of symmetry, that means what?A. The two sides are different shapes.B. The two sides are different sizes.C. Both sides are exactly the same.D.The two sides of the shape are similar. could someone pleasee help me will give brainliest Explain the Historical Circumstances that led to the German responses to the outbreak of World War I Lily has 655 coins that she wants to divide evenly for her 13 grandchildren.How many coins will each grandchild receive? Will there be any leftover?250 Which of the following conclusions is not supported by this diagram? what is the product of the binomals below (2x+3) (3x+3) what are magnetic field line?? A cone has a height of 8 yards and a radius of 3 yards. What is its volume?Use 3.14 and round your answer to the nearest hundredth. cubic yardsSubmitYea -What were the weaknesses of the Articles of Confederation? name the apparatus labelled m Which of the following expressions is equivalent to 14xy 28x 36y + 48? 2(7x 6)(y 2)(3y + 4) 2(7x 6)(y 2)(3y 4) 2[7x(y 2) 6(3y 4)] 2[7x(y 2) 6(3y + 4)] Roger has determined the point of origin of a fire at a crime scene. What should he traditionally NOT collect fromthis area of the crime scene to use as evidence? Review the poem, "On the Morning of Christ's Nativity."Which stanza describes the peaceful state of the natural world on the night Christ was born? How did its location near the sea MOST contribute to the growth of ancient Greece? b solve each problem . use = 3.14 1. what is the volume of a regular cylinder whose base has radius of 5 cm and has height of 4 cm? 2. the diameter of sphere is 10 cm. find the volume. 3. juice is sold in aluminum cans that measure 7 inches in height and 4 inches in diameter. how many cubic inches of juice are contained in a full can? 4. the square pyramid has a volume of 297 cm. the area of the base is 81 cm. What is the height.? 5. A glass is 10 cm deep and 8 cm wide . How much liquid the glass hold?