0% found this document useful (0 votes)
29 views3 pages

Worksheet 1.2 of Data Structure

Uploaded by

Aryaman Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views3 pages

Worksheet 1.2 of Data Structure

Uploaded by

Aryaman Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Student Name: Aryaman Sharma UID: 20BCS4206

Branch: CSE-CC2 Section/Group: 20CC2/B


Semester: 3 Date of Performance: 04/09/2021
Subject Name: Data Structure lab Subject Code: 21O-20CSP-236

1. Aim/Overview of the practical:


To Understand the concept of string creation and operation on string.

2. Task to be done:
Write a program to implement the following operations on strings:
Read a string, replace string, perform pattern matching, find and replace any occurrences of a
pattern

3. Algorithm:

Step 1. Start

Step 2. Declare string and some variable.

Step 3. Read the string

Step 4. Read the character to be searched

Step 5. Read the new character to be inserted


Step 6. Search the character to be replaced in string by using for loop

Step 7. Print the new string

Step 8. Stop

4. Code:

5. Output:
6. Learning outcomes:
1. Learned the basics of string creation.

2. Learned the basics of operations on strings

3. Understand the basics of data structure.

Evaluation Grid (To be created as per the SOP and Assessment guidelines by the faculty):

Sr. No. Parameters Marks Obtained Maximum Marks


1.
2.
3.

You might also like