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
pishuonlain [190]
3 years ago
9

write an algorithm and draw a flowchart for switching off a machine after it has made 500 glass bottles. use an appropriate cond

itional statement for this
Computers and Technology
1 answer:
Anni [7]3 years ago
7 0

Answer:

The algorithm is as follows:

1. Start

2. bottles = 0

3. While bottles != 500

  3.1 Create bottle

  3.2 bottle = bottle + 1

4. Switch off machine

5. Stop

<em>See attachment for flowchart</em>

Explanation:

This begins the algorithm

1. Start

This initializes bottles to 0

2. bottles = 0

The loop is repeated until 500 bottles is created

3. While bottles != 500

This creates a new bottle

  3.1 Create bottle

This increments the number of bottles by 1

  3.2 bottle = bottle + 1

This switches of the machine after all bottles are created

4. Switch off machine

End algorithm

5. Stop

<em></em>

<em></em>

You might be interested in
Which of the following is a safe work practice to protect you from electrocution hazards?
Flura [38]
What are the answer choices?
7 0
3 years ago
Brainless is one the way if you help
V125BC [204]

Answer:

1. x - 6

2. p - ? = 7

i chose these equations because

a number - 6 = the weight of your backpack.

p - an unknown number without a substitute variable = slices of bread left.

3 0
2 years ago
How do you do this question?
svet-max [94.6K]

Answer:

int k=0;

for(int i=0;i<=13; i++)

{

   if (table[i].getKey().equals(key))

   {

             k=i;

   }

   else

  {

             continue;

  }

}

 V value= table[k].getValue();

return value;

}

   

Explanation:

Note table[i] is an entry, and we know the key as it is an argument input to the function. Hence, we find the entry position using the given key, and then find the corresponding value and return it. And this is what is required. There are 14 entries in this hashtable, as known from the question.

6 0
3 years ago
Software that interpret commands from the keyboard and mouse is known as the
goldfiish [28.3K]
The Operating system kernel, a component of all operating systems, interprets these signals by the use of a device driver, so the answer to your questions is a "driver".    <span />
3 0
2 years ago
For Power Point: To move the insertion point on a table to a different cell, which key should be pressed?
hammer [34]
I could be wrong but I'm pretty sure it's A. Tab
6 0
2 years ago
Read 2 more answers
Other questions:
  • To insert a new slide in an existing presentation, what menu should you select?
    5·2 answers
  • Bluetooth is a common wireless protocol used to make pan connections. <br> a. True <br> b. False
    7·1 answer
  • When are number list generally used ?
    10·1 answer
  • Which phrase is a comparison operator for inserting a not equal to argument in an IF, COUNTIF or SUMIF function? &lt;= &lt;&gt;
    9·1 answer
  • What is the base for a hexadecimal number system?
    11·1 answer
  • If you have a field that needs a unique number that's one greater than the last field entry, what field type would you typically
    6·1 answer
  • 9. Select the correct answer.
    6·1 answer
  • How do you increase the number of tries by one?
    10·1 answer
  • PLEASE HELP
    12·1 answer
  • A for construct is a loop construct that processes a specified list of objects. As a result, it is executed as long as there are
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!