FIT2004: you need to create a program the user can enter a word, reverse the word and check if the word is a palindrome word using a linked list: Algorithms and data structures Assignment, MUM, Malaysia
University | Monash University Malaysia (MUM) |
Subject | FIT2004: Algorithms and data structures |
you need to create a program the user can enter a word, reverse the word and check if the word is a palindrome word using a linked list. At the end of the program, it will list all of the palindrome words from the words entered.
The program must consist of the following method/function:
a) menu() – as an interface for the user
b) add_word(string) – to enter the word into the list
c) show_list() – to display the lists
d) reverse_word(string) – to reverse the word
e) palindrome(string) – to check if the word is a palindrome
f) palindrome_list() – to list all of the palindrome words
g) delete_list() – to delete list
For example, a segment of output:
How many words do you want to enter: 3
Please enter a word: kayak
Please enter a word: madam
Please enter a word: world
Reversed the word: kayak
Reversed the word: madam
Reversed the word: low
kayak is a palindrome word.
madam is a palindrome word
world is not a palindrome word.
List of the palindrome words: kayak, madam
Get Solution of this Assessment. Hire Experts to solve this assignment for you Before Deadline.
Get Help By Expert
Assignment Help Malaysia offers affordable and effective solutions on FIT2004: Algorithms and data structures assignments. Our writers have the relevant industry experience to write error-free answers on programming assignments at a budget-friendly price.
Recent Solved Questions
- LAW034: Delima is a single mother who supports her three children and is a sick mother. She is uneducated but nevertheless managed: Introduction to Legal Theories Assignment, UiTM, Malaysia
- BTW3153: The student has to imagine that this request comes from a client, a partner in an accounting firm, or the manager of the company: Malaysian income tax law Case Study, MUM, Malaysia
- ELC501: Human beings harbour a deep need to belong. On a biological level, belonging is survival: English for Critical Academic Reading Assignment, UiTM, Malaysia
- MGT6208E: Rakyat Quality of Life” is the core of the New Economic Model for Malaysia, and as the Nation embarks on reaching the developed-country: STATISTICS AND DECISION ANALYSIS Assignment, IIU, Malaysia
- CHE 433: Velocity is an intensive property of a system and One kilogram of water at a temperature of 225°C and 500 kPa has a volume of 0.078405 m3: Thermodynamics Assignment, UiTM, Malaysia
- HBET1403: Culture is the knowledge that is socially acquired and It is learned from other people and shared with people in a specific community: Sociolinguistics in Language Teaching Essay, OUM, Malaysia
- LAW 3711: Mee Lan left RM 3000 for the maintenance of aged and poor people at Gunung Ledang: Equity & Trusts II Assignment, IIUM, Malaysia
- DUE10012: Many people have the mindset that everything revolves around money Having a lot of money, after all, leads to greater spending power which can satisfy one’s impulses: Communicative English 1 Essay, PM, Malaysia
- MGT 269: Students need to write an analytical report It is one of the methods to evaluate students understanding of real-world: Business Communication Report, UiTM, Malaysia
- Discuss the effects of each of the following on the value of the firm: A new advertising campaign increases: Managerial Economics Assignment, MUM, Malaysia