Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

issignment In this assignment, you will refactor a part of the immutable Word class and implement some new behaviors in it. Be sure you address

image text in transcribed
image text in transcribed
image text in transcribed
issignment In this assignment, you will refactor a part of the immutable Word class and implement some new behaviors in it. Be sure you address and correct all the problems that I identified on your Part I submission. You do not want to lose the same points again. One of the goals of this class is to make you better programmers. You need to adopt new idea and techniques in order to improve. The review problems sets were designed to introduce you these techniques- particularly concatenation and the String methods substring, charAt, length and indexOf I expect you to use these when appropriate to the problem and, in nearly all cases String processing, they are appropriate Try to use the methods that you already wrote to make the implementations of other methods easier. Often, an overloaded method with fewer parameters can simply call an overloaded method with more parameters. Remember to error check parameters. You may not make any additions, changes, or deletions to the UML The new methods are show at the bottom of the UML Word word:String Word in word:String getwordo:String numberOlCharacten): int numberoiConsanantsD: Int interface comporeTofin other:Word) int : int gotetterSett): String usesSamelettersAsin other: Word): boolean cetoccurrenceCountlin target: char): int containstin other:Word):boolean toString):Stint Tofin other: Word): int -count Thesetin characters:Suring) int other Word): boolean sSuffiain other: Word): boolean elongestMatchingPrefiafin matchThis: Word): Stuing concatenatelin other Word):Word concatenateln other:Wordlh:Ward CISC 230 Object Oriented Design and Programming

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

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

More Books

Students also viewed these Databases questions

Question

Describe the nature of negative messages.

Answered: 1 week ago