write a program using any programming language to finish following 2 projoects

Project 1

The following algorithm converts decimal to binary using repeated division by 2.

Write a program using any programming language to execute repeated division by 2.

Project 2

The following algorithm is division algorithm. Write a program using any programming language for division algorithm.