Class encapsulating a singly linked list of website objects

Assignment Help Basic Computer Science
Reference no: EM13163834

PROGRAM 1

Code a class encapsulating a singly linked list of website objects. A website has two attributes: a URL address (a String, you do not need to use the existing URL Java class) and 10 or fewer keywords describeing the topic of the website. In addition to insert, delete, peek, and toString, add one more method: a method that, based on a keyword, returns all URL addresses in the list containing that keyword. Your elete method should delete an item based on the value of its URL. You also need to include the appropriate client code to test your classes.

PROGRAM 2

Code a class encapsulating a stack of clothes using an array. A clothing item has the following attributes: its name, its color, and whether it can be washed at high temperature. We will limit our stack to 100 clothing items. In addition to push, pop, peek, and toString, add two more methods: a method that returns all the clothing items of a given color, and another method that returns how many clothing items in the stack can be washed at high temperature. You also need to include the appropriate client code to test your classes.

 

Reference no: EM13163834

Questions Cloud

Original categorization of knowledge or belief : After looking through the evidence, do you still maintain your original categorization of knowledge or belief? Why?
Empirical evidence for the knowledge or belief : Give 3 pieces of empirical evidence for the knowledge or belief, as well as 3 logical reasons.
What is server-side and client-side scripting? : 1. What is Server-side and Client-side scripting? Explain the differences between server-side and client - side scripting languages. Please provide 3 advantages and disadvantages of each. Please provide applicable references in APA style
Two mental disorders and illnesses-anorexia and bulimia : Examine at least two mental disorders and two mental illnesses from the perspective of psychology of eating disorders anorexia & bulimia.
Class encapsulating a singly linked list of website objects : PROGRAM 1Code a class encapsulating a singly linked list of website objects. A website has two attributes: a URL address (a String, you do not need to use the existing URL Java class) and 10 or fewer keywords describeing the topic of the website
Design a boolean function named isprime, : A prime number is a number that is only evenly divisible by itself and 1. For example, the number 5 is prime because it can only be evenly divided by 1 and 5. The number 6, however, is not prime because it can be divided evenly by 1, 2, 3, and 6. Des..
Psychosocial development poses the developmental task : According to Erikson, the second stage of psychosocial development poses the developmental task of
A binary search tree for link information : A binary search tree with N nodes has N + 1 null references, half the space allocated in a binary search tree for link information is wasted. Suppose that if a node has a null left child, we make its left child link to its inorder predecessor, and if..
How does personal growth usually proceed : How does personal growth usually proceed?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Create incident response policy for development of response

Create the incident response policy which covers the development of incident response team, disaster recovery process and business continuity planning.

  Design suitable mechanism to solve graph coloring problem

Consider a graph coloring problem where we have a very large graph G = (V, E), whose vertices are to be colored using 3 distinct colors such that no adjacent node in G has the same color. Design a suitable mechanism to solve the given problem.

  Determine independent variable and dependent variable

The length of the string is shortened by 5cm and the time is measured. Determine the independent variable? Determine the dependent variable? What must the controlled variables be?

  Differentiate computer data state of computer-s electrical

Differentiate between computer data represented by the state of a computer's electrical switches and the meaningful information that is displayed to the user.

  Important considerations in the design of performance

What are some of the important considerations in the design of performance benchmarks for mobile devices? Why?

  Explain sequences of signals that occur on address bus

Explain the sequences of signals that occur on address bus, control bus, and data bus when a simple microcomputer fetches an instruction.

  Conduct observation used in business or organization

Conduct the observation to someone involved in procedure which is used in the business or organization. This person could be someone at university.

  Create the data model segment for business rules

The FlyRight Aircraft Maintenance (FRAM) division of FlyRight Company (FRC) does all maintenance for FRC's aircraft. Create the data model segment which reflects the following business rules.

  Circumstances would you not want to create

Under what circumstances would you not want to create one physical table for every relation in your logical data model? Give a concrete example.

  Explain customer relationship management system

Describe what do you mean by a "customer relationship management system". Write and explain several categories of CRM systems.

  Explain how backups are taken using microsoft access

Explain how backups are taken using Microsoft Access. What are the issues that must be considered before starting the backup? When an Access database is restored from backup, what issues need to be considered regarding the data?

  State turing machine m that calculates function

State a Turing Machine M that computes the function f: {a, b}* → N, where: f(x) = the unary encoding of max(#a(x), #b(x)).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd