Project #14648 - c++ project

c++ program to take 2 strings convert them to lower case and check if they are anagrams or not using the letter count method

In the letter count method when taking a letter in string a and checking it in string b and finding it, the letter should be replaced by "!" in order not to get an error of counting the same letter twice each time

 

create c++ program with 3 files:

1) InterviewMayhem.cpp : here will contain function definitions for areAnagrams() and normalize()

2) InterviewMayhem.h : here there are the function delerations (of normalizing to lower case and letter count and checking if strings are anagrams)

3) TestDriver.cpp : here there are tests for each function, test if the normalize function converts to lower case and test if the letter count is working and test if the whole areAnagrams function works.

 

the 3 functions must be named exactly like this:

- int main(int argc, char** argv);    <--- written in TestDriver.cpp

- char normalize(char input);

- bool areAnagrams(char* s1, char* s2);

 

P.s use the example "Google's Anagram" and "google nags a ram" to check lastly if they are anagrams

 

Subject Computer
Due By (Pacific Time) 10/16/2013 12:00 pm
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy