Using the supplied file (lab10.json), write a program that prints each personâs name, along with their friendsâ LAST names. For example, the first line should look like this:Daisy Ingram is friends with Chase, Horton, Rollins.Hint: This particular JSON file starts with a square bracket [. That means that when you load it using the JSON library, it will be a list, rather than a dict.

Answers

Answer 1

How How How How How How How How


Related Questions

Implement the above in c++, you will write a test program named create_and_test_hash.cc . Your programs should run from the terminal like so:
./create_and_test_hash should be "quadratic" for quadratic probing, "linear" for linear probing, and "double" for double hashing. For example, you can write on the terminal:
./create_and_test_hash words.txt query_words.txt quadratic You can use the provided makefile in order to compile and test your code. Resources have been posted on how to use makefiles. For double hashing, the format will be slightly different, namely as follows:
./create_and_test_hash words.txt query_words.txt double The R value should be used in your implementation of the double hashing technique discussed in class and described in the textbook: hash2 (x) = R – (x mod R). Q1. Part 1 (15 points) Modify the code provided, for quadratic and linear probing and test create_and_test_hash. Do NOT write any functionality inside the main() function within create_and_test_hash.cc. Write all functionality inside the testWrapperFunction() within that file. We will be using our own main, directly calling testWrapperFunction().This wrapper function is passed all the command line arguments as you would normally have in a main. You will print the values mentioned in part A above, followed by queried words, whether they are found, and how many probes it took to determine so. Exact deliverables and output format are described at the end of the file. Q1. Part 2 (20 points) Write code to implement double_hashing.h, and test using create_and_test_hash. This will be a variation on quadratic probing. The difference will lie in the function FindPos(), that has to now provide probes using a different strategy. As the second hash function, use the one discussed in class and found in the textbook hash2 (x) = R – (x mod R). We will test your code with our own R values. Further, please specify which R values you used for testing your program inside your README. Remember to NOT have any functionality inside the main() of create_and_test_hash.cc
You will print the current R value, the values mentioned in part A above, followed by queried words, whether they are found, and how many probes it took to determine so. Exact deliverables and output format are described at the end of the file. Q1. Part 3 (35 points) Now you are ready to implement a spell checker by using a linear or quadratic or double hashing algorithm. Given a document, your program should output all of the correctly spelled words, labeled as such, and all of the misspelled words. For each misspelled word you should provide a list of candidate corrections from the dictionary, that can be formed by applying one of the following rules to the misspelled word: a) Adding one character in any possible position b) Removing one character from the word c) Swapping adjacent characters in the word Your program should run as follows: ./spell_check
You will be provided with a small document named document1_short.txt, document_1.txt, and a dictionary file with approximately 100k words named wordsEN.txt. As an example, your spell checker should correct the following mistakes. comlete -> complete (case a) deciasion -> decision (case b) lwa -> law (case c)
Correct any word that does not exist in the dictionary file provided, (even if it is correct in the English language). Some hints: 1. Note that the dictionary we provide is a subset of the actual English dictionary, as long as your spell check is logical you will get the grade. For instance, the letter "i" is not in the dictionary and the correction could be "in", "if" or even "hi". This is an acceptable output. 2. Also, if "Editor’s" is corrected to "editors" that is ok. (case B, remove character) 3. We suggest all punctuation at the beginning and end be removed and for all words convert the letters to lower case (for e.g. Hello! is replaced with hello, before the spell checking itself).
Do NOT write any functionality inside the main() function within spell_check.cc. Write all functionality inside the testSpellingWrapper() within that file. We will be using our own main, directly calling testSpellingWrapper(). This wrapper function is passed all the command line arguments as you would normally have in a main

Answers

This question is way to long I don’t even understand what your asking

what are bananas if they are brown

Answers

they are ripe or overripe (rotten)

if banans are Brown there bad I think


Write the Flowchart to find Even number between 1 to 50

Answers

Answer:

See attachment for flowchart

Explanation:

Required

Flowchart to fine even from 1 to 50

The flowchart has been attached.

The rough algorithm (explanation) of the flowchart is as follows.

1. Start

2. Initialize num to 1

3. Check if num is less than or equal to 50

  3.1 If yes

      3.1.1 Check if num is even

      3.1.1.1 If yes

         3.1.1.2 Print num

  3.1.3 Increase num by 1

 3.2 If num is greater than 50

    3.2.1 Stop

4. Goto 3

If the pictures are not the same size when they are selected from a file,

PowerPoint will use AutoCorrect so they are the same size.
the picture will be overcorrected.
these pictures will remain the size as in the file.
the layout should be fit to the slide.

Answers

Answer:

The correct answer is C) the pictures will remain the size as in the file

Explanation:

Microsoft Office PowerPoint is a multi-media presentation tool. It supports, videos, pictures, and hyperlinks.

When a picture is inserted by selection from a file, PowerPoint does not automatically resize. The editor or user will need to manually adjust the size(s) of the picture(s) to fit the dimensions they require.

Cheers

 

A profit of ₹ 1581 is to be divided amongst three partner P,Q and R in ratio 1/3:1/2:1/5.theshareof R will be?​

Answers

Answer:

R's share = 306

Explanation:

Sum of ratio = 1/3 + 1/2 + 1/5

LCM = 30

Sum of ratio = (10 + 15 + 6) / 30 = 31 /30

Profit to be shared = 1581

P = 1/3 ; Q = 1/2 ; R = 1/5

Share of R :

(Total profit / sum of ratio) * R ratio

[1581 / (31/30)] * 1/5

(1581 / 1 * 30/31) * 1/5

51 * 30 * 1/5

51 * 6 = 306

a predecessor of a work processor is​

Answers

Answer: Printing of documents was initially accomplished using IBM Selectric typewriters modified for ASCII-character input. These were later replaced by application-specific daisy wheel printers, first developed by Diablo, which became a Xerox company, and later by Qume.

Explanation:

What does Al stand for?
B. Artificial Ingenuity
A. Actual Intelligence
C. Artificial Intelligence
D. Algorithm Intel

Answers

AI stands for Artificial Intelligence

PYTHON:
Defining a Figure of Merit
Consider a string-matching figure of merit. That is, it tells you how close to a given string another string is. Each matching letter in the same spot is worth one point. Only letters need be considered.
For instance, if the secret string reads 'BLACKBEARD', then 'BEACKBEARD' is worth 9 points, 'WHITEBEARD' is worth 5 points, 'BEARDBLACK' is worth 4 points, and 'CALICOJACK' is worth 1 point.
Compose a function pirate which accepts a string of characters guess and returns the number of characters which match the secret string 'BLACKBEARD'. It should be case-insensitive; that is, you should convert input to upper-case letters. It should return zero for strings which are not ten characters in length.
Your submission should include a function pirate( guess ) which returns a float or int representing the number of matching characters. (You should provide the secret string 'BLACKBEARD' inside the function, not outside of it.)
strings should not have same lengths

Answers

Answer:

figure of merit is a quantity used to characterize the performance of a device, system or method, relative to its alternatives. In engineering, figures of merit are often defined for particular materials or devices in order to determine their relative utility for an application.

Following are the Python program to find the string-matching figure:

Python Program:

def pirate(g):#defining the method pirate that takes one variable in parameter

 if len(g)!= 10:#defining if block that check the parameter length value that is not equal to 10

   return 0   #using the return keyword that return a value that is 0

 else:#defining else block

   g= g.upper()#defining g variable that converts the parameter value into upper value

   secretString = "BLACKBEARD"#defining string variable secretString that holds string value

   c = 0#defining integer variable c that holds integer value

 for i in range(0, len(g)):#defining loop that counts and check value is in string variable

   if g[i] == secretString[i]:#defining if block that checks value in secretString variable

     c += 1; #defining c variable that increments its value

   return c;#using return keyword that return c value

print(pirate("BEACKBEARD"))#using print method that calls pirate method and prints its value

print(pirate("WHITEBEARD"))#using print method that calls pirate method and prints its value

print(pirate("BEARDBLACK"))#using print method that calls pirate method and prints its value

print(pirate("CALICOJACK"))#using print method that calls pirate method and prints its value

Output:

Please find the attached file.

Program Explanation:

Defining the method "pirate" that takes one variable "g" in parameter.Inside the method an if block that checks the parameter length value that is not equal to 10, and uses the return keyword that returns a value that is 0In the else block, define the "g" variable that converts the parameter value into the upper value, and use a string variable "secretString" that holds the string value. In the next step, define an integer variable "c" that holds an integer value, and define a loop that counts and checks the value in a string variable.Inside this, define if block that checks the value in the "secretString" variable, increments the "c" value, and returns the "c" value.Outside the method, a print method that calls the "pirate" method prints its value.

Find out more about the string-matching here:

brainly.com/question/16717135

1. If Earth's plates are constantly moving, why don't we need to update the locations of -
continents on world maps (such as the one above) all the time?
The Value of Fossil Evidence

Answers

Answer:

Because the tectonic plates are moving so slowly in such small incraments that it would take a while before there was any noticable change.

Explanation:

Earth's plates are constantly moving, but we do not need to update the locations because the movement of the plates does not dramatically alter the surface of the Earth's landscape.

What are continents?

Any of the numerous enormous landmasses is a continent. Up to seven geographical regions are typically recognized by convention rather than by any precise criterion.

The actions of plate movement take place closer to the Earth's crust, beneath the surface of the earth, and in the lithosphere.

The Earth's plates travel deep within the planet toward the crust, but when they intersect, the result is felt as earthquakes on the surface.

Thus, because plate movement has little impact on the terrain and positioning of the Earth's surface, it is not necessary to update the locations of continents on global maps.

To learn more about earth's plates, refer to the below link:

https://brainly.com/question/16802909

#SPJ2

In Scheme, source code is data. Every non-atomic expression is written as a Scheme list, so we can write procedures that manipulate other programs just as we write procedures that manipulate lists.
Rewriting programs can be useful: we can write an interpreter that only handles a small core of the language, and then write a procedure that converts other special forms into the core language before a program is passed to the interpreter.
For example, the let special form is equivalent to a call expression that begins with a lambda expression. Both create a new frame extending the current environment and evaluate a body within that new environment. Feel free to revisit Problem 15 as a refresher on how the let form works.
(let ((a 1) (b 2)) (+ a b))
;; Is equivalent to:
((lambda (a b) (+ a b)) 1 2)
These expressions can be represented by the following diagrams:
Let Lambda
let lambda
Use this rule to implement a procedure called let-to-lambda that rewrites all let special forms into lambda expressions. If we quote a let expression and pass it into this procedure, an equivalent lambda expression should be returned: pass it into this procedure:
scm> (let-to-lambda '(let ((a 1) (b 2)) (+ a b)))
((lambda (a b) (+ a b)) 1 2)
scm> (let-to-lambda '(let ((a 1)) (let ((b a)) b)))
((lambda (a) ((lambda (b) b) a)) 1)
In order to handle all programs, let-to-lambda must be aware of Scheme syntax. Since Scheme expressions are recursively nested, let-to-lambda must also be recursive. In fact, the structure of let-to-lambda is somewhat similar to that of scheme_eval--but in Scheme! As a reminder, atoms include numbers, booleans, nil, and symbols. You do not need to consider code that contains quasiquotation for this problem.
(define (let-to-lambda expr)
(cond ((atom? expr) )
((quoted? expr) )
((lambda? expr) )
((define? expr) )
((let? expr) )
(else )))
CODE:
; Returns a function that checks if an expression is the special form FORM
(define (check-special form)
(lambda (expr) (equal? form (car expr))))
(define lambda? (check-special 'lambda))
(define define? (check-special 'define))
(define quoted? (check-special 'quote))
(define let? (check-special 'let))
;; Converts all let special forms in EXPR into equivalent forms using lambda
(define (let-to-lambda expr)
(cond ((atom? expr)
; BEGIN PROBLEM 19
'replace-this-line
; END PROBLEM 19
)
((quoted? expr)
; BEGIN PROBLEM 19
'replace-this-line
; END PROBLEM 19
)
((or (lambda? expr)
(define? expr))
(let ((form (car expr))
(params (cadr expr))
(body (cddr expr)))
; BEGIN PROBLEM 19
'replace-this-line
; END PROBLEM 19
))
((let? expr)
(let ((values (cadr expr))
(body (cddr expr)))
; BEGIN PROBLEM 19
'replace-this-line
; END PROBLEM 19
))
(else
; BEGIN PROBLEM 19
'replace-this-line
; END PROBLEM 19
)))

Answers

What are you saying at the bottom?

Edhesive 3.7 code practice

Answers

Yes that answer is correct 3.7

Answer: To hard to answer :)

Explanation: hurts my brain


The type of Al that computers can use to generate and understand human speech is called__________
processing

Answers

Answer:

Language or Vocal processing

Explanation:

Language processing in AI is used to understand languages, dialects and phrases, these AI have been trained to understand human language.

What are the individual presentation objects that are found in the PowerPoint program and used to display content to an audience?

files
slides
cells
charts

Answers

Answer:

The answer is slides

Explanation:

You are on a team of developers writing a new teacher tool. The students names are stored in a 2D array called “seatingChart”. As part of the tool, a teacher can enter a list of names and the tool well return the number of students in the class found with names that matching provided list. For this problem you will be completing the ClassRoom class in the problem below. Your job is to complete the numberOfStudents found method. This method accepts an array of Strings that contain names and returns the quantity of students with those names. For example:
Assume that a ClassRoom object named “computerScience” has been constructed and the seating chart contains the following names:


“Clarence”, “Florence”, “Ora”


“Bessie”, “Mabel”, “Milton”


“Ora”, “Cornelius”, “Adam”


When the following code executes:


String[] names = {"Clarence", "Ora", "Mr. Underwood"};

int namesFound = computerScience.numberOfStudents(names);

The contents of namesFound is 3 because Clarence is found once, Ora is found twice, and Mr. Underwood is not found at all. The total found would be 3.


Complete the numberOfStudents method

public class ClassRoom

{


private String[][] seatingChart;


//initializes the ClassRoom field seatingChart

public ClassRoom(String[][] s){

seatingChart = s;

}



//Precondition: the array of names will contain at least 1 name that may or may not be in the list

// the seating chart will be populated

//Postcondition: the method returns the number of names found in the seating chart



//TODO: Write the numberOfStudents method


public int numberOfStudents(String[] names){





}


public static void main(String[] args)

{

//DO NOT ENTER CODE HERE

//CHECK THE ACTUAL COLUMN FOR YOUR OUTPUT

System.out.println("Look in the Actual Column to see your results");

}

}

Answers

Answer:

Wait what? Some of the words are mashed together...

what is astronaut favourite key on keyboard? ​

Answers

The space bar
Thanks for that today
Have a great day

The astronaut favorite key on keyboard ​ is Space-Bar.

What is space bar?

This is known to be a long  key that is seen at the lower part of a computer keyboard or typewriter used to type space.

Conclusively, to Space Key is known to be the Astronaut's Favorite Key on the Keyboard due to the fact that an Astronaut often travel to Space and work on satellites and as such they loves the space bar, more as it tells more about  the Outer Space.

Learn more about astronaut from

https://brainly.com/question/24496270

Other Questions
4) What is the order of the energy pyramid.? pls help! im giving brainliest :)Shonda is making cookies with her family. They mix 2 cups of flour with a half cup of sugar. How many cups of sugar will they need if they used 8 cups of flour? Spanish 2 questions!Activity 20!Will give brainlist if right! 1. What was the landscape like before the fingers of ice carved out the lake beds?2. What is the glacial history of the region?3. Why did the ice flow in the opposite direction from the way the rivers had flowed?4. What was happening beneath the glacier that led to the features that are 5. now seen in the Finger Lakes region?6. Describe the processes that create glacial moraines.7. Why is there water in these old glacial basins? What observation did Darwin note to draw the conclusion that the A. cristatus lizard has predators in the sea?It voluntarily swims out to sea.It eats aquatic plants.It will not go in water when scared.It has feet and a tail adapted for swimming. Drag each tile to the correct location,Match each legal measure to its descriptionclaimed to provide separatebut equal facilities for blacksencouraged segregation betweenSouthern whites and blacksinvolved federal troops patrollingthe election polls in the Southled to the prosecution ofKu Klux Klan membersprotected the rights of AfricanAmericans by prosecuting peoplewho threatened their rightsJim Crow LawsEnforcement Acts21 Edmentum. All rights reserved: ANSWERS!!Based on the prefix, the word "extricate" most likely means"to rule a situation.""without interest in a situation.""to get out of a situation.""filled with interest in a situation." 1 [Avonlea Station. A small figure, a child, sits on a battered suitcase. The child wears a too-large overcoat and a cap covering its head. We can see only the childs back as the lights come up. The child wraps the coat more tightly around itself and turns toward us for the first time: she is a girl, a simple, tattered dress under her coat. The stationmaster comes to pick up a mailbag and notices the girl.]In paragraph 1, the description of Anne in the stage directions is intended to evoke feelings of afear bdoubt canger dpity A rectangular field is 36meters long and 15 meterswide How many more meters18 it to walk on the sidewalkrother than cutting throughthe field diagonally? Cules fueron los logros de la dinasta Shang? Explica cmo impactaron al desarrollo de la antigua China? HELP!!!! What is it??? Luke Company has three divisions: Peak, View, and Grand. The company has a hurdle rate of 5.76 percent. Selected operating data for the three divisions follow: Peak View Grand Sales revenue $339,000 $223,000 $300,000 Cost of goods sold 197,000 111,000 188,000 Miscellaneous operating expenses 43,000 32,000 38,000 Average invested assets 1,320,000 960,000 1,185,000.Required:a. Compute the return on investment for each division.b. Compute the residual income for each division. 20. What type of simple machine is an ax?O wedgeO inclined planeO wheel and axleO lever 1 A blizzard struck the city of Phoenix, Arizona, on July 5, 2011. But it wasnt a frozen, white, swirling kind of blizzard. This storm was gritty, dark, and smothering. It was known as a black blizzard. Black blizzard is an American nickname for a dense cloud of dry particles that blankets a large area. It is commonly called a dust storm. The Phoenix blizzard towered 5,000 feet into the air, stretched 100 miles across, and plowed a 150-mile path before it finally calmed down. During the storm, visibility was nearly zero. 2 Its common to see a swipe of dust, dirt, or sand stirred up by a gust of wind. A black blizzard is the same experience multiplied many times over. Such storms are powered by high winds. Like water flowing in a river, fast air currents pick up and transport loose, dry soil. Lighter particles are swept up and carried for miles. Heavier particles are pushed forward by saltation. Saltation happens when blowing particles knock into stationary particles on the ground. The blowing particles set them in motion, too. Soon many particles bounce along by a series of skips and jumps. Saltated particles can work together to nudge pebbles and other objects. The nudging action is called creep. Saltation and creep come together to move massive amounts of material. In September 2009, a giant dust storm moved five million tons of red outback soil through Sydney, Australia! Watch Out . . . 3 Dust storms can severely affect whatever or whoever gets in their way. The grinding blast damages crops, livestock, buildings, and vehicles. Dust storms can have harmful effects on human health, too. They make breathing illnesses much worse. Dust storms stir up bacteria, molds, and fungi, which can cause valley fever, an infection that often follows dust storms in Phoenix. Virologists believe valley fever is caused by a soil fungus. . . . For a Dust Storm Near You 4 The threat of dust storms is greatest in Earths dry regions. what sentence from the article best states the central idea How do the events in the plot shape the relationship between the characters?A. The villagers lose respect for Monsieur Hamel as they listen to him teach.B. Franz appreciates Monsieur Hamel and his teaching more than ever before.C. Monsieur Hamel intimidates Franz as he explains what the new teacher is like.D. The students no longer care about trying to do well in Monsieur Hamels school. please answer asap!! A book had length of 5 inches and a width of 8 inches what is the area of the book Hey pls help if you dont know the answer then dont reply Solve for y.- 12 = 6y +18-9y xAn investment account started at $800 at thebeginning of the month. By the end of the month, theaccount had 125% of $800 in it. What was the finalaccount balance?