Question: This is PHP and HTMl website language and this is not Java or python Your program will read in text from a textarea in html,
This is PHP and HTMl website language and this is not Java or python
Your program will read in text from a textarea in html, calculate certain statistics. The statistics are as follows:
The number of characters in the text
The number of letters in the text
The number of consonants in the text
The number of digits in the text
The number of white-space characters in the text
The number of "word characters" in the text
The number of punctuation characters in the text
The number of each word in the text
Program specifications
The program should begin by displaying a brief introduction of the program.
For the purpose of this assignment, a consonant is a letter that is not a vowel: a, e, i, o, or u The letter y is considered a consonant
For the purpose of this assignment, punctuation characters are
! (exclamation)
~ (tilde)
` (acute accent)
^ (carat)
( (left parenthesis)
) (right parenthesis)
_ (underscore)
{ (left brace)
} (right brace)
[ (left bracket)
] (right bracket)
| (vertical bar)
\ (backslash)
; (semicolon)
: (colon)
" (quotation mark)
' (apostrophe)
, (comma)
. (period)
? (question mark)
The "word characters" are characters that are typically read as words. For the purpose of this assignment, the word characters are
@ (at)
# (pound/number)
$ (dollar)
% (percent)
& (ampersand)
+ (plus)
- (to/minus)
= (equals)
< (less-than)
> (greater-than)
* (star)
/ (or)
The output should be formatted like this example :
Statistics:
Characters: 21 Letters: 13 Consonants: 8 Digits: 0 Spaces: 2 Word characters: 0 Punctuation: 6
......
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
