[Solved] ICSI404 Assignment 3 the Ripple Adder

$25

File Name: ICSI404__Assignment_3_the_Ripple_Adder.zip
File Size: 357.96 KB

SKU: [Solved] ICSI404 – Assignment 3 the Ripple Adder Category: Tag:
5/5 - (1 vote)

This assignment builds on the previous assignment. Now that we have created a longword simulator, we can add and subtract.

Create a class called rippleAdder. You must create these two methods on this class: public static longword add(longword a, longword b) public static longword subtract(longword a, longword b)

The rippleAdder class should have no members and all methods on it should be static.

You may use a loop to create your ripple adder; you must use only operations on the bit class and longword class to implement your rippleAdder. You may not use the getSigned() or getUnsigned() methods you must implement a rippleAdder.

You must provide a test file (rippleAdder_test.java) that implements void runTests() and call it from your main, along with your bit_test.runTests() and longword.runTests(). As with the other tests, these tests must be independent of each other and there must be reasonable coverage. You cannot reasonably test all of the billions of possible combinations, but you can test a few representative samples. Ensure that you test with positive and negative numbers.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] ICSI404  Assignment 3 the Ripple Adder[Solved] ICSI404 Assignment 3 the Ripple Adder
$25