Whether a string is a palindrome or not

Assignment Help Programming Languages
Reference no: EM13948216

Write a program that reads in strings of characters and determines if each string is a palindrome. Each string appears on a separate input line. Echo-print each string, followed by " Is a palindrome" if the string is a palindrome or "Is not a palindrome" if the stringis not a palindrome. For example, given the input string Able was, I ere I saw Elba. The program should print "Is a palindrome." In detemining whether a string is a palindrome, consider uppercase and lower case letters to be the same and ignore punctuation characters and spares. The input file that you will be reading palindromes from is called "pals.txt". Look for methods like replace (), to lowerCase, to UpperCase,..etc. Write the output ( the string and if is a palindrome) to a file called "palsout.txt". Each line of text in the file pals.txt will contain a palindrome to test for. You can only use the BufferedReader class and not the Scanner class. Please examine the attachment, this is as far as I got, however I am able to compile but when executing I get and error. Please select palindrome files to save in the pals.txt file.

Attachment:- Palindrome Test.doc

Reference no: EM13948216

Questions Cloud

Screw dislocations of opposite sign : 1. Is it possible for two screw dislocations of opposite sign to annihilate each other? Explain your answer. 2. For each of edge, screw, and mixed dislocations, cite the relationship between the direction of the applied shear stress and the directi..
Reid found qualified replacement property which is acquired : Reid found qualified replacement property which is acquired six months later for $390,000. What is the amount of reid's realized gain and recognized gain?
Write an applet file that prompts the user for an id number : Catch the Exception and then display an appropriate message. Save the program as BadIDAndAge.java
Ignoring any minor variations in tense or mood : Part B: Construct an original example, in English in standard form, of each of the following. If it is not possible to do so, say why. Be sure to use premises and conclusions the truth value of which it is reasonable for you to believe that your mark..
Whether a string is a palindrome or not : Please examine the attachment, this is as far as I got, however I am able to compile but when executing I get and error. Please select palindrome files to save in the pals.txt file.
Evaluate the top five challenges of conducting quantitative : Evaluate the top five challenges of conducting quantitative and qualitative research and stipulate to strategies to overcome those challenges from the literature on research design theory and practice.
Can you provide an intuitive explanation : Compare the firms' profits under quantity competition and price competition. Can you provide an intuitive explanation for why price competition is more intense (i.e. leads to lower equilibrium profits)?
What might be the challenges faced by your teams : Where might the formation of a team in terms of cellular production benefit your company and/or what "teams" are effective in your company at present? What might be the challenges faced by your teams
Effect on the organizational structure : Assignment: Kudler Fine Foods is in the process of developing a new frequent shopper program. Details of this program are described in the Service Request SR-kf-013 and on the Sales & Marketing page of the Kudler Fine Foods intranet website.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a program to help a local stock trading company

Write a program to help a local stock trading company automate its systems. The company invests only in the stock market. At the end of each trading day, the company would like to generate and post the listing of its stocks so that investors can s..

  How does the nist become so relevant

What is an insider threat, and how can this plague system security - how does the NIST become so relevant? Why?

  Write a program takes input from a user in the phone

Program takes input from a user in the phone of a phone number, 7 digits plus the hyphen. It then checks whether a user has entered Q to quit, if 0 or 555 are the begging sequence of inputs (if they are the program alerts the user to an error with..

  How to produce javascript code

Using the prompt and alert functions, invite the user to input 5 marks (integers) in the range 0-100.

  What''s the significance of the programming language

What are you going to recommend and why - again with reference to his remarks

  Write application contain classes to accept names of colours

Write the application comprised of three classes. First class called Crayon represents one crayon of particular color and length (height). Enure that constructor is overloaded

  Develop logic for program to allow to enter household size

Develop the logic for a program that allows a user to enter each household size and determine the mean and median household size in marengo.

  Write down a custom error handling javascript function

write a custom error handling javascript function called processerrors that handles a custom error by assigning it to

  What is well-formedness and validity in the context of xml?

What is well-formedness and validity in the context of XML?

  Write simple program to prompt user for gross salary

Write simple program which will prompt user for his or her gross salary. Your program than will display net salary whereby 11.00% of the gross salary is deducted for EPF

  Program to displays the sum of the integer numeric values

Design a program that displays the sum of the integer numeric values stored in two arrays, in a tabular format. The design defines two arrays of the same size (each array has 10 elements).

  Program to write variable declarations and function calls

Write a program whose main function is merely a collection of variable declarations and function calls. This program reads a text and outputs the letters, together with their counts.

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