Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I n C++ please and please DO NOT use special arrays or pointers, do not use vectors, do not use built-in sorting functions, etc. PLEASE
In C++ please and please DO NOT use special arrays or pointers, do not use vectors, do not use built-in sorting functions, etc.
PLEASE USE THIS SKELETON CODE
#include
#include
#include
using namespace std;
// MISSING FUNCTION DECLARATIONS HERE (you can remove these comments)
int main()
{
// MISSING CODE HERE (you can remove these comments)
// Get strings from user
// Clean strings
// Check to see if they are anagrams
// Report if they are or not anagrams
return 0;
}
// MISSING FUNCTION DEFINITIONS HERE (you can remove these comments)
anagrams.cpp This is a program that determines if 2 strings are anagrams. An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, for example, the letters in the word "listen" can be re-arranged to spell "silent". The function should not be case sensitive and should disregard any numerals, punctuation or spaces (i.e. any non-alphabet characters). Two strings are anagrams if the letters can be rearranged to form each other. For example, Eleven plus two is an anagram of "Twelve plus one". Each string contains one "v", three "e's", two "I's", etc. You may use C++ strings and arrays to solve this problem. Write a program that inputs two strings and calls your function to determine whether or not the strings are anagrams and prints the result. A session should look like one of the following examples (including whitespace and formatting). $ ./anagrams Enter first string: Eleven plus two Enter second string: Twelve plus three The strings are not anagrams. $ ./anagrams Enter first string: Rats and Mice Enter second string: in cat's dream The strings are anagrams. Requirements 1. Be sure to utilize only techniques we've covered in lecture. Do not use "special" arrays or pointers, do not use vectors, do not use built-in sorting functions, etc. You will get zero points if you do. 2. Start your program using the anagrams.cpp program that I've provided you with. The skeleton program shows called functions, which, of course, you must use. You can create more functions in your program if you need toStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started