Question

A school web site keeps a collection of web sites that are blocked on student computers....

A school web site keeps a collection of web sites that are blocked on student computers. Should the program that checks for blocked sites use a list, set, or dictionary for storing the site addresses? Explain your answer.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Dictionary will be used for storing the site addresses that are blocked by school authorities.

In Dictionary as like Map it is in the form of key-value pair. The key will be an immutable type.

If using Dictionary for the purpose of keeping the blocked site's addresses ,it will give a provision to mention whether it is a student or teacher or principal.Can use these profiles as keys and then the addresses can be values.

Mapping between key and value is possible in dictionary.Thus it is used in these kind of applications

Add a comment
Know the answer?
Add Answer to:
A school web site keeps a collection of web sites that are blocked on student computers....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Python Object oriented programming Exercise 3 Dictionary Computers are playing an increasing role in education. Write...

    Python Object oriented programming Exercise 3 Dictionary Computers are playing an increasing role in education. Write a program that will help an elementary school student to learn English. To simplify the model, the program will first teach numbers from 1 to 10, colors and fruits. It will use a dictionary to store the pairs Spanish-English words. dataTable-uno':one,'dos':'two....' rojo':'red','blue':'Azul... manzana': apple, nara nja:orange. When running your program, it should get a random Spanish word from the dictionary dataTable and then show...

  • For a web site, computer program, or smartphone app of your choice, write five user stories...

    For a web site, computer program, or smartphone app of your choice, write five user stories for improving that web site, program, or app. That is, what missing feature would you like added? You can select five different sources but you cannot use the same user story twice. List the web site’s URL, program name, or app name along with your user story. Follow this user story template to complete the assignment: “As a <role>, I want <desire> so that...

  • E-commerce Web sites impact many different areas of an organization—from sales, through accounting and manufacturing, to...

    E-commerce Web sites impact many different areas of an organization—from sales, through accounting and manufacturing, to shipping. The requirements phase is extremely important for the e-commerce Web site. The requirements phase allows you to gather a list of requirements from the external and internal users. This document will be very helpful to the development and testing team. For this project, you will be adding the Requirements section to your E-Commerce Implementation Plan document. Complete the following tasks: Include the following...

  • Write a JAVASCRIPT program that will help an elementary school student learn multiplication. Use the Random...

    Write a JAVASCRIPT program that will help an elementary school student learn multiplication. Use the Random method to produce two positive one-digit integers. The program should then prompt the user with a question using random numbers, such as How much is 6 times 7? The student then inputs the answer. Next, the program checks the student’s answer. If it is correct, display the message "Very good!" and ask whether the student wants to continue if so then ask another multiplication...

  • Design an original, professional web site following the specifications listed below. This web sit...

    Design an original, professional web site following the specifications listed below. This web site will be for a business you plan to set up for yourself or for someone else. The following is a detailed list of the requirements for your web site. READ them carefully. Instructions - Web Site Requirements for the web site: General: You will thoroughly test all your pages in more than one browser. All links MUST work. All graphics must show on the page. All...

  • . SSK Software Corp has offices in Toledo, Columbus and Pittsburg. Each office has 127 computers....

    . SSK Software Corp has offices in Toledo, Columbus and Pittsburg. Each office has 127 computers. The IT plan calls for connecting all offices using Routers. The Toledo site will also connect to the Internet. SSK Software Corp. has elected to use public IP address space on all computers at each of its sites. a) Their ISP has restricted the IP ranges to the ones below. The ISP’s Network Administrator is on vacation – you have been asked to fill-in...

  • Different answer beside the existing one Create a web site (set of web pages) for a...

    Different answer beside the existing one Create a web site (set of web pages) for a zoo. The following requirements must be met: 1. The home page must have an image map with 2 hot spots. One of the hot spots must be a circle shape; the other must be a polygon shape. The example output home page image map has 4 hot spots (3 circles and 1 polygon). Your image map must be based on a real zoo map....

  • Programming in C: Write a program that will help an elementary school student learn multiplication. Use...

    Programming in C: Write a program that will help an elementary school student learn multiplication. Use the random number generator to produce two positive integers between 1 and 12 inclusive. It should then type a question such as:             How much is 6 times 7? The student then types the answer. Your program checks the students’ answer. If it is correct, print a message such as Very good!   If the answer is wrong, print a message such as No. Please...

  • For this week's lab, you will use two of the classes in the Java Collection Framework:...

    For this week's lab, you will use two of the classes in the Java Collection Framework: HashSet and TreeSet. You will use these classes to implement a spell checker. Set Methods For this lab, you will need to use some of the methods that are defined in the Set interface. Recall that if set is a Set, then the following methods are defined: set.size() -- Returns the number of items in the set. set.add(item) -- Adds the item to the...

  • For this week's lab, you will use two of the classes in the Java Collection Framework:...

    For this week's lab, you will use two of the classes in the Java Collection Framework: HashSet and TreeSet. You will use these classes to implement a spell checker. Set Methods For this lab, you will need to use some of the methods that are defined in the Set interface. Recall that if set is a Set, then the following methods are defined: set.size() -- Returns the number of items in the set. set.add(item) -- Adds the item to the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT