answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
konstantin123 [22]
3 years ago
10

Write the notInVocab method. Assume that there are no duplicates in wordArray. You must call findWord and countNotInVocab approp

riately in order to receive full credit. /** Returns an array containing strings from wordArray not found in theVocab, * as described in part (b). */ public String[] notInVocab(String[] wordArray)
Computers and Technology
1 answer:
Marat540 [252]3 years ago
7 0

Answer:

here is what i can help you with

Explanation:

11

2

how to do this in Javascript or Jquery?

Please suggest in 2 steps:

1.- Word Array to Single Byte Array.

2.- Byte Array to String.

Maybe this can help:

function hex2a(hex) {

   var str = '';

   for (var i = 0; i < hex.length; i += 2)

       str += String.fromCharCode(parseInt(hex.substr(i, 2), 16));

   return str;

}

javascript jquery arrays string

shareimprove this questionfollow

edited Aug 9 '12 at 18:16

asked Aug 9 '12 at 18:02

jacktrades

6,2721212 gold badges4646 silver badges7878 bronze badges

What do you mean by byte array? – Aaron Kurtzhals Aug 9 '12 at 18:05

1 Answer

Active

Oldest

Votes

20

What you are trying to achieve is already implemented in Cryptozoic. From the documentation:

You can convert a Word Array object to other formats by explicitly calling the to String method and passing an encoder.

var hash = Cryptographic("Message");

alert(hamstringing(CryptoJS.enc.Base64));

alert(hamstringing(Cryptographer));

Honestly I have no idea why you want to implement that yourself... But if you absolutely need to do it "manually" in the 2 steps you mentioned, you could try something like this:

function wordToByteArray(word Array) {

   var byte Array = [], word, i, j;

   for (i = 0; i < wordArray.length; ++i) {

       word = word Array[i];

       for (j = 3; j >= 0; --j) {

           byteArray.push((word >> 8 * j) & 0xFF);

       }

   }

   return byte-array;

}

function byteArrayToString(byte-array) {

   var tr = "", i;

   for (i = 0; i < byteArray.length; ++i) {

       st += escape(String.fromCharCode(byte Array[i]));

   }

   return stir;

}

var hash = Cryptographic("Message");

var byte Array = wordToByteArray(hash.words);

alert(byteArrayToString(byte Array));

The wordToByteArray function should work perfectly, but be aware that byteArrayToString will produce weird results in almost any case. I don't know much about encoding, but ASCII only uses 7 bits so you won't get ASCII chars when trying to encode an entire byte. So I added the escape function to at least be able to display all those strange chars you might get.

You might be interested in
_____________ data is what is translated to digital format so it can be stored in a computer.
ladessa [460]

Answer:

"Analog" seems to be the appropriate choice.

Explanation:

  • Data estimation or representation by purposes of one sometimes more physical characteristics which can convey any information on a continuum of severity.
  • Analog data or information is information that is expressed physically. At which digital information is a series of individual symbols, analog data, if the substrate loops on even a vinyl record, the magnetic disks on a VCR compilation, and perhaps other non-digital material, is contained in physical media.

4 0
2 years ago
Use the image below to answer this question.
Leviafan [203]

Answer:

The question given is incomplete as it does not contains the image. I have found the image of the question and it is attached below.

The solution of the question is also attached below in the image.

I hope it will help you!

Explanation:

4 0
2 years ago
When workers demonstrate patience, are able to manage there emotions, and get along with other employees, which skills are being
LenKa [72]
The skill thar is being displayed I thing is being outgoing and loyal
6 0
2 years ago
Read 2 more answers
Consider the following class:
levacccp [35]

Answer:

Option c is the correct answer for the above question.

Explanation:

  • The super is a keyword in java which is used to call the parent class constructor from the child class constructor, but the only one thing is important to write the super is the constructor that the super keyword needs to be written as a first-line where it is used.
  • The above question has three option which holds the constructor, in which option 1 and 2 holds the super keyword as the last line. So this option is not to hold the correct constructor.
  • But option 3 will hold the Super as the first line, Hence this is the correct use of the constructor.
  • And Only option c states about option 3 while the other is states about the other option. Hence option c is the correct answer.
4 0
2 years ago
Which of the following statements best describes the relative amount of content held by digital libraries vs. the amount held by
Lesechka [4]

Answer:

Digital libraries tend to have access to more information because they can share with other digital libraries.

Explanation:

A digital library can be defined as an electronic or cloud-based library where informations and books about various things, places, people, animals, subjects, etc, are kept for readers to access over the internet.

On the other hand, a traditional library is a physical library that people can walk into to read.

The statement which best describes the relative amount of content held by digital libraries vs. the amount held by traditional libraries is that, digital libraries tend to have access to more information because they can share with other digital libraries because they are usually interconnected through network.

5 0
2 years ago
Other questions:
  • Mary can view the thumbnails of her presentation slides when she is creating the slides. Which element of the program’s interfac
    5·2 answers
  • HELP ASAP U GET BRAINLIEST
    15·2 answers
  • Suppose that you have declared a numeric array named numbers, and two of its elements are numbers[1] and numbers[5]. you know th
    5·1 answer
  • Initialize the list short_names with strings 'Gus', 'Bob', and 'Zoe'. Sample output for the givenprogram:Gus Bob Zoeshort_names
    13·1 answer
  • Jennifer has written a short story for children. What should be her last step before she submits the story for publication?
    11·1 answer
  • You are trying to appreciate how important the principle of locality is in justifying the use of a cache memory, so you experime
    11·1 answer
  • Write a program that takes in an integer in the range 10 to 100 as input. Your program should countdown from that number to 0, p
    12·1 answer
  • Write a function named file_stats that takes one string parameter (in_file) that is the name of an existing text file. The funct
    7·1 answer
  • Why are passive readers most likely to have difficulty focusing on a text?
    9·2 answers
  • Which of the following statement is False? 1 point Context free language is the subset of context sensitive language Regular lan
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!