Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I want you to modify this code to give me output as just the mantissa part. remaining all are good. just modify the code in

image text in transcribed

I want you to modify this code to give me output as

image text in transcribed

just the mantissa part.

remaining all are good. just modify the code in c language

// to converts mantissa into 24 bit binary string stored in mantissastr char mantissastr[25]; //it stores 24 bits binary and a nu11 character for termination for (int i=0;i=1.0?1 ' : ' 0 '; //after the loop is mantissa is 1 then binary is stored as 1 or else in the mantisastr string if ( mantissa >=1.0){ mantissa =1.0 / after setting the binary digit in mantissastr the code subtracts 1.0 from mantissa if it is greater than or equal to 1.0 so, it removes power of 2 that was included in binary / \}3 mantissastr [24]=\0;// it adds nu11 value to terminate the string Input a real number: 1 Inpu The IEEE 754 Single Precision is Sign: 1 Mantissa (24 bit): 100000000000000000000000 Exponent: 0111111

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

Beginning Apache Cassandra Development

Authors: Vivek Mishra

1st Edition

1484201426, 9781484201428

More Books

Students also viewed these Databases questions

Question

1. Answer the question, Who should do the appraising?

Answered: 1 week ago

Question

help asp

Answered: 1 week ago

Question

What roles have these individuals played in your life?

Answered: 1 week ago