15.2k views
2 votes
6. In the word game Hundred Words, each letter in a word is worth a certain

number of points. Each 'a' is worth 1 point, each 'b' is worth 2 points, and so on,
up to 'z' which is worth 26 points. The word 'bed', for example, is worth 2 + 5 + 4
points for the' b', 'e', and 'd', for a total of 11 points for the word.
a. The function ord() returns the ASCII value of a character. ASCII is an
encoding for text characters. Some code to help you define a function
points() is shown below. Enter the function in the code editor and
execute it.

6. In the word game Hundred Words, each letter in a word is worth a certain number-example-1
User Lapis
by
8.0k points

1 Answer

3 votes

Answer:

45

Step-by-step explanation:

In the word game Hundred Words, each letter in a word is worth a certain

number of points. Each 'a' is worth 1 point, each 'b' is worth 2 points, and so on,

up to 'z' which is worth 26 points. The word 'bed', for example, is worth 2 + 5 + 4

points for the' b', 'e', and 'd', for a total of 11 points for the word.

a. The function ord() returns the ASCII value of a character. ASCII is an

encoding for text characters. Some code to help you define a function

points() is shown below. Enter the function in the code editor and

execute it.

User Willy Goat
by
8.3k points