• 100% Satisfaction Guarantee

Dr. Arthur Rubin, Professional w/Adv. Degree
Category: Homework
Satisfied Customers: 1492
Experience:  Ph.D. in Mathematics, 1978, from the California Institute of Technology, over 20 published papers
13714381
Dr. Arthur Rubin is online now

# C programming questions

### Resolved Question:

C programming questions:

To return 1 if 'f' is 0.0 or -0.0. Returns 0 otherwise.

To return the +1 if the sign of 'f' is positive, or -1 otherwise.

To return the exponent (the X of 2^X) of the floating point 'f' from 'DENORMALIZED_POWER_OF_2' to 'INFINITE_POWER_OF_2'. To return the mantissa of 'f', with the HIDDEN_BIT or-ed in if 'f' is not denormalized. To return the 0x0 when given +1, or 0x1 when given -1.

To return the exponent field's bit pattern for power of 2 'powerOf2'. If 'powerOf2' is greater or equal to 'INFINITE_POWER_OF_2'

To return the mantissa _field_, 'mantissa' with its hidden bit turned off.

See which has the bigger power-of-2: 'f' or 'g' // Shift the smaller of the two by the difference in power of 2. // Then add the mantissas. // What is the value of 'powerOf2'? What is the value of 'sign'? // How do you detect when the mantissa overflows? // What do you do when the mantissa does overflow?

I have the file that includes everything needed to answer these questions. The file is attached.

Submitted: 2 years ago.
Category: Homework
Expert:  R.R. Jha replied 2 years ago.
Hello,

Thanks
Customer: replied 2 years ago.

This has the requirements and the code written so far. Let me know if you have any other questions.

Thank you.

Expert:  R.R. Jha replied 2 years ago.
Received it. What's the due date?
Customer: replied 2 years ago.

Sunday night.

Expert:  R.R. Jha replied 2 years ago.
Ok, I'll review the code and get back to you by tomorrow.
Customer: replied 2 years ago.

Ok sounds good.

Expert:  R.R. Jha replied 2 years ago.
Ok
Customer: replied 2 years ago.
So how is it going?
Customer: replied 2 years ago.
I need it by tomorrow please.
Expert:  R.R. Jha replied 2 years ago.
Hi Sana,

I'm working on it. I'll let update you in a few hours.
Customer: replied 2 years ago.
Ok thank you
Expert:  R.R. Jha replied 2 years ago.
You're welcome
Expert:  R.R. Jha replied 2 years ago.
I tried but seems to be more complex than I thought. I'm opting out to open your quesetion to other experts. You'll receive a reply as soon as another expert joins you.

Regards
Customer: replied 2 years ago.
Relist: Other.
Customer: replied 2 years ago.

C programming questions:

To return 1 if 'f' is 0.0 or -0.0. Returns 0 otherwise.

To return the +1 if the sign of 'f' is positive, or -1 otherwise.

To return the exponent (the X of 2^X) of the floating point 'f' from 'DENORMALIZED_POWER_OF_2' to 'INFINITE_POWER_OF_2'. To return the mantissa of 'f', with the HIDDEN_BIT or-ed in if 'f' is not denormalized. To return the 0x0 when given +1, or 0x1 when given -1.

To return the exponent field's bit pattern for power of 2 'powerOf2'. If 'powerOf2' is greater or equal to 'INFINITE_POWER_OF_2'

To return the mantissa _field_, 'mantissa' with its hidden bit turned off.

See which has the bigger power-of-2: 'f' or 'g' // Shift the smaller of the two by the difference in power of 2. // Then add the mantissas. // What is the value of 'powerOf2'? What is the value of 'sign'? // How do you detect when the mantissa overflows? // What do you do when the mantissa does overflow?

I have the file that includes everything needed to answer these questions. The file is attached.

Expert:  Dr. Arthur Rubin replied 2 years ago.
Can you still use the answer? I think I can do it within an hour, although I can't test it at the moment.
Customer: replied 2 years ago.

Yes I still need an answer. That would be great. Thank you

Expert:  Dr. Arthur Rubin replied 2 years ago.

You need to spend \$3 to view this post. Add Funds to your account and buy credits.
Dr. Arthur Rubin, Professional w/Adv. Degree
Category: Homework
Satisfied Customers: 1492
Experience: Ph.D. in Mathematics, 1978, from the California Institute of Technology, over 20 published papers

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

### What Customers are Saying:

• Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
< Previous | Next >
• Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
• This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
• Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
• I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
• Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
• Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
• He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here. Diane Dallas, TX

• ### LogicPro

#### Satisfied Customers:

4925
Expert in Java C++ C C# VB Javascript Design SQL HTML
< Last | Next >

### LogicPro

#### Satisfied Customers:

4925
Expert in Java C++ C C# VB Javascript Design SQL HTML

### Manal Elkhoshkhany

#### Satisfied Customers:

4538
More than 5000 online tutoring sessions.

### Linda_us

#### Satisfied Customers:

3138
Post Graduate Diploma in Management (MBA)

### Chris M.

#### Satisfied Customers:

2602
Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)

### F. Naz

#### Satisfied Customers:

2126
Experience with chartered accountancy

### Bizhelp

#### Satisfied Customers:

1887
Bachelors Degree and CPA with Accounting work experience