Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(must be in English and C++ Data type string ) Write a C++ program that asks the user to enter a string. After that, the
(must be in English and C++ Data type string ) Write a C++ program that asks the user to enter a string. After that, the program should ask for another string in a variable named "str new Take another string input in the variable named "str old. In the end, the program should replace the "str new with str old'. In the end the program prints the update string
Sample input :
Please enter a string: Java programming is great fun! Enter the word to replace: Java Enter the word to replace with: C++
Sample Output;
C++ programming is great fun!
Step 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