Question: Write the C++ code that uses the substr function to determine whether the string stored in the rate variable ends with the percent sign. If
Write the C++ code that uses the substr function to determine whether the string stored in the rate variable ends with the percent sign. If it does, the code should use the replace function to remove the percent sign from the variable’s contents.
Step by Step Solution
3.59 Rating (163 Votes )
There are 3 Steps involved in it
if ratesubstr... View full answer
Get step-by-step solutions from verified subject matter experts
