Thread: Number Conversions

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    5

    Thumbs up Number Conversions

    Hi, this is my first time posting to this forum so please let me know if I'm doing anything wrong.
    I would like to know how to do the following...
    a. Write the internal representation of “17” in ASCII using two binary numbers
    b. Write 17 and -17 in two’s complement notation. Use 8 bits for each
    c. Write 0100101111112 in hexadecimal and 3F16 in binary

    I would appreciate your help, thanks.

  2. #2
    Registered User
    Join Date
    Nov 2007
    Posts
    164
    what do you mean by internal representation ? i would also like to code what your doing as i also a noob

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    Welcome to the boards. If you haven't already done so then please take some time to familiarise yourself with the faq:
    http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

    Make sure you have a look at the the posting guidelines:
    http://cboard.cprogramming.com/annou...ouncementid=51
    Following the rules will ensure you get a prompt answer to your question.

    Remember, too, that the board has a search facility, a link is at the top of your screen:
    http://cboard.cprogramming.com/search.php
    It will often get you a quicker answer to your questions than waiting for a response to one you have posted.


    If you have any questions about this you may ask or you can contact one of our forum leaders:

    http://cboard.cprogramming.com/showgroups.php

    Also, make sure to read the homework policy. If you have a specific question about one of your assignments please ask it. Show what you've tried and what exactly you're having trouble with. This board is not a place to have people do your homework for you.

  4. #4
    Registered User
    Join Date
    May 2008
    Posts
    5
    thank you daved.
    what do you mean by internal representation ?
    i think it means how that is represented by the actual computer in memory, in binary representation. (someone correct me if I'm wrong)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with this compiler error
    By Evangeline in forum C Programming
    Replies: 7
    Last Post: 04-05-2008, 09:27 AM
  2. Calculating next prime number
    By anilemon in forum C Programming
    Replies: 8
    Last Post: 04-17-2006, 10:38 AM
  3. Prime number program problem
    By Guti14 in forum C Programming
    Replies: 11
    Last Post: 08-06-2004, 04:25 AM
  4. parsing a number
    By juancardenas in forum C Programming
    Replies: 1
    Last Post: 02-19-2003, 01:10 PM
  5. Random Number problem in number guessing game...
    By -leech- in forum Windows Programming
    Replies: 8
    Last Post: 01-15-2002, 05:00 PM