Determine if it is a standard palindrome a perfect palindrom

Assignment Help Computer Engineering
Reference no: EM132087457

A palindrome is a word or phrase that is identical forward or backward, such as the word "racecar." A standard palindrome is similar to a perfect palindrome, except that spaces and punctuation are ignored in a standard palindrome.

For example, "Madam, I'm Adam" is a standard palindrome because the characters are identical forward or backward, provided you remove the spaces and punctuation marks.

Write a PHP script that checks a word or a phrase (stored in a string variable) to determine if it is a standard palindrome, a perfect palindrome, or not a palindrome at all.

Also, for each letter that the word/phrase contains, count and print the number of times that each consonant and vowel is encountered.

Your output will look as follows:

Word/phrase: racecar

Perfect palindrome

Contains consonants:

r - 2

c - 2

Contains vowels:

a - 2

e - 1

Reference no: EM132087457

Questions Cloud

What are some strategies that we can use to help : What are some strategies that we can use to help us stay focused when feeling emotional while sending emails, texts, reports, or the like?
Write an application that reads in a five-digit integer : Write an application that reads in a five-digit integer and determines whether it's a palindrome.
What is the total job cost for the job : The materials cost (including travel and other direct costs) for a particular job is $ 11,000 and the direct labor is $ 21,000. What is total job cost for job
Popular culture references : During research process,if search engines each have their own focus? For instance, does one bring up mostly popular culture references, while another
Determine if it is a standard palindrome a perfect palindrom : A palindrome is a word or phrase that is identical forward or backward, such as the word "racecar."
What was the straight-line interest expense on the december : Interest is paid semiannually. What was the straight-line interest expense on the December 31 annual income statement
Common complaint among grammatical purists : A common complaint among grammatical purists is the following sentence type:
Describe what the procedure should accomplish : A painting company has determined that for every 115 square feet of wall space, one gallon of paint and eight hours of labor are required.
What is the time complexity of the verifier : What is the size of the certificate in terms of the input size? What is the time complexity of the verifier?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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