programming
posted by layal .
Write an algorithm that converts a decimal number to binary. Then, give the bigO for your algorithm.
Respond to this Question
Similar Questions

mat 156
The following algorithm give a correct answer 488 +_65_ 5^1 5^1 3 Explain why the algorithm works 
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 … 
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 … 
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. … 
programming
Write an algorithm that prints the factorial for the first 20 even numbers. Then, give the bigO for your algorithm. 
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] 
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 … 
programming
1. Assume there are ntyres that could be used by car, tricycle and bicycle. Write an algorithm to accept ntyres and generate all the combinations of cars, tricycle and bicycle that would exhaust the ntyres. 2. Assume S is a string … 
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? 
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 …