Braille is a writing system used to read by touch instead of by sight. Each character is composed of 6 dots in a 2x3 grid, where each dot can either be a bump or be flat (no bump). You plan to translate the signs around the space station to Braille so that the minions under Commander Lambda's command can feel the bumps on the signs and "read" the text with their touch. The special printer which can print the bumps onto the signs expects the dots in the following order:
So given the plain text word "code", you get the Braille dots:
11 10 11 10
00 01 01 01
00 10 00 00
Read more: [url removed, login to view]
where 1 represents a bump and 0 represents no bump. Put together, "code" becomes the output string "100100101010100110100010".
Write a function answer(plaintext) that takes a string parameter and returns a string of 1's and 0's representing the bumps and absence of bumps in the input string. Your function should be able to encode the 26 lowercase letters, handle capital letters by adding a Braille capitalization mark before that character, and use a blank character (000000) for spaces. All signs on the space station are less than fifty characters long and use only letters and spaces.
To provide a Python solution, edit [url removed, login to view]
To provide a Java solution, edit [url removed, login to view]
(string) plaintext = "code"
(string) plaintext = "Braille"
(string) plaintext = "The quick brown fox jumped over the lazy dog"
33 freelancers are bidding on average $29 for this job
Hello. It looks like pretty easy task. Relevant Skills and Experience I have much experience with Java in order to complete this task in short time Proposed Milestones $12 AUD - Milestone Payment
Dear sir. I am very interested to your project. I have a good skill and experience in java programming. I can finish this project in perfect. Please contact me. Thanks. Proposed Milestones $25 AUD - initial