Şimdi Ara

c++ odevime yardım?!

Daha Fazla
Bu Konudaki Kullanıcılar: Daha Az
1 Misafir - 1 Masaüstü
5 sn
2
Cevap
0
Favori
720
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
0 oy
Öne Çıkar
Sayfa: 1
Giriş
Mesaj
  • 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..







  • hallettim arkadaslar. konu silinebilir
  • 
Sayfa: 1
- x
Bildirim
mesajınız kopyalandı (ctrl+v) yapıştırmak istediğiniz yere yapıştırabilirsiniz.