ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

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

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 12 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

(11)
Status NEW Posted 12 May 2017 02:05 AM My Price 8.00

-----------

Attachments

file 1494557333-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)