Arama butonu
Bu konudaki kullanıcılar: 1 misafir, 1 mobil kullanıcı
1
Cevap
962
Tıklama
0
Öne Çıkarma
c++ odevime yardım?!
S
19 yıl (205 mesaj)
Teğmen
Konu Sahibi

The purpose of this assignment is to give practice programming in writing functions, developing algorithms and using loop structures.


Your program will ask for a floating point number and represent it in IEEE 754 Floating Point Representation Standard as described in class. The format is also given in the Figure below.

For example, if the user enters 856064, then your program needs to print out

because 856064 = 209 * 212

and 209 = (11010001)2

thus, 856064 = 11010001 * 212 = 1.1010001 * 219

Ignoring the “1.”, mantissa is 1010001 (filled with 0’s to the right)
Adding the bias, the exponent is 19+128 = 147 = (10010011)2.


The number the user enters must be first converted to binary. And then, exponent and mantissa must be calculated by deciding where the binary point must be located because in this representation exponent is adjusted so that leading bit of mantissa is 1, and thus, there is no need to store it.

The binary representation and the value of the number have the following relationship:

The value of the binary representation is +/- 1.significand x 2biasedExponent - bias

Define “bias” as a constant and set it to 128.


soyle bir odevim var hic birsey anlamıyorum?..
bana sevabina yardım edebilecek birisi yokmu acaba?
ama ACELE lazım bu..

DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.

Üye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.

Üye Ol Şimdi Değil



S
19 yıl (205 mesaj)
Teğmen
Konu Sahibi

hallettim arkadaslar. konu silinebilir



DH Mobil uygulaması ile devam edin. Mobil tarayıcınız ile mümkün olanların yanı sıra, birçok yeni ve faydalı özelliğe erişin. Gizle ve güncelleme çıkana kadar tekrar gösterme.