Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I only Need the ADA program language of this assignment, if anyone could possibly type it in a compiler that would be great. Just the

image text in transcribedI only Need the ADA program language of this assignment, if anyone could possibly type it in a compiler that would be great. Just the ADA version, not python or Visual Basic
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 00w2 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's

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

1. Design an effective socialization program for employees.

Answered: 1 week ago