Write a program which will give the user the menu of options

Assignment Help Computer Engineering
Reference no: EM131787686

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.

Reference no: EM131787686

Questions Cloud

Effective rate of interest for the given types of loans : Your company plans to borrow $5 million for 12 months, and your banker gives you a stated rate of 14 percent interest.
Write a program to determine whether integer overflow : Write a program to determine whether integer overflow in your version of C++ results in the "wrap-around" behavior described in the text.
Prepare journal entries to record merchandising transactions : Prepare journal entries to record the following merchandising transactions of Bask Company, which applies the perpetual inventory system
Dysfunctional conflict and functional conflict : Define conflict and distinguish between dysfunctional conflict (bad) and functional conflict (good).
Write a program which will give the user the menu of options : SEFP - Computing Programming Assignment - write a program which will give the user the menu of options - Enter a word Invite the user to enter a word
What is the effective rate of interest : Zerox Copying Company plans to borrow $150,000. New Jersey National Bank will lend the money at one-half percentage point over the prime rate at the time.
Contrast management with leadership : Contrast management with leadership and explain their relationship to one another.
Write an enumeration currency : Write an enumeration Currency whose enumerators are the names of D. S. coins with values up to one dollar and in which the integer associated
Write declarations for variables : Write declarations for variables p1 and p2 whose values will be addresses of memory locations in which a double e can be stored.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd