AMCAT Automata Fix Sample Question-6

Program 6

To Lower Case

write logical part for the program to Convert Binary to Decimal by using the given function.

Example 1:

Input: “0001”
Output: “1”

Example 2:

Input:  “0010”
Output: “2”

Example 3:

Input: “0100”
Output: “3”