Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Decimal -> Hexadecimal
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
TW iz Rippin




PostPosted: Fri Mar 02, 2012 4:03 pm   Post subject: Decimal -> Hexadecimal

What is it you are trying to achieve?
A program that converts decimals to hexadecimals


What is the problem you are having?
Cant figure out the equations


Describe what you have tried to solve this problem
Search the web Sad


Please specify what version of Turing you are using
4.1.1
Sponsor
Sponsor
Sponsor
sponsor
crossley7




PostPosted: Fri Mar 02, 2012 5:18 pm   Post subject: RE:Decimal -> Hexadecimal

start by converting figuring out how to convert to binary and what the value of a base does in relation to the number. For example I will list the first few numbers in binary, decimal and hexadecimal to help.

Analyse these values and figure out what needs to happen and how base relate to each other. (hint: Use exponents)

Decimal Binary Hexadecimal
1 1 1
2 10 2
3 11 3
4 100 4
5 101 5
6 110 6
7 111 7
8 1000 8
9 1001 9
10 1010 A
11 1011 B
12 1100 C
13 1101 D
14 1110 E
15 1111 F
16 10000 10
TW iz Rippin




PostPosted: Fri Mar 02, 2012 6:03 pm   Post subject: RE:Decimal -> Hexadecimal

ok thanks a lot bro... will test some things Smile
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: