Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Java or C# program which correctly calculates add, subtract, multiply and divide for our minifloat binary format using an algorithm you code yourself.

Write a Java or C# program which correctly calculates add, subtract, multiply and divide for our minifloat binary format using an algorithm you code yourself. Please leave frequent comments explaining your code.

-Your program only to work on two numbers at a time.

-For each number store the sign, exponent (4 bits) and mantissa separately.

EXAMPLE:

Struct miniflaot{ Int sign; // sign, actually 1 bit Int exponent; // this is the exponent and is 4 bits long (0-15) Int mantissa; //this is the fraction part and is 3bits long (0-7) }

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

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

3. Show your interest in your students as individuals.

Answered: 1 week ago

Question

List and describe three behavioral leadership theories.

Answered: 1 week ago