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
ollegr [7]
4 years ago
9

The following program segment is designed to compute the product of two nonnegative integers X and Y by accumulating the sum of

X copies of Y; that is, 3 times 4 is computed by accumulating the sum of three 4s.
Is the program segment correct? Explain your answer.

Product ←0;

Count ←0;

repeat (Product ←Product + Y,

Count ←Count + 1)

until (Count = X)
Computers and Technology
1 answer:
mote1985 [20]4 years ago
5 0

The program is correct: at the beginning, product = 0. Then, we start summing Y to that variable, and we sum Y exactly X times, because with each iteration we increase Count by 1, and check if Count=X so that we can exit the loop.

You might be interested in
The TCP congestion control measure techniques fall into two categories: retransmission timer management and ________ management
Paladinen [302]

Answer:

Window management

Explanation:

In TCP congestion control, aside from retransmission timer management, the other category of technique is called WINDOW MANAGEMENT: this is carried out by the sender to end a link between the sender and the receiver to prevent overloading of too much traffic of bytes that can be sent in a given period.

Hence, in this case, the correct answer is WINDOW MANAGEMENT.

7 0
3 years ago
What is the difference between a pixel pitch and a dot pitch​
BaLLatris [955]

Answer:

is a measurement that defines the sharpness of a display. It measures the distance between the dots used to display the image on the screen. This distance is very small and is typically measured in fractions of millimeters. The smaller the dot pitch, the sharper the picture.

7 0
4 years ago
Read 2 more answers
The use of computer hardware and software to analyze biological data, such as dna sequence comparison data, is known as ________
Natali [406]
I believe this is called bioinformatics, using computers to quickly compute or search various databases for info. 
4 0
3 years ago
Business application software programs make it possible to
Daniel [21]
Business application software programs make it possible to: increase productivity in the office setting.
Please give me Brainless if this help!!
6 0
3 years ago
The WITH CHECK OPTION clause _________.a. prevents a row in a view form being updated if that would cause the row to be excluded
Finger [1]

Answer:

The correct answer to the following question will be Option A.

Explanation:

For such a standards-compliant perspective, the WITH CHECK OPTION clause could be provided to prohibit additions to rows under which the select statement WHERE clause is sometimes not valid.

  • This also prevents changes to rows under which the WHERE clause becomes accurate but perhaps the change will result in it not being valid.
  • It helps to prevent updating of a row throughout a view process if this causes the row to still be omitted from those in the display.
5 0
3 years ago
Other questions:
  • in c++, what happends when i add 1 to the RAND_MAX then take rand() deivded by (RAND_MAX+1)?if my purpose is to take out a rando
    11·1 answer
  • You are going to write a program for Computer test which will read 10 multiple choice questions from a file, order them randomly
    11·1 answer
  • Nascar has inserted an image into his document but needs the image to appear on its own line Which option should he choose?
    12·2 answers
  • Henry created a software that manages all of his music. He wishes to run software on another computer system that runs an operat
    8·1 answer
  • 1. Some of the music in the 1960s was used to protest social and political issues. Is music still used as a form of protest? Why
    13·1 answer
  • What is a System Software ?
    11·2 answers
  • What are the advanced file and folder search commands?PLEASE GUYS ITS IMPORTANT
    12·1 answer
  • Select the correct answer
    15·1 answer
  • Write the steps involving coping and pasting a file in a folder​
    5·1 answer
  • In your own view, how can social media be used in teaching and learning in higher education?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!