1. Create a new Java class in a file named sixDegrees.java and define a main method...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Create a new Java class in a file named "sixDegrees.java" and define a main method with the appropriate signature. a. Create an empty, unweighted graph of strings. b. Populate your graph with data from IMDB. Open a browser and navigate to https://www.imdb.com. Repeat the following for at least 4 films or television shows (hereafter referred to as "films"): i. Search for the film on IMDB. ii. Add the name of the film to your graph. iii. Add the names of at least 3 cast and crew members from the film to your graph and establish an undirected connection to the film. iv. Choose one of the cast or crew members that you added to the graph, and navigate to their page on IMDB. Choose another one of their film or television projects. Be sure to connect them to the new project! To be clear, each time you add a new film or television project to your graph it should have at least one cast or crew member in common with a previously added project. c. Run at least 4 BFS paths using two cast and crew members from your graph to see through which projects they are connected and print the results to standard output. For example, the following may be the result of searching for a path from "Carrie Fisher" to "Sean Connery": ["Carrie Fisher", "Star Wars", "Harrison Ford", "Indiana Jones and the Last Crusade", "Sean Connery"] 1. Create a new Java class in a file named "sixDegrees.java" and define a main method with the appropriate signature. a. Create an empty, unweighted graph of strings. b. Populate your graph with data from IMDB. Open a browser and navigate to https://www.imdb.com. Repeat the following for at least 4 films or television shows (hereafter referred to as "films"): i. Search for the film on IMDB. ii. Add the name of the film to your graph. iii. Add the names of at least 3 cast and crew members from the film to your graph and establish an undirected connection to the film. iv. Choose one of the cast or crew members that you added to the graph, and navigate to their page on IMDB. Choose another one of their film or television projects. Be sure to connect them to the new project! To be clear, each time you add a new film or television project to your graph it should have at least one cast or crew member in common with a previously added project. c. Run at least 4 BFS paths using two cast and crew members from your graph to see through which projects they are connected and print the results to standard output. For example, the following may be the result of searching for a path from "Carrie Fisher" to "Sean Connery": ["Carrie Fisher", "Star Wars", "Harrison Ford", "Indiana Jones and the Last Crusade", "Sean Connery"]
Expert Answer:
Answer rating: 100% (QA)
Here is an example of how the main method of the sixDegreesjava class could be implemented import ja... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Choose one foreign painter and one Filipino painter that you admired most from the presentation. Compose a two-stanza poem, whether in Filipino or English, describing or praising their contribution/s...
-
1 How do you split your time between tradition television and streaming video? 2. How might consumers use heuristics when choosing television shows to watch on Netflix? Viewing needs and preferences...
-
Open the stock market data file called 2006Stocks. Create time series plots of the Dow and S& P. Both time series should be on the same graph. This graph helps to demonstrate that when variables are...
-
Which of these is a true statement about silicate minerals? (a) Melting point decreases as silica percentage increases. (b) Melting point increases as silica percentage increases.
-
Each summer the Harbour Report (www.oliverwyman.com/ow/automotive.htm) rates the productivity of the major automakers, including the Detroit Big 3, Toyota, Honda, and many other brands. The report is...
-
Write each number without exponents. 121 1/2
-
In the open wire loop of Figure P28.25, end 1 is held at a higher electric potential than end 2. (a) In which direction do electrons move through the loop? (b) What is the direction of the current?...
-
Financial information for Kurzen Inc. is presented below. Instructions Prepare a schedule showing a horizontal analysis for 2015 using 2014 as the baseyear. December 31, 2015 Current assets Plant...
-
* Installing integrated software needs more memory than installing many .standalone applications True O False
-
Using the results of Problem 1.7, show that de r / d = e and de /d = e r . Data From Problem 1.7 Show that the unit vectors e r and e in a cylindrical coordinate system are related to the unit...
-
You have 1000 shares outstanding, with a stock price of $120. The cost of capital is 20%. Your company is expected to pay dividends of $20/share each year, including this year. You announce that this...
-
Quinly and her husband, customers at Greenway Supermarkets, purchased several pounds of fi let mignon and checked out their purchases at the newly installed self-scanners. The price listed on the...
-
Ryder, a police offi cer in Philadelphia, was alone in his patrol car when he received a radio call of a man with a gun. Ryder was the fi rst offi cer to arrive and was confronted by a suspect...
-
Indicate whether each of the following statements is true or false by writing T or F in the answer c olumn. Improper teasing, joking, and so forth can constitute sexual harassment.
-
Indicate whether each of the following statements is true or false by writing T or F in the answer c olumn. A company may terminate an employee because the employee has joined a labor union.
-
A doctrine that states that an employee who sustains a work-related injury or illness can recover damages only through workers compensation. a. Title VII b. exclusive remedy c. collective bargaining...
-
In 2005, there were 549 children adopted into Country A from Country B, and this number was increasing by 515 children per year. (a) Determine a point-slope equation of a line that approximates the...
-
Use the following data to answer the next two (2) questions: Product 1 Product 2 Product 3 Direct Material Cost $25,000 $30,000 $35,000 Direct Labor Cost $30,000 $40,000 $50,000 Direct Labor Hours...
-
Cedar Corporation has an S corporation election in effect. During the 2012 calendar tax year, the corporation had ordinary taxable income of $200,000, and on January 15, 2012, the corporation paid...
-
Robert Ramos (age 36) is a single taxpayer, living at 8765 Bay Dr., Monterey, CA 93940. His Social Security number is 976-23-5132. Robert's earnings and income tax withholding as the manager of a...
-
Indicate whether each of the items listed below would be included (I) in or excluded (E) from gross income for the 2012 tax year. ________a. Welfare payments ________b. Commissions ________c. Hobby...
-
When randomly selecting a day of the week, it is certain that you will select a day containing the letter y, so P(y) = 1. For Exercises 510, decide whether the statement makes sense (or is clearly...
-
If there is a 0.9 probability that it will rain sometime today, then there is a probability of 0.1 that it will not rain sometime today. For Exercises 510, decide whether the statement makes sense...
-
Rolling a die and getting an outcome that is greater than 2. For Exercises 1118, use the theoretical method to determine the probability of the given outcome or event. State any assumptions that you...
Study smarter with the SolutionInn App