Introduction: In this assignment you will be analyzing search queries from various engines. (A daunting task, like what does that even mean) In short you will prompt the user for the name of a file, I

Introduction: In this assignment you will be analyzing search queries from various engines. (A daunting task, like what does that even mean) In short you will prompt the user for the name of a file,Introduction:In this assignment you will be analyzing search queries from various engines. (A daunting task, like what does that even mean)In short you will prompt the user for the name of a file, attempt to open said file, and if succeeded then you will begin to parse and output as follows.Each line will contain one search query (type a search into google and look at the URL, that thing)You are to parse each one for information and output it to a file while also tracking some information about everything you have parsed. (Ok those were some words lets break that down)In short you will prompt the user for the name of a file, attempt to open said file, and if succeeded then you will begin to parse and output as follows.Each line will contain one search query (type a search into google and look at the URL, that thing)You are to parse each line for certain information, more on that later, and output this information to a file. While doing this you will track some information about the file. (Ok that was alot of words lets break that down)Explanation:For each input line: (all examples bellow are reffering to the following query (https://www.google.com/search?q=some+query&oq=some+query&aqs=chrome..69i57j0l5.2991j0j9&sourceid=chrome&ie=UTF-8))You will grab the site that they are queryingwould be google.com in this caseYou will grab the query stringIn this case it would be “some query”Note it is not “some+query” but some queryYou will grab any options (if there are any)There are many of these in the above queryoq=”some query”aqs = “chrome…69i57j0l5.2991j0j9″sourceid=”chrome”ie = “UTF-8″For the file: Track the number of queries that were in the fileThe average number of options (these count all things that are not the query string q)Average length of the query string (just the q parameter)Average length of the urlOutput:The output is split into two parts. The information for each of the individual url will output to a file and the output about the file statistics will be output to standard output (terminal).Screen Output Example:Statistics for————————-Number of Queries:Average length of URL:Average length of query string:Average number of options:File Output example:…:——————-URL:::n (this should be a blank line just put a newline)…Input:Ask the user to enter the file name. Here is an example file…Requirements:You must buld a namespace called “helpers” you will define any fuctions that help calculate (like averages) or manipulate (maybe some strings)You are required to have at least two functions in this namespaceCalculating averages and maybe putting the spaces in the query string in place of ‘+’ are good canidatesYou may use more functions than this (and i recommend you do) but you must do the followingIf the function is a “helper” (see the above explinations about what a helper is) is must be in the helper namespaceThis will be mentioned bellow but you must document your functionInclude what the function does and what the parameters areYou must build a namespace called “interface” you will define any functions that help you prompt the user / print to fileYou are required to have at least two functions in this namespacePrinting information to the screen (standard input), maybe your final output to the screen would be a good canidateAnother would be a function that prints a line and the corsponding “—-” line that will match up with itYou may use more functions than this (and i recommend you do) but you must do the followingIf the function is a “helper” (see the above explinations about what a helper is) is must be in the helper namespaceThis will be mentioned bellow but you must document your functionInclude what the function does and what the parameters areAll functions must be documented above a prototypeEach time a line has “—-” (dashes under it)The dash line must be the same length as the line above it

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more