Answered step by step
Verified Expert Solution
Question
1 Approved Answer
solve using C++ Required Problem-Comprehensive 4*). Write a program to comert a 64 bit binary floating point number into a base decoma. Le any base,
solve using C++
Required Problem-Comprehensive 4*). Write a program to comert a 64 bit binary floating point number into a base decoma. Le any base, binary numbers can have a decimal point: 1002.11 a perfectly valid barber. Each it to the left of the decimal point stands for a power of 22,24,24). Similarly, each it to the right stands for a negative power (2,2,100.11 - 242..3... The decimal point however cannot be represented as a 1 or 0. To solve this problem, all fractional binary numbes sed by computers are represented in scientific notation mantissax For example, 2001.11, would become 1.60113, * 2! To create floating point number, the scientific notation is compressed into block of bits. Binary numbers stored as doubles take the following form COSC 225 522 traction exponent sign 1 bit 52 69 Example 100000000100011100 Sign A single beter of the tumberpote umber, 1 given the engine Number out Exponent 11 streeponent-003. ample above, 30000003 302 3026-12) representing the win of 1023- awtore export Marta Fraction The 52-benar represents the significants of the umber. The first stands for the second land Since scientification leaves only one option for the theft of the time to the manisht, the masa 29.?...21875.1.23075 Converting to a decimal Puhar in the entification santissa x ment se, 1.228759.75 Input will be from a data fle; the first line will contain a single integer that indicates the berol data sets to follow. Each data set will contain a 64-bit floating point binary number onene. The number will be between 1000000 and 1000000... Output to the screen each data set labeled with the floating point number as a decimal value rounded to 2 places. Let the user input the fine from the keyboard. Refer to the sample output below Sample File: 3 0.00000030000211113330303030100010000111000 110000000001100110011001100110011001100110011011011001103 10000301100110111100011303303021001111330331001000111111 Sample Run: Enter File name: floating.at Set 1: 3.34 Set 2: 4:20 Set 3: 12029654.50 Name the program: Poat Toase.cpp or Float Toliasjava where xx are your Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started