SuperTutor

(15)

$15/per page/Negotiable

About SuperTutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Business & Finance See all
Accounting,Business & Finance,Economics,Engineering,HR Management,Math Hide all
Teaching Since: Apr 2017
Last Sign in: 327 Weeks Ago, 5 Days Ago
Questions Answered: 12843
Tutorials Posted: 12834

Education

  • MBA, Ph.D in Management
    Harvard university
    Feb-1997 - Aug-2003

Experience

  • Professor
    Strayer University
    Jan-2007 - Present

Category > Programming Posted 18 May 2017 My Price 8.00

Prompt the user for a single character

Need javascript code it's own file and the html linked to js 



Prompt the user for a single character. Check for valid data.
Use parseAscii() to assign the ascii value of that character to a variable.
Use parseBin() to convert the ascii value to a binary value. Store the result in another variable.
Store each of the individual 1's and 0's of the binary value into an array using the split() method.
Make sure there are exactly 8 binary digits.
Loop through the array of binary digits, and output "true" for each 1 and "false" for each 0 to an element on your page.

 

Our teams are attempting to send a secret message between two teams by writingan encrypted message on their shirts.Given two pre-made methods (parseAscii, and parseBin) Prompt the user for asingle character, convert the character to ascii usingthe given parseAscii function, then convert the ascii into an 8-digit binarynumber using the parseBin function.Store each of the individual 1's and 0's of the binary number into an arrayusing the split method. Finally,loop through the array and for every element write "true" to the page if 1 andwrite "false" to the page if 0..Prompt the user for a single character. Check for valid data.Use parseAscii() to assign the ascii value of that character to a variable.Use parseBin() to convert the ascii value to a binary value. Store the result inanother variable.Store each of the individual 1's and 0's of the binary value into an array usingthe split() method.Make sure there are exactly 8 binary digits.Loop through the array of binary digits, and output "true" for each 1 and"false" for each 0 to an element on your page.

Attachments:

Answers

(15)
Status NEW Posted 18 May 2017 08:05 AM My Price 8.00

-----------

Attachments

file 1495097209-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)