Write a program to find 2 English words that add together to produce a (single) third English word.Use the following base 27 mapping, where zero is a space:0 1 2012345678901234567890123456″ abcdefghijklmnopqrstuvwxyz”For example: so + up = and as follows:1 1 0 (carries)19 15 so+ 21 16 up= 1 14 4 andUse the posted list of words in wordslist.txt. Use a brute force approach. Read the entire list into adictionary array in memory. Generate every combination of words, add them together, then check ifthe result is also in the dictionary. If so, print out the addition problem, nicely formatted as shownbelow. Your pairs should be anti-symmetric, that is, for every a + b, do not include b + a.a+ as= ata+ award= awarea+ box= boyand so on… all the way to…so+ up= andthe+ yet= armytoo+ trade= trustXXX word pairs out of 1865 words sum to another word.Resources:wordlist.txtRequirements:You must find an
Hi i need this hw
- September 26, 2024
- admin
- Comments Off on Hi i need this hw
- Computer Science
- uncategorised
