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
seraphim [82]
3 years ago
9

What statement is used to close a loop started with a for statement?

Computers and Technology
1 answer:
liraira [26]3 years ago
5 0
If I get what you are saying then you could use a work like end. :)
You might be interested in
When troubleshooting a computer, why might you have to enter bios setup? list at least three reasons?
const2013 [10]
You might need to change the Boot order to be able to boot to a USB stick.
On older machines, there might be an interrupt problem with a new sound/video card that needs to be resolved. 
You might need to reset all settings to the default settings due to unexpected results.
Some BIOS allow you to overclock your CPU and the might need to be changed back due to system instability.

5 0
3 years ago
Melissa just bought a new entertainment system for her apartment. It includes a flat-screen TV, surround-sound speakers, and a v
harkovskaia [24]

She should get personal property insurance

4 0
3 years ago
Read 2 more answers
Greedy Algorithm Design
Alik [6]

Answer:

The algorithm is as follows:

1. Start

2. Get the number of items (n)

3. Get the current price of the n items (a1, a2..... an)

4. Get the possible hiked price of the n items (b1, b2..... bn)

5. Calculate the difference between the current and hiked prices for each item i.e. d_i = b_i - a_i

6. Sort the differences in descending order (i.e. from the greatest to the least)

7. Buy items in this order of difference

8. Stop

Explanation:

The algorithm is self-explanatory; however, what it does is that:

It takes a list of the current price of items (say list a)

E.g: a = [100, 150, 160]

Then take a list of the hiked price of the items (say list b)

E.g: b = [110, 180, 165]

Next, it calculates the difference (d) between corresponding prices d_i = b_i - a_i

d = [(110 - 100),(180-150),(165-160)]

d = [10,30,5]

Sort the difference from greatest to lowest (as the difference is sorted, lists a and b are also sorted)

d = [30,10,5]

a = [150, 100, 160]

b = [180, 110, 165]

If there is no hike up to item k, the couple would have saved (i = 1 to d[k-1])

Assume k = 3

The couple would have saved for 2 item

Savings = d[1] + d[2]

Savings = 30 +10

Savings = 40

The saved amount will then be added to the kth item in list a i.e. a[k](in this case k = 3) in order to buy b[k]

Using the assumed value of k

a[k] = a[3]

a[3] = 160

b[3] = 165

Add the saved amount (40) to a[3]

New\ Amount = 40 + 160

New\ Amount = 200

This new amount can then be used to buy b[3] i.e. 165, then they save the change for subsequent items

8 0
3 years ago
The unique identification number assigned to your computer when you connect to the internet is known by all of the following, ex
Eddi Din [679]
<span>The unique identification number assigned to your computer when you connect to the internet is known by </span><span>dotted quad, dotted decimal, IP address except  </span>dotted period.  
3 0
4 years ago
Read 2 more answers
X-1; while x ==1 disp(x) end, then the result a. infinity or b. (1) ​
Alex_Xolod [135]

Answer:

1 is the answer because ur trying to trick us

Explanation:

8 0
3 years ago
Other questions:
  • To keep your emails concise and to the point
    13·1 answer
  • What are chemical manufacturers required to provide to anyone who purchases or uses their chemicals for a work purpose? Select a
    8·2 answers
  • Java provides a(n) ____ class, which contains many useful methods for manipulating arrays.
    5·1 answer
  • To quit Word, click the Restore button on the right side of the title bar. <br> True <br> False
    6·1 answer
  • In class, we discussed static local variables in C. Answereach question below; if necessary, find and consult a reference on the
    10·1 answer
  • Suppose that we have a set of activities to schedule among a large number of lecture halls, where any activity can take place in
    8·1 answer
  • Select the correct answer.
    13·2 answers
  • The ______ printers are the most popular type of printer in small office/home office and large office environments.
    5·1 answer
  • I hope The characters That I want in Mortal kombat 12 is Lori and peron That’s My character wishlist in The next Mortal kombat g
    12·2 answers
  • Consider the following language:
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!