Write a php script that checks a word or a phrase

Assignment Help Computer Engineering
Reference no: EM132207518

Question :

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: EM132207518

Questions Cloud

Ask the user to enter a positive integer greater than zero : Outputs the even digits not in reverse order with a space separating the digits (consider zero to be even).
What the possible nash equilibrium outcomes are : Consider a trading network with intermediaries in which there is one buyer, one seller and two traders (intermediaries). The buyer and the seller each are.
Accept a number of minutes and converts it both to hours : Write a program that accepts a number of minutes and converts it both to hours and days.
Find the optimal size of the hot tub group : Find the optimal size of the hot tub group, and give an explanation of why it differs from the equilibrium size. Next compute the grand total of benefits.
Write a php script that checks a word or a phrase : Write a PHP script that checks a word or a phrase (stored in a string variable) to determine if it is a standard palindrome.
Multiplies a number by another by repeated addition : Write a Pep/9 assembler program that multiplies a number by another by repeated addition.
A program that multiplies a number by shifting left : Write a Pep/9 assembler program that multiplies a number by shifting left. Each shift left doubles the number.
What strategic alternatives is starbucks company using : What strategic alternatives is Starbucks company using? Who are Starbucks competitors?
Write a program that accepts two command line arguments : Write a program that accepts two command line arguments. The first is the name of a file that is to be used as the input file.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Draw the constraint graph

CS 3346a - CS 3121a Assignment. Draw the constraint graph (HINT: all of the constraints are binary and bidirectional); show an initial queue with the constraints in the order given above (the A-D constraint at the front of the queue) and then show h..

  Select one phase of the database life cycle and describe

per the text the database life cycle includes the database initial study database design implementation and loading

  Write a research paper on host intrusion detection system

Write research paper on Host Intrusion Detection System. How can one protect against virus outbreaks in organization? What are the common causes of the problem?

  Determining the sub game-perfect equilibrium

First Al shoots targeting one of the other two gangsters. After Al, if alive, Bob shoots, targeting one of the surviving gangsters.

  Define the abbreviations ssi msi lsi and vlsi

What is an integrated circuit or chip? Define the abbreviations SSI, MSI, LSI, and VLSI. How can the XOR operation be expressed using other operators?

  Why are three-state gates used in an input interface

Describe the advantages of the open-collector gate over the three-state gate when the application entails multiple sources on a control signal.

  Design a visual c-sharp program for an ice cream shop

design a Visual C-Sharp program for an Ice Cream Shop. The program will store data about ice cream cones and customers.

  What can go wrong in bisection

Vectorize MySqrt so that it can handle the case when A is a matrix of nonnegative numbers.

  Find acceptable to realize the benefits of such a system

Would you change your mind if there were no inaccuracies? Is there a level of inaccuracy you would find acceptable to realize the benefits of such a system?

  Draw the memory mar and mbr configurations

Four of the 32 pages of the memory of Problem must be accessible at any time. Four auxiliary 5-bit registers, each containing a page address.

  How many page misses does the fifo algorithm incur

How many page misses does the FIFO algorithm incur on the following page request sequence: (2,3,4,1,2,5,1,3,5,4,1,2,3)?

  Explain the types of backup plans

Explain the types of backup plans and how they can be used to meet different recovery objectives.

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