Question: Code should be in C++ In this lab, you will be practicing using [ ] and indexing to access individual characters in a C-string. Remember

 Code should be in C++ In this lab, you will be

practicing using [ ] and indexing to access individual characters in a

C-string. Remember that a C-string variable is just an array of elements

of type char. Use this fact to write a program that takes

two words and determines if the two words are anagrams of each

Code should be in C++

In this lab, you will be practicing using [ ] and indexing to access individual characters in a C-string. Remember that a C-string variable is just an array of elements of type char. Use this fact to write a program that takes two words and determines if the two words are anagrams of each other or not. Two words are anagrams if they contain the same letters (include how frequent they are) only in a different order. For example These are anagrams of each other pit - tip skin kins blow - bowl alloy loyal hated - death hose shoe These are not anagrams of each other: ump pump house home hotter - tinker levels - vessel Note that your program needs to have at least one function areAnagram that takes two C- strings (the words) and passes back a boolean value of true if the two words are anagrams of each other and false if they are not anagrams Assume that the words typed only have letters (no spaces or punctuation). Let the user type in any number of words (two at a time) until they want to quit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!