Securing Higher Grades Costing Your Pocket? Book Your Assignment at The Lowest Price Now!
loader
Add File

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!

Stuck on Your Question?

Get 24x7 live help from our Top Tutors. All subjects covered.

loader
250 words

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Students Who Viewed This Also Studied

21 Pages
MGT601-Dynamic Leadership

Running head: GALLUP RESULT ANALYSIS Gallup resul t analysis Assessment 1(A) 1 GALLUP RESULT ANALYSIS Introduction Understanding strengths and dominating aspects of a person that guides their leadersh ...

Course

MGT601

Subject

Management

University

Torrens University

Season

Fall

24 Pages
BM561 Business Consulting

Question: As a consultancy group you will need to analyse the projects on offer on the Business Consulting module shell BM561-20S1. The projects will be discussed in more detail in Week 3’s c ...

Course

BM561

Type

Assignment

Subject

Management

University

Buckinghamshire New University

32 Pages
IF3050 Critical Thinking

Task Section A: Analysing & Evaluating Argument (20%) Q1. Which of the following passages is an argument? Type the best answer, either A, B, C or D in the text box below. (1 mark) eg:  & ...

Course

IF3050

Type

Course Work

Subject

Management

University

London Metropolitan University

11 Pages
368SAM Strategy in Action

Task The assignment requires you to answer the following question: Apply the PESTEL framework to an organization of your choice and identify the key issues or trends that are making the biggest impa ...

Course

368SAM

Type

Assignment

Subject

Management

University

Coventry University

CS521 Programming in Python

Question

Answered

Question:

Simplified Search Engine

Instructions

A search engine takes a given search phrase or word and finds pages on the internet that are relevant, ranks the pages, and then displays the pages in the order of ranking. For the CSCI 120 project, you will build a simplified search engine that returns articles in no particular order from searching a single keyword. Submission You will be using Mimir to write code in search.py and search_tests.py. Make sure to select the entire folder when submitting the assignment so all files given to you in the starter code are included.
 
*search.py: file for adding search functionality search_tests.py:
 
*file for adding unit and integration tests wiki.py: provided functions to help you write the search code - do not change this file article_titles():
 
*returns complete list of article titles our search engine will have access to ask_search(): asks user for a keyword to search for ask_advanced_search():
 
*displays and asks user for advanced options search search_tests_helper.py:
 
*provided functions to help you write test code - do not change this file print_basic():
 
*returns string to ask user for basic search keyword print_advanced(): returns string to ask user for advanced search option print_advanced_option():
 
*returns string to ask user for advanced search question get_print(): returns printed string when running entire search program run_tests.py and check_tests.py:
 
*Ignore these but turn them in along with other files mentioned above Part 1: Searching Article Titles In this part of the project, search for article titles. Basic Search To run a basic search, ask the user for a keyword and use the keyword to search through the complete list of articles (from wiki.article_titles()), and return the list of articles that contain the keyword. The search should not be case-sensitive (ie if a user enters “Dogs”, the resulting list should return all titles with “Dogs” and “dogs”).
 
If the user does not enter anything, return an empty list. This is done in function #1 in search.py. When running a search, the basic search will always be run, and it will always be run before the advanced search. Example Search Keywords Because we are working with a limited set of articles, there are particular searches that will guarantee a result: dog, volleyball, music, programming, travel, photography, soccer. Article title length - user provides a max article title length (in characters). After searching for article titles with the user’s keyword, return only the article titles that do not exceed the max article title length. For example, if the user searched for “dog” and wants a maximum article title length of 25 characters, only return article titles containing the word “dog” with a maximum article title length of 25 characters. Number of articles - user provides a max number of articles to receive. After searching for article titles with the user’s keyword, return the number of articles requested by the user, starting from the first article. If the number of articles requested by the user exceeds the number of articles satisfying the keyword search, return an empty list. Get one random article - user provides a random number. After searching for article titles with the user’s keyword, return only the article title at the index of the user’s random number.
 
If there are no articles or the index exceeds the length of the articles, return an empty string. Check whether favorite article in list - user provides a favorite article title. After searching for article titles with the user’s keyword, return True if the provided article is included in the returned list of article titles and False otherwise. Multiple keywords - user provides another keyword to search. After searching for article titles with the user’s basic search keyword, search the articles again using this second keyword. Return a combined list of all articles from both search results: the basic search results first in the list followed by the advanced keyword search results. None - user does not want an advanced search. (There is no function for this) User Interface After writing the code in search.py, the outcome will be as follows (all of these examples are for searching for the keyword “dog”, but you may and should try the other keywords mentioned in the Search Keywords section):

What are you searching for? dog Any advanced searches?

1. Article title length
2. Number of articles
3. Get one random article
4. Check whether favorite article in list
5. Multiple keywords

None Please enter a number corresponding to which advanced search you would like to perform:

Depending on the advanced search option, the rest of the user interface will be different. Here is an example of each one. Advanced Search #1: article title length

What are you searching for? dog Any advanced searchesz

1. Article title length
2. Number of articles
3. Get one random article
4. Check whether favorite article in list
5. Multiple keywords 6. None Please enter a number corresponding to which advanced search you would like to perform:
1 What's the max article title length (in number of characters) you're looking for? 

What are you searching for? dog Any advanced searches?

1. Article title length
2. Number of articles
3. Get one random article
4. Check whether favorite article in list
5. Multiple keywords

None Please enter a number corresponding to which advanced search you would like to perform:

Your favorite article is in the returned articles! Advanced Search #4: check whether favorite article in list (article is not found) What are you searching for? dog Any advanced searches?
1. Article title length
2. Number of articles
3. Get one random article
4. Check whether favorite article in list
5. Multiple keywords
6. None Please enter a number corresponding to which advanced search you would like to perform.

CS521 Programming in Python

Answer in Detail

Solved by qualified expert

Get Access to This Answer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

32 More Pages to Come in This Document. Get access to the complete answer.

Specially designed essay help services have made MyAssignmenthelp.com one of the most prolific proposal essay help providers. We have arrays of expert essay writers who successfully deliver essay help depending on broad ranges of subjects and topics. We provide nursing essay help, MBA essay help, English Essay writing help and law essay help to students from different fields of study. Broad ranges of essay writing services assist us to offer quality contents within a specific time limit.

More CS521 CS521 Programming in Python: Questions & Answers

Q
icon

We aren't endorsed by this University

MGT601-Dynamic Leadership

Running head: GALLUP RESULT ANALYSIS Gallup resul t analysis Assessment 1(A) 1 GALLUP RESULT ANALYSIS Introduction Understanding strengths and dominating aspects of a person that guides their leadership approach is essential. In order to understand this, there are several psychometric tests that ide ...

View Answer
Q
icon

We aren't endorsed by this University

BM561 Business Consulting

Question: As a consultancy group you will need to analyse the projects on offer on the Business Consulting module shell BM561-20S1. The projects will be discussed in more detail in Week 3’s class. Identify TWO which seem to be most interesting and which your group is capable of carrying ou ...

View Answer
Q
icon

We aren't endorsed by this University

IF3050 Critical Thinking

Task Section A: Analysing & Evaluating Argument (20%) Q1. Which of the following passages is an argument? Type the best answer, either A, B, C or D in the text box below. (1 mark) eg:      A. Every young person should be able to choose an apprenticeship, just as they can ...

View Answer
Q
icon

We aren't endorsed by this University

368SAM Strategy in Action

Task The assignment requires you to answer the following question: Apply the PESTEL framework to an organization of your choice and identify the key issues or trends that are making the biggest impact on the sector in which this organisation operates. Critically evaluate the usefulness of the stra ...

View Answer

Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the content removal request.

Choose Our Best Expert to Help You

icon

5% Cashback

On APP - grab it while it lasts!

Download app now (or) Scan the QR code

*Offer eligible for first 3 orders ordered through app!

screener
ribbon
callback request mobile
Have any Query?