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
polet [3.4K]
4 years ago
13

Ar count = 10;

Computers and Technology
1 answer:
Alinara [238K]4 years ago
6 0

Answer:

The value of count after the code is executed is 0

Explanation:

According to the code initially the value of count is 10

while (count>0)

{

count=count-2

}

means 10>0 condition is true

count=10-2=8

Again 8>0 condition of while loop is again  true

now count becomes=6

This process repeated untill the condition of while loop is true

and at last count becomes 0 the condition is false (0>0) so count becomes 0 after the code segment is executed

You might be interested in
A programmer wrote the code segment below to display the average of all the elements in a list called numbers. There is always a
mestny [16]

Answer:

Swap codes in line 7 and 8

Explanation:

The code segment below

Line 1: count ← 0

Line 2: sum ← 0

Line 3: FOR EACH value IN numbers

Line 4: {

Line 5: count ← count + 1

Line 6: sum ← sum + value

Line 7: average ← sum / count

Line 8: }

Line 9: DISPLAY (average)

The above code will make the program translator calculate the average value at each iteration.

This will take a longer time to execute and also means more instructions for the program translator.

Swapping line 7 and 8 will reduce the number of instructions to execute. This will have an instant effect on the time taken to execute the program.

Swapping line 7 and 8 means that, the program translator will only calculate the average after it must have finished calculating the sum of the values in the iteration statement.

3 0
3 years ago
Why is it important to brain storm and develop concepts prior to selecting an idea that you wish to move forward with as a solut
kupik [55]

Answer:

Brainstorming helps you develop creative solutions to a problem, and is particularly ... And while it's important to start with a structured, analytical process when solving ... However, you may not develop ideas as fully when you're on your own, because ... To get the most out of your individual brainstorming session

4 0
3 years ago
True or false = the order of cannot be changed in slide shorter view ,true or false =menu bar is located just below the title ba
DIA [1.3K]

Answer:

True or false = the order of cannot be changed in slide shorter view ,true or false =menu bar is located just below the title bar plz solve thisss

3 0
3 years ago
Read 2 more answers
If you want to place the insertion point in a cell to edit a specific part of its contents, you can
Vlad1618 [11]
Pretty sure,
A. Click The Cell
5 0
3 years ago
On what menu in Microsoft Word can you locate the Macro feature?
Harrizon [31]

Answer:

View

Explanation:

Microsoft Word refers to a word processing software application or program developed by Microsoft Inc. to enable its users type, format and save text-based documents.

In Microsoft Word 2019, the users are availed with the ability to edit the word document in the following view type;

I. View Mode

II. Print Mode

III. Drift Layout

The Microsoft Word developers has made it easy for their users to automate the tasks used frequently through the creation and execution of macros.

Basically, macros comprises of commands and instructions which may be grouped together as a single command to automatically execute a task. You can locate the Macro feature in the View tab of Microsoft Word.

6 0
3 years ago
Other questions:
  • Write a Python program to do the following:
    12·1 answer
  • A thin red border indicates the active cell. (True or False)
    12·1 answer
  • Write a program that lets the user enter a nonnegative integer then uses a loop to calculate the factorial of that number. Displ
    11·1 answer
  • Describe the process of normalization and why it is needed.
    12·1 answer
  • What output is generated by this for loop?
    6·1 answer
  • Someone please tell me please y my ps4 controller won’t charge:(
    12·2 answers
  • True or false, USBs are slower than RAM.
    15·1 answer
  • List any three positive impact of a computer​
    9·1 answer
  • What are the characteristics of computer. Explain any one​
    15·2 answers
  • Hi am feeling really happy just passed a test after a lot of tries :-)
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!