I. Write a program to show a menu of paragraph on screen as below:
Which of the following would you like to do?
 1.
Convert a number from the decimal system (base 10) to the binary system (base 2).
 2.Convert a number from the binary system (base 2) to the decimal system (base 10).
Enter your selection ( 1 or 2 ):


Store the user's choice.

Call the function, DecToBin, when user select 1.
Call the function, BinToDec, when user select 2.

II. Implement the above two functions and do the job for user.

III. Analyze the time for each of the above functions in terms of Big-Oh notation.

IV. Use a computer to get the excution time of program.
Use the following code to count program time
// clock_t is pre-defined type in time.h

clock_t Begin_time, End_time;
int time;
Begin_time = clock();
//......
//.....
//....
End_time = clock();
time = End_time - Begin_time; //duration time

OR
#include <time.h>
// clock_t is pre-defined type.
// CLOCKS_PER_SEC is a pre-defined constant in time.h

clock_t Begin_time, End_time;
double time;
Begin_time = clock();
//......
//.....
//....
End_time = clock();
time = (double)(End_time - Begin_time) / CLOCKS_PER_SEC; //duration time

V. Research deeper in these two topics.  Summarize your reading and your computer work.
     Write a formal paper including all references.
VI. Make a PowerPoint presentation about your topic and present to class.