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

  Determine the expected number of empty bins

Assume that n balls are tossed into n bins, where each toss is independent and ball is equally likely to end up in any bin. Determine the expected number of empty bins?

  Prove by solving the equations using laplace transform

For a RC circuit, we can use Laplace transforms to show that when we apply a step input of 5V, the voltage across the capacitor rises exponentially to a final value equal to step input.

  The authentication process in a synchronous token system

Describe how the Kerberos authentication process work and outline the main components within the Kerberos environment, their respective functions and the level of security provided by Kerberos. Draw a diagram supporting your explanation Explain..

  Explain professional responsibility to complete installation

You are an engineer involved in the development of a financial system. During installations, you discover that this system will make a significant number of people redundant. It is your professional responsibility to complete the installation as..

  Confidentiality and integrity for transaction to secure

Make a list of at least 10 confidentiality, integrity, and availability requirements which should be met for transaction to be secure.

  Tools used to avoid losing passphrase

Are there any tools which someone can utilize safely, other than key recovery, to avoid losing his or her passphrase?

  Algorithm beginning of new talk-time-stamps of rtp packets

Explain the algorithm which uses sequence numbers and time stamps of RTP packets to show the beginning of new talk spurt?

  Social networking website to get information about applicant

Some companies are beginning to use social networking websites like Facebook and MySpace, to get information about job applicants.

  Study evidence for defence in law firm

You are engaged by law firm to study evidence for the defence. You uncover evidence that doesn't help your client's case but was not discovered by the prosecution.

  Which processes were loaded normally is running in safe

Next, boot the system into safe Mode and use Task Manager to list running processes. Which processes that were loaded normally are not loaded when the system is running in safe Mode?

  Explain material protected under all copyright laws

All rights reserved. This material is protected under all copyright laws as they presently exist. No portion of this material may be reproduced, in any form or by any means, without permission in writing from publisher.

  A photo-sharing startup offers

A photo-sharing startup offers the following service. A client may upload any number N of photos and the server will compare each of the N pairs of photos with their proprietary image matching algorithms to see if there is any person that is in both ..

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