Question: c++ please give a copy-able version of the code! EFT Flea Market Pnce LabS_SP21.pdf Windows 10 Netwo.. * IC Graphite - Liquid... Never Seen a
EFT Flea Market Pnce LabS_SP21.pdf Windows 10 Netwo.. * IC Graphite - Liquid... Never Seen a Lure... Amazon.com: Razer... 2 / 2 100% + TASTE PUSTIU COTTELUTPUNOLET YOU WISUUTELIS MOTO convas. B. Searching in a String In this program, you will use a string function to determine whether a user selected sub- string is present in a larger string or not. 1. Declare and initialize a string with the following text: This is a lab in CSCE 1030 based on strings. 2. Declare another string variable to store the sub-string you want to search in the larger string 3. Using a suitable message, ask the user for the sub-string. You many assume the user will only enter a single word to search 4. Using the member function findo, determine the location of the sub-string in the larger string. 5. Inside an if-else block, check if the computed location is a valid index a. If it is a valid index, display the location of the substring with a suitable message Note at just comparing the location with 1 is not sufficient Think what the valid range indices for a string is and use that in your if-else condition b. if it is not a valid index, display a suitable error message: Once you complete your program, save the file as Lab5.cpp, making sure it compiles and that it outputs the correct output. Note that you will submit this file to Canvas Now that you have completed this tab, it's time to turn in your results. Once you've moved the files to your windows machine (using winsep you may use the browser to submit VE them to Canvas for the Labs dropbox You should submit the following files
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
