Question: Write your programs using C++ In this assignment you must not use your programming language support (nor any libraries) for arbitrary length arithmetic. In your

Write your programs using C++

In this assignment you must not use your programming language support (nor any libraries) for arbitrary length arithmetic.

Write your programs using C++ In this assignment you must not use

In your program you must not convert the input binary vectors representing numbers to decimals and use the built-in arithmetic operations on decimals. The operations must be performed on the binary vectors.

include a brief description of the algorithms you implemented, a list of test cases you tried and the results and compilation and execution instructions for your programs.

Problem 2. Design and implement an algorithm that takes a positive integer N and two non-negative integers x andy, and returns x mod N. Assume that x y EN-1, and that, Nxand y are represented as vectors of binary digits (like in Homework 2 and Problem 1) Test your program for N = [0, 0, 1, 0, 1] 5. IV Problem 2. Design and implement an algorithm that takes a positive integer N and two non-negative integers x andy, and returns x mod N. Assume that x y EN-1, and that, Nxand y are represented as vectors of binary digits (like in Homework 2 and Problem 1) Test your program for N = [0, 0, 1, 0, 1] 5. IV

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!