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
Flauer [41]
3 years ago
8

Design an algorithm to convert a decimal number, n, to binary format?

Computers and Technology
1 answer:
Fudgin [204]3 years ago
8 0

An algorithm that would convert a decimal number n to binary format must have at least 16 commands.

<h3>What is an algorithm?</h3>

An algorithm is a term to refer to a series of sequential instructions that allow actions or programs to be executed. It is an indispensable tool for the digital world because it is the basis for technology.

An example of an algorithm to convert from decimal numbers to binary format would be:

Process Decimal_bin

Define decimal as Integer;

Define binary as Character;

Define modulus as Integer;

Define aux as Integer;

Write 'Enter the decimal number';

Read decimal;

aux<-decimal;

binary<-'';

While decimal>0 Do

 modulus<-decimal MOD 2;

 binary<-Concatenate(ConvertToTex(modulus),binary);

 decimal<-trunc(decimal/2);

FinWhile

Write binary;

EndProcess

Learn more about algorithm in: brainly.com/question/21970419

You might be interested in
Conceptual note-taking is the act of writing down information in the order it is given. drawing attention to details with a mark
Dvinal [7]

Answer:A

Explanation:Conceptual notetaking is the act of writing down information in the order it is given.

4 0
3 years ago
Read 2 more answers
Forensic professional able modify and reconstruct images of a missing child, predicting the appearance even twenty years later?
Mama L [17]
The second option forinistic  animator
4 0
3 years ago
What invention changed the nature of communication and commerce in the first half of the nineteenth century?
serg [7]
Answer: The Telegraph 

Hope this helps you out!
6 0
3 years ago
Read 2 more answers
Which call of the function correctly follows the instructions laid out in the api?.
Juliette [100K]

Answer:

MoveElement("button1", "down", 25); This function finds the minimum number in a list.

Explanation:

Hope this helps

3 0
3 years ago
Exercise #3: Write a c++ program that reads, from a file called numbers.in, up to 10 numbers, counts and adds the positive value
Gre4nikov [31]

I don't know

Thanks for the points

3 0
3 years ago
Read 2 more answers
Other questions:
  • Word processing programs have different view options that you can use depending on the tasks you’re performing. Which option hel
    11·1 answer
  • What kinds of variables are accessible from outside of the class?
    8·1 answer
  • A peer-to-peer (p2p) network is an example of ________ administration
    5·1 answer
  • In what order does the air flow in a canister vacuum cleaner pass through the following components?
    11·1 answer
  • The statement x++;
    11·1 answer
  • Which of the following sentences is correct?a. Arithmetic log unit is used to perform both integer and floating point computatio
    8·1 answer
  • The vast majority of the population associates Blockchain with cryptocurrency Bitcoin; however, there are many other uses of blo
    12·1 answer
  • Write and application that reads five integers from the user and determines and prints the largest and the smallest integers. Us
    7·1 answer
  • A(n) _____ is a network connection device that can build tables that identify addresses on each network.
    10·1 answer
  • A(n) ________ portal offers a personalized, single point of access through a web browser to employees located inside and outside
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!