Levels Tought:
Elementary,High School,College,University,PHD
Teaching Since: | May 2017 |
Last Sign in: | 259 Weeks Ago |
Questions Answered: | 20103 |
Tutorials Posted: | 20155 |
MBA, PHD
Phoniex
Jul-2007 - Jun-2012
Corportae Manager
ChevronTexaco Corporation
Feb-2009 - Nov-2016
Write a Mathematica function that converts a decimal integer to its hexadecimal ( base-16 ) equivalent. Use the "decimalToBinary" function as your guide, but bear in mind that you MUST CONVERT THE DIGITS 10 TO 15 to their hexadecimal equivalents or you will lose a lot of credit for this problem! Hints: Remember that in the hexadecimal number system the letter "A" represents 10, "B" represents 11, "C" represents 12, "D" represents 13, "E" represents 14 and finally "F" represents 15. I strongly recommend that you convert all numbers in your output list to their String equivalents using Mathematica's ToString command. Then use replacement rules to change "10" to "A" and "11" to "B"
Â
its #2 on the attached file (the file is a pdf so all of you can access it too look over, but mathematica will be needed for this i believe)
Hel-----------lo -----------Sir-----------/Ma-----------dam----------- T-----------han-----------k Y-----------ou -----------for----------- us-----------ing----------- ou-----------r w-----------ebs-----------ite----------- an-----------d a-----------cqu-----------isi-----------tio-----------n o-----------f m-----------y p-----------ost-----------ed -----------sol-----------uti-----------on.----------- Pl-----------eas-----------e p-----------ing----------- me----------- on----------- ch-----------at -----------I a-----------m o-----------nli-----------ne -----------or -----------inb-----------ox -----------me -----------a m-----------ess-----------age----------- I -----------wil-----------l