{"id":7085,"date":"2025-08-01T00:01:11","date_gmt":"2025-08-01T07:01:11","guid":{"rendered":"https:\/\/c-for-dummies.com\/blog\/?p=7085"},"modified":"2025-08-08T08:29:15","modified_gmt":"2025-08-08T15:29:15","slug":"your-name-in-base-36","status":"publish","type":"post","link":"https:\/\/c-for-dummies.com\/blog\/?p=7085","title":{"rendered":"Your Name in Base 36"},"content":{"rendered":"<h2>Difficulty: &#9733; &#9733; &#9734; &#9734;<\/h2>\n<p>Last month, I completed my <a href=\"https:\/\/c-for-dummies.com\/blog\/?p=7037\">series on Base 36<\/a>, which uses digits 0 through 9 and A through Z to represent values. The use of these digits means that common words can represent values in base 36. In fact, your name is a base 36 value. But what is it?<br \/>\n<!--more--><br \/>\nYour challenge for this month&#8217;s Exercise is to find out!<\/p>\n<p>Write a program that prompts the user for their name. The code must massage the input, converting the text into uppercase letters A through Z only.<\/p>\n<p>You can pull functions from the examples presented in earlier Lessons, such as <a href=\"https:\/\/c-for-dummies.com\/blog\/?p=7067\">the <em>b36_decimal()<\/em> function<\/a>, which is required to obtain the base 36 value of your name.<\/p>\n<p>Here&#8217;s a sample run of my solution:<\/p>\n<p><code>Enter your name: dan<br \/>\nBase 36 DAN in decimal is 17231<\/code><\/p>\n<p>And a longer example:<\/p>\n<p><code>Enter your name: Jeremiah<br \/>\nBase 36 JEREMIAH in decimal is 1521051222041<\/code><\/p>\n<p>Obviously, there is an overflow issue with long names; my solution can&#8217;t fathom base 36 values longer than ten letters. Even so, this exercise stands as presented. Please try coding the solution on your own, before you check out <a href=\"https:\/\/c-for-dummies.com\/blog\/?p=7091\">my solution<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Because of its notation, base 36 translates words into values. <a href=\"https:\/\/c-for-dummies.com\/blog\/?p=7085\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-7085","post","type-post","status-publish","format-standard","hentry","category-exercise"],"_links":{"self":[{"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7085"}],"version-history":[{"count":3,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7085\/revisions"}],"predecessor-version":[{"id":7118,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7085\/revisions\/7118"}],"wp:attachment":[{"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}