Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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 to

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Strategic Database Technology Management For The Year 2000

Authors: Alan Simon

1st Edition

155860264X, 978-1558602649

More Books

Students also viewed these Databases questions

Question

What is the purpose of a balance sheet?

Answered: 1 week ago

Question

What are Mergers ?

Answered: 1 week ago

Question

3. SCC Soft Computer

Answered: 1 week ago

Question

2. KMPG LLP

Answered: 1 week ago

Question

5. Wyeth Pharmaceuticals

Answered: 1 week ago