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

Write an algorithm and draw a flowchart to count the digits present in the given integer. ​

Computers and Technology
1 answer:
saul85 [17]3 years ago
8 0

Answer:

The algorithm is as follows:

Input number  

count = 0

while(number not equal 0)

   number = number / 10

   count = count + 1

end

Print count

Explanation:

This gets input for the integer number

 Input number  

This initializes count of digits to 0

count = 0

The following loop is repeated while number is not 0

while(number not equal 0)

This performs integer division of the number by 10; the resulting division is saved in variable number

   number = number / 10

The count variable is incremented by 1

   count = count + 1

The loop ends here

end

This prints the count of integers

Print count

<em>See attachment for flowchart</em>

You might be interested in
Which of the following cannot be copyrighted
denpristay [2]
1.I'm not sure.
<span>2. A story that you wrote based on a book you read
3. T</span><span>he website user (I think)</span>
4 0
4 years ago
Suppose a computer has 16-bit instructions. The instruction set consists of 32 different operations. All instructions have an op
Kazeer [188]

Answer:

2^7= 128

Explanation:

An instruction format characterizes the diverse part of a guidance. The fundamental segments of an instruction are opcode and operands. Here are the various terms identified with guidance design:  Instruction set size tells the absolute number of guidelines characterized in the processor.  Opcode size is the quantity of bits involved by the opcode which is determined by taking log of guidance set size.  Operand size is the quantity of bits involved by the operand.  Guidance size is determined as total of bits involved by opcode and operands.

6 0
4 years ago
It is a good idea to include your teacher’s name on a title page.
LenaWriter [7]

Answer: I think it all depends on the teacher because I know one of my teachers like when we put their name on our assignments. So I pick true

Explanation:

6 0
3 years ago
Read 2 more answers
A method of using a square grid of imaginary lines to describe part features is known as _____.
Fiesta28 [93]

Answer:

The answer is "Prime Meridian".

Explanation:

The process, that describes an imaginary line in part these features is known as Prime Meridian. It is also known as 0° Longitude in which Longitude is a statistical vector that determines the location to East to West and points on the surface of the Earth or of a paradisaical body surface, and 0° Longitude is the line that describes the Equator and divides the world into two equal quadrants.

4 0
3 years ago
Suzy lives alone I. New York where her family lives In Florida
ankoles [38]

Answer:

bro what

Explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • What types of storage can be used to access your data on another computer?
    6·2 answers
  • Which of these has the LEAST impact on causing the phenomenon known as acid raid?
    8·2 answers
  • Why is redundancy of data undersirable?
    7·2 answers
  • Which of the following statements is used to terminate the program when closing the frame?
    12·1 answer
  • Using ______ capabilities, network managers can connect VOIP phones directly into a VLAN switch and configure the switch to rese
    6·1 answer
  • What device is used to transmit what is effectively a type of Morse code between stations?
    11·1 answer
  • Setting up a desktop computer for anAutoCADspecialist who needs a minimum of 125 GBram which operating system would be the best
    5·1 answer
  • Write a Boolean expression that tests if the value stored in the variable num1 is equal to the value stored in the variable num2
    10·1 answer
  • I WILL GIVE BRAINLIEST TO WHOEVER HELPS ME
    5·1 answer
  • Instrument Air system that employ a standby header shall be permitted to have a simplex cooler and dryer. Where a standby header
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!