Write a script that will repetitively ask the user for a


Question: You were just hired for a summer internship with one Atlanta's best software companies; however, on your first day of work you learn that for the next 3 months, the only job you will have is to convert binary (base 2) numbers into decimal numbers (base 10). You decide to write a script that will repetitively ask the user for a binary number and return its decimal equivalent until an illegal number (one containing digits other than 0 or 1) is entered.

The number entered should contain only the digits 0 and 1. The rightmost digit has the value 2 and the digit N places to the left of that has the value 2N.

For case: entering 110101 returns 53 = 25 + 24 + 22 + 20 you must use iteration to solve this problem. 

Note: The input (...) function prompts the user for a value and returns the numerical result.

You have to satisfy the requirements specific in the instruction. I cannot seem to get this to work for some reason could somebody provide me solution?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a script that will repetitively ask the user for a
Reference No:- TGS0957040

Expected delivery within 24 Hours