CS2103 – Assignment 1 (Solution)

$ 20.99
Category:

Description

Instruction:

Problem 1.
Implement a menu driven Program with help of function in C for the following Array operations.
a. Creating an Array of N Integer Elements
b. Display of Array Elements with Suitable Headings
c. Inserting an Element (ELEM) at a given valid Position (POS)
d. Deleting an Element at a given valid Position (POS) e. Exit

Problem 2.
Write a Program in C for the following operations on Strings without using inbuilt function:
a. Read a main String (STR), a Pattern String (P_str) and a Replace String (R_str)
b. Perform Pattern Matching Operation: Find and Replace all occurrences of P_str in STR with R_str if P_str exists in STR. Report suitable messages incase P_str does not exist in STR.

Problem 3:
Write a program using C to find out the largest and smallest element in an 1D array using dynamic memory allocation.

Reviews

There are no reviews yet.

Be the first to review “CS2103 – Assignment 1 (Solution)”

Your email address will not be published. Required fields are marked *