_This program asks for a word from _
Behavior | Input | Output |
---|---|---|
Program takes in a letter and returns a value | 'k' | 5 |
Program takes in a word and breaks it down into individual letters | "word" | 'w', 'o', 'r', 'd' |
| Program returns a value worth 1 point for specific letters | 'a', 'e', 'i', 'o', 'u', 'l', 'n', 'r', 's', 't' | value = 1 point | | Program returns a value worth 2 points for specific letters | 'd', 'g' | value = 2 points | | Program returns a value worth 3 points for specific letters | 'b', 'c', 'm', 'p' | value = 3 points | | Program returns a value worth 4 points for specific letters | 'f', 'h', 'v', 'w', 'y' | value = 4 points | | Program returns a value worth 5 points for specific letters | 'k' | value = 5 points | | Program returns a value worth 8 points for specific letters | 'j', 'x' | value = 8 points | | Program returns a value worth 10 points for specific letters | 'q', 'z' | value = 10 points |
| Program returns a value for each letter in a word | 'w', 'o', 'r', 'd' | 'w' = 4, 'o' = 1, 'r' = 1, 'd' = 2 | | Program adds the value of each letter in a word and returns that total | (w)4 + (o)1 +(r)1 + (d)2 | = 7 |
There are no known bugs, but this webpage is best viewed on a full screen.
Should any problems occur, or any bugs discovered, please contact Brooke Kullberg at brookekullberg@gmail.com
This program was written in C#.
This software is licensed under MIT license.
Copyright (c) 2019 Brooke Kullberg and Stuart McKay