The purpose of this assignment is to practice OOP with Fundamental of Data Type, Constructing Objects and Classes, Decisions, Loops. Introduction: In English vocabulary there are many interesting and meaningful phenomena, such as isogram, pangram, malapropisms, anagram, palindrome, etc., which leave a “room” for language-learners to enthusiastically discover secret, surprise, and something different instead of negatively listing words. They make the boring vocabulary lesson an interactive practical course that helps to grasp interest of students as English language-learners.1 Some of these interesting linguistic phenomena2 are: Isogram: referred to a word, phrase, or sentence in which no letter of the alphabet occurs more than once. For example; the words “ambidextrously”, “endolymphatic”, and “unpredictably”. Pangram: A phrase or sentence containing all 26 letters of the alphabet (ideally repeating as few letters as possible). For example; the sentence: “Brown jars prevented the mixture from freezing too quickly”. Palindrome: a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as “madam”, “racecar”, or “Was it a car or a cat I saw”. Problem: Write a Java program that asks the user for a word, phrase, or sentence and checks whether his input data is an isogram, a pangram, a palindrome, or none of these. Notice a phrase can be a combination of isogram and pangram; such a phrase is called perfect pangram; for example: “Mr. Jock, TV quiz PhD., bags few lynx”. Your program should also recognize if the given word/phrase is a palindrome that is pangram too (i.e.; a palindromic pangram). Your program should allow the user to have as many attempt as they wish. The user must have at least one try. Check the following Figures for sample runs. without use : ==(import java.util.Arrays;)== ##do not use Array.
The purpose of this assignment is to practice OOP with Fundamental of Data Type, Constructing Objects and
Classes, Decisions, Loops.
Introduction:
In English vocabulary there are many interesting and meaningful phenomena, such as isogram, pangram,
malapropisms, anagram, palindrome, etc., which leave a “room” for language-learners to enthusiastically discover
secret, surprise, and something different instead of negatively listing words. They make the boring vocabulary
lesson an interactive practical course that helps to grasp interest of students as English language-learners.1
Some of these interesting linguistic phenomena2
are:
Isogram: referred to a word, phrase, or sentence in which no letter of the alphabet occurs more than once.
For example; the words “ambidextrously”, “endolymphatic”, and “unpredictably”.
Pangram: A phrase or sentence containing all 26 letters of the alphabet (ideally repeating as few letters
as possible). For example; the sentence: “Brown jars prevented the mixture from freezing too quickly”.
Palindrome: a word, number, phrase, or other sequence of characters which reads the same backward as
forward, such as “madam”, “racecar”, or “Was it a car or a cat I saw”.
Problem:
Write a Java program that asks the user for a word, phrase, or sentence and checks whether his input data is an
isogram, a pangram, a palindrome, or none of these. Notice a phrase can be a combination of isogram and
pangram; such a phrase is called perfect pangram; for example: “Mr. Jock, TV quiz PhD., bags few lynx”. Your
program should also recognize if the given word/phrase is a palindrome that is pangram too (i.e.; a palindromic
pangram). Your program should allow the user to have as many attempt as they wish. The user must have at least
one try. Check the following Figures for sample runs.
without use :
==(import java.util.Arrays;)==
##do not use Array.
There are 3 methods in the check class for palindrome, pangram and isograms. CheckPalindrome checks from both the sides of the string so as to compare it the general rule. CheckIsogram methods checks all the alphabets if recurrence occurs it returns false. CheckPangram method checks that every alphabets occurs in the string or not. By comparing the return values respective output is drawn. Do-while loop is used to repeatedly ask the user for the choice.
Step by step
Solved in 2 steps with 4 images