Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I only need the ada version, if you could make the code readable and clear that would be great Calculating Binary In this assignment, you
I only need the ada version, if you could make the code readable and clear that would be great
Calculating Binary In this assignment, you are asked to solve a problem using 3 different programming languages: Python (33.33%), Ada (33.33%), and VB (33.33%). You are required to find a compiler for each of the mentioned languages and test them on your own machines The Problem Given a binary String as input, composed of O's and I's, give the decimal value for the input. Algorithm Given a binary string, b, of size, n, indexed 0,1,2,.,n-1. Denote character's integer value of b as b, such that I = 0, 1, 2, , n-1. The decimal value, d = 4-1 2 + bn-2 21 + + bo 2"-1 Sample Output 120013 EEFoL Sot a binary Ezzaz: Set binary O0AS EEEOEE Not binary Enter a binary Enter binary 10927 Other Requirements .As shown in the sample output, a validation must be performed to check if the String is binary .Add comments to your code to help make it more understandable .Add a comment at the top of the code that includes your name(s), date, and assignment number. Note: names(s) in case you worked on your assignments in groups of two'sStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started