Expert Answer:COSC 3331 Project 2 Palindrome Detector – Java Pro

  

Solved by verified expert:COSC 3331 DS and algorithms Project 2 Palindrome Detector.
Due Date: 3/25/19 11:59pm These are the instructions for your second Data Structure programming project. Recall that all
code must be written individually and independently. Recall that violating this rule will result in
zero credit for the project and probably a failing grade in the course.
Problem:
A palindrome is a phrase that reads the same forwards as it does backwards. For example, “a
man, a plan, a canal, Panama,” is a palindrome. Write a program that uses a stack data
structure to check for palindromes in each line of a text file. The stackX class is from LISTING
4.2. Test your program on the following example text file (Attached)
20190324095649project2.pdf

20190324095647palindromes.txt

Don't use plagiarized sources. Get Your Custom Essay on
Expert Answer:COSC 3331 Project 2 Palindrome Detector – Java Pro
Just from $10/Page
Order Essay

Unformatted Attachment Preview

COSC 3331 DS and algorithms
Project2
Project 2 Palindrome Detector.
Due Date: 3/31/19 11:59pm
These are the instructions for your second Data Structure programming project. Recall that all
code must be written individually and independently. Recall that violating this rule will result in
zero credit for the project and probably a failing grade in the course.
Problem:
A palindrome is a phrase that reads the same forwards as it does backwards. For example, “a
man, a plan, a canal, Panama,” is a palindrome. Write a program that uses a stack data
structure to check for palindromes in each line of a text file. The stackX class is from LISTING
4.2. Test your program on the following example text file,
A man, a plan, a canal, Panama.
This line is not a palindrome
Don’t nod
The next one might be my favorite
Taco Cat!
Another non-palindrome
Rats live on no evil star.
If your program finds this line, it’s not working
Neil, a trap! Sid is part alien!
Step on no pets.
Dammit, I’m mad!
Madam, I’m Adam.
Madam, in Eden, I’m Adam.
Rise to vote, sir.
Never odd or even
If I had a hi-fi
Yo, banana boy!
Do geese see God?
No devil lived on.
Ah, Satan sees Natasha.
Lewd did I live & evil I did dwel!
A dog, a panic in a pagoda
Was it a cat I saw?
Was it a car or a cat I saw?
A Toyota’s a Toyota.
Another non-palindrome
No lemons, no melon
Now I see bees, I won.
Ma is as selfless as I am.
Nurse, I spy gypsies—run!
The next one isn’t as cool as the Panama one
A dog, a plan, a canal, pagoda
Was it Eliot’s toilet I saw?
Some of these are hilarious. Papaya war?!
No, sir, away! A papaya war is on!
Go hang a salami, I’m a lasagna hog.
I, madam, I made radio! So I dared! Am I mad? Am I?
Swap God for a janitor, rot in a jar of dog paws.
COSC 3331 DS and algorithms
Project2
Eva, can I see bees in a cave?
Not a palindrome
So many dynamos!
Red rum, sir, is murder.
Your program should output the palindromes that it finds in the document. For example:
java FindPalindromes palindromes.txt
“a man, a plan, a canal, Panama” is a palindrome.
“Don’t nod” is a palindrome.
“Taco Cat!” is a palindrome.
What to hand in?



A report includes problem statement, analysis, algorithm design, class prototype (class
contract), program Input/Output, and tested results (analysis your result to see if it is
correct).
The source program (name your file “project2.java”)
You could either submit through Blackboard or my email box.
Each Java program should have the following in the beginning:
// Program Name:
// Programmer: ,
// Assignment Number:
// Purpose:
A man, a plan, a canal, Panama.
This line is not a palindrome
Don’t nod
The next one might be my favorite
Taco Cat!
Another non-palindrome
Rats live on no evil star.
If your program finds this line, it’s not working
Neil, a trap! Sid is part alien!
Step on no pets.
Dammit, I’m mad!
Madam, I’m Adam.
Madam, in Eden, I’m Adam.
Rise to vote, sir.
Never odd or even
If I had a hi-fi
Yo, banana boy!
Do geese see God?
No devil lived on.
Ah, Satan sees Natasha.
Lewd did I live & evil I did dwel!
A dog, a panic in a pagoda
Was it a cat I saw?
Was it a car or a cat I saw?
A Toyota’s a Toyota.
Another non-palindrome
No lemons, no melon
Now I see bees, I won.
Ma is as selfless as I am.
Nurse, I spy gypsies�run!
The next one isn’t as cool as the Panama one
A dog, a plan, a canal, pagoda
Was it Eliot’s toilet I saw?
Some of these are hilarious. Papaya war?!
No, sir, away! A papaya war is on!
Go hang a salami, I’m a lasagna hog.
I, madam, I made radio! So I dared! Am I mad? Am I?
Swap God for a janitor, rot in a jar of dog paws.
Eva, can I see bees in a cave?
Not a palindrome
So many dynamos!
Red rum, sir, is murder.

Our essay writing service fulfills every request with the highest level of urgency.
attachment

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Order your essay today and save 30% with the discount code ESSAYSHELP