Question: A string in PHP is stored as an array of characters. $var = PROGRAMMING; echo $var[0] . $var[4]; The code above would display PR. Suppose

A string in PHP is stored as an array of characters.

$var = "PROGRAMMING"; echo $var[0] . $var[4];

The code above would display PR.

Suppose each letter of the alphabet is worth a percent value from 1% to 26%. Write a program that displays the percentage value of any word entered.

Sample run:

Enter a word : KNOWLEDGE

KNOWLEDGE is worth 96%

Please give code without html

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!