Program to find if number input by user is palindrome or not

Assignment Help Programming Languages
Reference no: EM13100121

Write down the program which uses the method called palindrome ( ) to find out if number input by user is a palindrome or not. For instance 1221 is palindrome as it can be read same way forwards and backwards. Numbers input can be between 2 - 6 digits long. Programme must be able to find out what length of digit is and therefore suitably find out whether or not it is palindrome. If number is 1 digit long or more that 6 digits, the program must display the error message and permit the user to enter number again. On one output dialog box, program must display length of the digits entered and whether or not it is palindrome.

Reference no: EM13100121

Questions Cloud

Discuss toyota current marketing strategy : What improvement initiatives are currently being implemented for Toyota since the recalls? What is Toyota's current marketing strategy?
Age distribution in united states : The following table gives the approximate age distribution in the United States from the 2000 census.
Probability for telecommunication problem : You are assigned to be part of a team of three analysts of a global management consulting company where of the entire work force of analysts. 55% have had no experience in telecommunications
Math sat scores for all women-normal distribution : The math SAT scores for all women are normally distributed with a mean of 496 and a standard deviation of 105.
Program to find if number input by user is palindrome or not : Write down the program which uses the method called palindrome ( ) to find out if number input by user is a palindrome or not. For instance 1221 is palindrome as it can be read same way forwards and backwards.
Relationship between learning objectives and training method : Explain the relationship between learning objectives and training methods.  What is the Difference between the Corporate Strategy and the Business Strategy in the Whole Foods Market?
Probability of tennis game : Dana and Cathy are playing tennis. The probability that Dana wins at least one out of two ames is 0.3. What is the probability that Dana wins at least one out of four?
What is the frequency of the sickle cell allele : XPA is a recessive DNA repair disorder that causes skin cancer with even the smallest exposure to sunlight. Heterozygotes (Xx) are carriers, but are not affected. In the U.S., 1/250,000 people have the disease. In Japan, 1 in 22,000 has the diseas..
Probability of white chip drawn before red : An urn contains w white chips, b black chips, and r red chips. The chips are drawn out at random, one at a time, with replacement. What is the probability that a white appears before a red?

Reviews

Write a Review

Programming Languages Questions & Answers

  Methods to declare and initialize one dimensional arraay

What is an array? Show different methods to declare and initialize one dimensional array. Draw how an integer array of 6 elements having base address 5001 is stored in memory.

  Write class called flight which represents airline flight

Draw and implement the class called Flight which represents an airline flight. It must contain instance data which represents airline name (String), flight number (int), and the flight's origin city (String).

  Create internal representation of polynomial is array

Create class Polynomial. The internal representation of a Polynomial is an array of terms. Each term contains a coefficient and an exponent.

  Write statement to allot new value to element of array

Write down single statement which allots new value to element of ArrrayList indexed by j. This new value must be equal to twice value stored in next element of ArrayList.

  Write program which prompts user to enter length in feet

Create and execute the program for this exercise. Write down the program which prompts user to enter length in feet and inches and outputs equivalent length in centimeters.

  Write program to accept name and score of all batsmen

Write a program to accept name and score of all batsmen of a team and print them in the given manner: INPUT:names[]={nam1,nam2,nam3,nam4,nam5,nam6} & scores[]={48,65,73,10,90,84}

  Write vl program to convert leagues-number of nautical miles

Write a VL program which will convert 20,000 leagues to number of nautical miles. Your program requires no input elements, just elements to compute result and output how many nautical miles is equivalent to 20,000 leagues.

  Write program to compute amount of money

Write a program that computes the amount of money the computer club will receive from the proceeds of their candy sales project.

  Write program to enter name-number of planet from sun

Write down the program which permits the user to enter name of planet, and then prints message stating that planet's number when counted outward from sun.

  Program to determine how many values were inputted

Write down the program which reads data into the type int. Valid values are from 0 to 10. Your program must determine how many values were inputted.

  Create new method for random turning

Create new method named randomTurn (this method has no parameters and returns nothing). Select the code that does the random turning.

  Write program to convert feet and inches into centimeters

Create and execute the program. Write down the program which prompts user to enter length in feet and inches and outputs equivalent length in centimeters.

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