Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

By using C++ Write a C++Program, which compares two strings and displays the message accordingly. The requirements of the program are: Declare two string objects

By using C++ image text in transcribed
Write a C++Program, which compares two strings and displays the message accordingly. The requirements of the program are: Declare two string objects name1 and name2 Store the user input names in name1 and name2. Program should ignore the case of the inputs provided. This can be done by converting the given inputs to uppercase. Use the string library by adding this line at the top of your program #include The following two functions are required bool samestring(string s1, string s2) o Compares both the strings using compare function from the class string string uppercaseit(string s) o Use for loop in combination with toupper function to convert each character of the string to uppercase and store it into a variable converted

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

Discuss the steps of a generic change project.

Answered: 1 week ago

Question

What tools might be helpful?

Answered: 1 week ago