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
patriot [66]
3 years ago
13

which of the following indicates that the loop should stop when the value in the quantity variable is less than the number 50​

Computers and Technology
1 answer:
yan [13]3 years ago
6 0

Answer:

while (quantity >= 50)

Explanation:

Required

Stop when quantity is less than 50

To do this, we make use of a while statement and the syntax is:

while (condition){ }

If the loop should stop when quantity is less than 50; then it means the loop would continue when quantity is greater or equal to 50

So, we have:

while (quantity >= 50)

You might be interested in
Why do we use if statements?
Luden [163]
Answer is 2 i’m pretty sure
4 0
3 years ago
Input numbers and segregate them by placing their values into even or odd vectors based upon their value being even or odd. Then
dedylja [7]

Answer:

The solution code is written in Python

  1. input_numbers = [5, 7, 1, 12, 9, 34, 22, 97, 112]
  2. evenVec = []
  3. oddVec = []
  4. for x in input_numbers:
  5.    if x % 2 == 0:
  6.        evenVec.append(x)
  7.    else:
  8.        oddVec.append(x)
  9. num2D = [evenVec, oddVec]
  10. print(num2D)

Explanation:

Let's create a sample input numbers that mixed with odd and even values (Line 1)

Next, create evenVec and oddVec variables to hold the even and odd numbers from the input_numbers (Line 3 - 4).

Create a for-loop to traverse through the input_numbers and check if current number, x, is divisible by 2 using the modulus operator %. If so, x % 2 will be evaluated to 0 and append the current x to evenVec or else append to oddVec (Line 6 - 10).

Next, create a variable num2D to hold the two dimensional arrays with first column is evenVec and second column is oddVec (Line 12).

When printing the num2D (Line 14), we shall get

[[12, 34, 22, 112], [5, 7, 1, 9, 97]]

7 0
3 years ago
The company involved in an attack by Oleg Zezev from Kazahkstan, in which Zezev accessed computer data and copied personal infor
hodyreva [135]

Answer:

Bloomberg , Inc.

Explanation:

Oleg zezev is Kazakhstani who accessed Bloomberg L.P.’s Manhattan computer system and accessed computer data and copied personal information for purposes of extorting money from Bloomberg in 1999. He was arrested on August 10, 2000 in London, England and prosecuted on February 27, 2003.

4 0
3 years ago
What is HTML ? <br>Give a small description about html
Genrish500 [490]
Hypertext Markup Language, a standardized system for tagging text files to achieve font, colour, graphic, and hyperlink effects on World Wide Web pages.
this information was taken from google
7 0
3 years ago
Read 2 more answers
The Federal Trade Commission FIP principle of Notice/Awareness states that
Ksju [112]

Answer:

Option 4) is correct

Explanation:

The Federal Trade Commission is an agency that is headed by 5 Commissioners such that each of the commissioners has served a seven year term.

Missions of the Federal Trade Commission are as follows:

1. Implementation of civil U.S. antitrust law

2. Encouragement  of consumer protection

The Federal Trade Commission FIP principle of Notice/Awareness states that websites must disclose their information practices before collecting data.

So,

Option 4) is correct

3 0
3 years ago
Other questions:
  • Look at the following array definition:
    11·1 answer
  • _____ software is used to play, create, and modify audio and video files.
    6·1 answer
  • When designing a website, describe 3 best practices you would give to your fellow classmate on effective web design that will ma
    9·1 answer
  • Programming assignment (100 pts): In the C++ programming language write a program capable of playing Tic-Tac-Toe against the use
    14·1 answer
  • GIVING 10 or 20 POINTS for brainliest HELP ASAP!! Instructions Click the links to open the resources below. These resources will
    10·1 answer
  • Who is the host in super monkey ball?
    14·1 answer
  • From your analysis, do you think you’ve seen all of the servers and hosts that make up the Amazon e-commerce site? How does Amaz
    12·1 answer
  • Identify the two top benefits of using angel investors to start a business.
    6·1 answer
  • Write an algorithm to print the odd number from 100 to 1​
    13·1 answer
  • Given main(), complete the Car class (in files Car.h and Car.cpp) with member functions to set and get the purchase price of a c
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!