programming

posted by .

Write an algorithm that converts a decimal number to binary. Then, give the big-O for your algorithm.

  • programming -

    ggggggggggg

  • programming -

    c++ program that conver binary in to decimal examples

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. mat 156

    The following algorithm give a correct answer 488 +_65_ 5^1 5^1 3 Explain why the algorithm works
  2. programming

    Write pseudocode to accept as input names of an unspecified number of equipment rented, the name of the company, the number of days the equipment was rented for and the sales amount. The algorithm must determine the number of times …
  3. programming

    Write pseudocode (using pascal) to accept as input names of an unspecified number of equipment rented, the name of the company, the number of days the equipment was rented for and the sales amount. The algorithm must determine the …
  4. programming

    Ancient square root algorithm. The Babylonian algorithm to compute the square root of a number n is as follows:      1. Make a guess at the answer (you can pick n/2 as your initial guess).      2. Compute r = n / guess      3. …
  5. programming

    Write an algorithm that prints the factorial for the first 20 even numbers. Then, give the big-O for your algorithm.
  6. programming

    1. Write a structured algorithm that prompts the user to input two numbers. The algorithm should calculate and print the sum & product of the two numbers [21/2]
  7. Visual Basic (Computer Programming)

    ALGORITHM EXERCISES 1. Wilma Peterson is paid by the hour. She would like a program that both calculates and displays her weekly gross pay. For this exercise, you do not need to worry about overtime pay, as Wilma never works more than …
  8. programming

    1. Assume there are n-tyres that could be used by car, tricycle and bicycle. Write an algorithm to accept n-tyres and generate all the combinations of cars, tricycle and bicycle that would exhaust the n-tyres. 2. Assume S is a string …
  9. programming ( qbasic)

    i was given this program by my teacher. it converts decimal number to binary number.. Why is that FIX kept in front of (n/2) ...6th line of the program. why is that FIX written and why?
  10. pseudo code algorithm

    Write a pseudo code algorithm which: • Determines the average weight of a person over a particular year. • For each month, your algorithm should input the person's weight for that month (a positive real number). Your algorithm …

More Similar Questions