# Decimal Equivalent to Binary Number - Homework

Page 1 of 1

## 2 Replies - 3649 Views - Last Post: 25 September 2006 - 04:42 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=18870&amp;s=04af336688288b3c80db999d8f10adcd&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 master0628

Reputation: 0
• Posts: 2
• Joined: 22-September 06

# Decimal Equivalent to Binary Number - Homework

Posted 22 September 2006 - 03:30 PM

i need help with this method. if anyone can help with this i would apreicated it. A method called getSignedValue. This method should calculate and return the decimal number equivalent to the binary number stored in the object. This method should simply return the integer equivalent of the Binary number object. The calculation is performed assuming that the binary number object is in 2’s compliment notation and therefore could produce a positive or a negative result. Note: this method should NOT change the data stored inside the object

Is This A Good Question/Topic? 0

## Replies To: Decimal Equivalent to Binary Number - Homework

• g+ + -o drink whiskey.cpp

Reputation: 248
• Posts: 13,507
• Joined: 12-July 02

## Re: Decimal Equivalent to Binary Number - Homework

Posted 22 September 2006 - 06:11 PM

The site has a policy by which we prefer to see a good faith effort on the part of the user before providing source code in the matter of academic assignments. If you could post the code you've written in an attempt to complete the assignment, our members would be pleased to provide some guidance.

### #3 lipstixgal

Reputation: 0
• Posts: 6
• Joined: 22-September 06

## Re: Decimal Equivalent to Binary Number - Homework

Posted 25 September 2006 - 04:42 AM

Amadeus, on 22 Sep, 2006 - 06:11 PM, said:

The site has a policy by which we prefer to see a good faith effort on the part of the user before providing source code in the matter of academic assignments. If you could post the code you've written in an attempt to complete the assignment, our members would be pleased to provide some guidance.

I have the solution to your problem at hand..........
but ethics hold me back from telling you because.....
where does it say do your homework?

Page 1 of 1

 .related ul { list-style-type: circle; font-size: 12px; font-weight: bold; } .related li { margin-bottom: 5px; background-position: left 7px !important; margin-left: -35px; } .related h2 { font-size: 18px; font-weight: bold; } .related a { color: blue; }