Code2pdf 6800e1b737ef0
Code2pdf 6800e1b737ef0
class PDF(FPDF):
def header(self):
self.set_font('Arial', 'B', 14)
self.cell(0, 10, 'Experiment: Browser Features, Web Browsing, and Search Engines', ln=True, align='C')
self.ln(5)
pdf = PDF()
pdf.add_page()
sections = [
(" Objective",
"To explore the functionality of web browsers, practice navigating the internet, compare search engines, and learn how to write effective search queries."),
(" Materials Needed",
"- A computer, laptop, or smartphone\n- A stable internet connection\n- Any web browser (Chrome, Firefox, Edge, Safari, etc.)"),
(" Part 1: Exploring Browser Features",
"Task: Open a browser and locate the following:\n\n- Address bar\n- Back, Forward, and Refresh buttons\n- Tabs\n- Bookmarks\n- History\n"
"- Settings or Menu\n- Private/Incognito mode\n\n➡️ Try These Actions:\n- Open 3 websites in different tabs\n- Bookmark a useful page\n"
"- View your browsing history\n- Open a private window and visit a site\n\n Questions to Answer:\n- What happens in Private Mode?\n"
"- Which browser feature felt the most helpful?"),
(" Part 2: Browsing and Navigating Websites",
"Task: Visit the following types of websites:\n\n- A news site (e.g., bbc.com)\n- An educational site (e.g., khanacademy.org)\n"
"- A shopping site (e.g., amazon.com)\n\n Questions to Answer:\n- How easy was it to find what you needed?\n"
"- What features (like search bars or filters) helped you browse?"),
(" Part 3: Comparing Search Engines",
"Task: Try searching the same query (e.g., “What is AI?”) on:\n\n1. Google\n2. Bing\n3. DuckDuckGo\n\n Questions to Answer:\n"
"- Which search engine had the most useful top result?\n- Did you notice ads?\n- Which engine do you prefer and why?"),
(" Part 4: Writing Smart Search Queries",
"Task: Practice different styles of searches. Try these queries:\n\n| Purpose | Example |\n"
"|----------------|-----------------------------------|\n"
"| Basic search | how to make origami |\n"
"| Exact phrase | \"how to make an origami crane\" |\n"
"| Exclude term | apple -fruit |\n"
"| Search a site | site:bbc.com climate change |\n"
"| File type | filetype:pdf resume template |\n\n Questions to Answer:\n"
"- Which type gave you the most accurate result?\n- How did using quotes or minus signs change your results?"),
(" Conclusion",
"- What did you learn about how browsers work?\n- Which search tricks helped you the most?\n- How will you improve your searches in the future?")
]
pdf.output("Browser_Features_Web_Search_Experiment.pdf")