Đã Đóng

String to Braille converter in Java

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:

1 4

2 5

3 6

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.

Languages

=========

To provide a Python solution, edit [url removed, login to view]

To provide a Java solution, edit [url removed, login to view]

Test cases

==========

Inputs:

(string) plaintext = "code"

Output:

(string) "100100101010100110100010"

Inputs:

(string) plaintext = "Braille"

Output:

(string) "000001110000111010100000010100111000111000100010"

Inputs:

(string) plaintext = "The quick brown fox jumped over the lazy dog"

Output:

(string) "000001011110110010100010000000111110101001010100100100101000000000110000111010101010010111101110000000110100101010101101000000010110101001101100111100100010100110000000101010111001100010111010000000011110110010100010000000111000100000101011101111000000100110101010110110"

Kỹ năng: Java

Xem thêm: text to braille converter, braille to ascii, python braille ascii, braille java code, string to braille python, text to braille java, braille translation algorithm, binary to braille, java writing to a file, java writing, java writing top parser, online java writing investment, java writing specifications, java program takes digits number put list, java writing files windows unix

Về Bên Thuê:
( 30 nhận xét ) Notting Hill, Australia

Mã Dự Án: #14862661

35 freelancer đang chào giá trung bình $29 cho công việc này

it2051229

Hi there, I went through the requirements and I would like to do this project if given the opportunity. Let me know if you are interested. Thanks. Relevant Skills and Experience Java Proposed Milestones $30 AUD - Ini Thêm

$30 AUD trong 1 ngày
(968 Đánh Giá)
7.5
$30 AUD trong 1 ngày
(373 Đánh Giá)
7.4
vano101

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

$12 AUD trong 1 ngày
(594 Đánh Giá)
6.7
$60 AUD trong 1 ngày
(196 Đánh Giá)
6.7
hbxfnzwpf

Relevant Skills and Experience I am very proficient in java. I have 16 years java developing experience now, and have worked for more than 6 years. My work is online game developing, and mainly focus on server side. P Thêm

$50 AUD trong 1 ngày
(45 Đánh Giá)
6.0
$35 AUD trong 1 ngày
(90 Đánh Giá)
5.9
neerajagrawal201

Hi, We are serving in the field of Website & Software Design, HTML, CSS, Java, PHP, C#, javascript, bootstrap, angular.js, .NET, SQL, Biometrics, Android native/hybrid, since 2015. We also started providing service in Thêm

$20 AUD trong 1 ngày
(38 Đánh Giá)
5.0
vorasiddh4it

You can see my last project which are based on Algorithm Development Machine Learning and I can complete your project perfectly. Relevant Skills and Experience We have 10+ years experience in software development. We Thêm

$50 AUD trong 1 ngày
(23 Đánh Giá)
5.2
$35 AUD trong 1 ngày
(6 Đánh Giá)
4.8
yakubpune

MORE THAN 8 years of JAVA Coding experience. * Web programming : 2 years 5 months * Hibernate/Struts/Spring : 2+ years * Database : 1 year 8 months Relevant Skills and Experience * Core Java : 3+ years * Des Thêm

$30 AUD trong 1 ngày
(11 Đánh Giá)
4.6
schoudhary1553

Greetings sir, i am an expert freelancer for this job and your 100% satisfaction is assured if you allow me to serve. I can do this task as per your requirement Relevant Skills and Experience I have the 5 years of ex Thêm

$70 AUD trong 1 ngày
(8 Đánh Giá)
4.3
jboo7

A proposal has not yet been provided

$20 AUD trong 1 ngày
(22 Đánh Giá)
3.8
manuelmartinez93

i cam make this with java if you interested Habilidades y experiencia relevante java Htos propuestos $10 AUD - e

$10 AUD trong 10 ngày
(18 Đánh Giá)
3.8
panjvirsingh

I have excellent expertise in this area, in fact I worked on such project 10 days ago. I would like to offer myself a probable candidate assignment as I am confident of delivering quality output. Relevant Skills and Thêm

$30 AUD trong 1 ngày
(12 Đánh Giá)
3.6
merlincarena

Greeting, Sir! I've checked the URL you gave and examples to introduce myself to Braille deciphering. I can implement your task with no problems and provide an explanation if needed. Relevant Skills and Experience Abo Thêm

$30 AUD trong 1 ngày
(2 Đánh Giá)
3.3
donrob1989

The project sounds really easy and should only take an hour or so to complete. I have read through and understand the desired outcome. Relevant Skills and Experience Java - 9 years experience Proposed Milestones $20 Thêm

$20 AUD trong 1 ngày
(6 Đánh Giá)
2.6
abubakar4248

Hi i am professionally software engineer having +2 years experience in this field i have lot of expertise in java and software development we can discuss details in chat Relevant Skills and Experience Java Proposed M Thêm

$30 AUD trong 1 ngày
(7 Đánh Giá)
3.5
$20 AUD trong 10 ngày
(4 Đánh Giá)
2.3
mathDev00

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

$25 AUD trong 1 ngày
(1 Đánh Giá)
0.8
alamose

I will provide code written in Java that, when compiled, executes exactly as specified in the description. Relevant Skills and Experience I am a computer engineering student on my last year and I am also an experience Thêm

$13 AUD trong 2 ngày
(2 Đánh Giá)
0.6