Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

All of major web browsers today (e.g. Mozilla Firefox, Google Chrome, others) keep a history of web sites that have been visited before. This history

All of major web browsers today (e.g. Mozilla Firefox, Google Chrome, others) keep a history of web sites that have been visited before. This history keeps at least the following information:

URL, Webpage title, Visit count, Last visit date

In this homework, you are asked to implement a simple web browser history utility which can be used to search previously visited web pages according to different criteria. Start by storing the contents of the following table in any format youd like in a text file (e.g. history.txt). You are free to enrich the list with additional entries as well.

URL________ Webpage Title _________Visit Count

Last Visited On

www.cankaya.edu.tr_____ CankayaUniversitesi __143

02.12.2017

www.google.com ________Google_____________ 526

11.12.2017

www.youtube.com _______YouTube ___________218

05.11.2017

ieeexplore.ieee.org _______XploreDigitalLibrary__ 152

23.10.2017

ceng.cankaya.edu.tr CankayaComputerEngineering 223

29.11.2017

amazon.com________ Amazon ___________768

25.02.2017

www.libreoffice.org______ LibreOffice________ 102

14.06.2017

ceng114.cankaya.edu.tr ______CENG114 _____201

19.11.2017

www.github.com________ GitHub ___________197

09.11.2017

www.ubuntu.com ________Ubuntu __________173

06.07.2017

www.facebook.com ________Facebook _______312

12.12.2017

webonline.cankaya.edu.tr_______ WebOnline ____471

10.12.2017

drive.google.com________ GoogleDrive________ 376

28.10.2017

Design a data structure in your C program which can properly store these information. Then write a program which reads & stores the browser history from the file you have created and performs the following tasks:

Search by URL (shows pages that contain the search string in URL) Search by visit count (shows pages with higher visit counts) Search by last visit date (shows pages that are visited in the same month)

Your program must be menu-driven; which means it must always display a list of choices to the user before performing an action. Your program must display proper results on screen for each search operation and also store the results in a secondary file (e.g. searchresults.txt) as well. You are free to use any method we have studied in the lecture so far. Deliver a copy of both your code and your history file.

Sample Run

Loaded history file. 

Choose an option: 1. Search by URL 2. Search by visit count 3. Search by last visit date 4. Exit >1 Enter URL: cankaya Results:

URL www.cankaya.edu.tr ceng.cankaya.edu.tr

ceng114.cankaya.edu.tr

webonline.cankaya.edu.tr

Visit Count Last Visited 
526 11.12.2017 768 25.02.2017 312 12.12.2017 471 10.12.2017 376 28.10.2017 

Results are written to searchresults.txt.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

Students also viewed these Databases questions