Question: I need the code for this with a brief explantaion. Stage 1 An anagram is a word or phrase formed of the same letters as


I need the code for this with a brief explantaion.
Stage 1 An anagram is a word or phrase formed of the same letters as another, such as raw and war, or cinema and iceman. You will write a program that accepts two strings as input, determines if they are anagrams, and outputs the result. Your program will eventually judge strings with mixed upper/lower-case letters, ignoring all spaces and punctuation [.1,?]. However, it is strongly suggested that you write (and test) your program in several stages Each string value has only lowercase letters, no repeated letters, no spaces, no punctuation Example: "tar" and "art" are anagrams Each string value has only lowercase letters, no spaces, no punctuation but may have repeated letters Example: "battle" and "ballet" are not anagram:s Each string value has no spaces and no punctuation, but may have upper- and lowercase letters Example: "Shelf" and "Flesh" are anagrams Each string value may have spaces, punctuation, mixed case Example: "I THINK, therefore I am" and "I FEAR to think I'm here" Sample runs are shown below This program determines if two input strings are anagrams. #1: raw #2: war "raw" is an anagram of "war" Stage 1 An anagram is a word or phrase formed of the same letters as another, such as raw and war, or cinema and iceman. You will write a program that accepts two strings as input, determines if they are anagrams, and outputs the result. Your program will eventually judge strings with mixed upper/lower-case letters, ignoring all spaces and punctuation [.1,?]. However, it is strongly suggested that you write (and test) your program in several stages Each string value has only lowercase letters, no repeated letters, no spaces, no punctuation Example: "tar" and "art" are anagrams Each string value has only lowercase letters, no spaces, no punctuation but may have repeated letters Example: "battle" and "ballet" are not anagram:s Each string value has no spaces and no punctuation, but may have upper- and lowercase letters Example: "Shelf" and "Flesh" are anagrams Each string value may have spaces, punctuation, mixed case Example: "I THINK, therefore I am" and "I FEAR to think I'm here" Sample runs are shown below This program determines if two input strings are anagrams. #1: raw #2: war "raw" is an anagram of "war
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
