Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Word Play

In this assignment you will write a program which will give the user the following menu of options
1. Enter a word
2. Check letter or vowel times
3. Palindrome
4. Anagram
5. Exit

Explanation

The menu allows the user to enter a word and then choose from the other options to carry out operations on that word.

The program should not be case sensitive. For example, if RadAr is entered, ‘R' will be recognised as being the same as ‘r'.
You should use while loops to iterate through your list rather than use built in functions to carry out the main operations in menu options 2, 3 and 4.
Write functions (defined by def) where you can.

Guidance on options

1. Enter a word Invite the user to enter a word and then turn the word into a list.

2. Check letter or vowel times
Invite the user to enter a letter or check for vowels and then carry out a linear search which will count how many times that letter occurs in the word entered in 1.

3. Palindrome
A palindrome is a word which has the same spelling from right to left as it has left to right e.g.CIVIC.
Your code will check if the word entered in option 1 is a palindrome and output a suitable message.

4. Anagram
An anagram is a word which contains the same letters as the original word. e.g. SILENT is an anagram of LISTEN.
Your code will invite the user to enter another word and check if it is an anagram of the word entered in option 1.

Some methods will just check if both words contain the same letters but do not deal with the number of times the letters occur. Other methods will take this into account and therefore be true anagram checkers. Either of these alternatives are acceptable for this assignment.

5. Exit
Leave the program. The menu of options will repeat until '5' is entered

Test data

Test your program with the following data, but make sure that it works with other data.
CIVIC
LEVEL I
E
LISTEN
SILENT

Make sure that the work is your own.
This course work contributes 10% of your final mark for the course and must be individual in the same way that an exam answer is your own work. Try and use lists, functions and While loops where necessary. Remember to use while loops to iterate through your list rather than use built in functions to carry out the main operations in menu options 2, 3 and 4. For example built in functions like [::-1] or str.reverse() - reversing the string will not be accepted as a valid method for checking Palindrome or Anagram.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92596368
  • Price:- $25

Priced at Now at $25, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Not all context free grammars define regular languages

Not all context free grammars define regular languages. However, the following two DO define regular languages. For each grammar below, (a) describe the corresponding language and (b) draw the corresponding finite state ...

In a particular two cities apartment prices are decreasing

In a particular two cities apartment prices are decreasing. One main factor driving apartment prices down in the cities is the supply in new apartments into the market is much greater than the increase in the demand for ...

Answer the following questions whats the synchronous

Answer the following Questions : What's the synchronous distribution ? What are the guidelines for menu layout or list them?

Cullumber inc has issued a three-year bond that pays a

Cullumber, Inc., has issued a three-year bond that pays a coupon rate of 7.3 percent. Coupon payments are made semiannually. Given the market rate of interest of 4.4 percent, what is the market value of the bond?  (Round ...

Question suppose we have a system with frequency of

Question : Suppose we have a system with frequency of floating point operations = 35%. What should be the speedup of floating point operation in our design of the next CPU to achieve a desired overall system speedup in t ...

On the spot courier services grew and changed over the

On the Spot courier services grew and changed over the years. At first, Bill received requests for package pickups on his mobile phone, recorded that information in a log, and would then drive around to retrieve all the ...

Research the fire at the federal aviation administration

Research the fire at the Federal Aviation Administration (FAA) facility in Chicago, Illinois (2014). Provide insight into the following: What went wrong? What went right? Would a risk assessment strategy if employed miti ...

What service is defined as it services for example in a gym

What service is defined as IT services? For example, in a gym, is members called IT services? What else? could you give me another example?

Suppose you are writing software for a radio station that

Suppose you are writing software for a radio station that manages its playlists. The program will generate candidate playlists from a record library automatically and station personnel can then check and modifythem. Disc ...

All rsa cryptosystem has public key n 35 and e 7 messages

All RSA cryptosystem has public key N = 35 and e = 7. Messages are encrypted one letter at a time, converting letters to numbers by A = 2, B = 3, .... Z = 27, space = 28. Showing your working, encrypt the message: BE GOO ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As