Lab Task 2
Lab Task 2
Fall Semester
LAB Task: 1 - 2
Course Title : Data Structures & Algorithms Course Code: SWE-202
Course Inst : Javeria Naz Date 2-Oct-2023
Note:
Submission Instructions: Please ensure that your name, section, and your student ID
number are legibly written and clearly visible on the front of your submission.
Submission Format: You have to submit in Soft form.
Late Penalty: Late task will not be accepted.
a. Create a C++ program using a class and functions to add six user-input
values to the end of an array. The array initially holds three pre-assigned
values. Afterward, display the complete array, including all nine values.
Functions name should be: Assign, Display and Input. Also write
Algorithm.
b. Write a program to delete a number from the end of array. Also write
Algorithm.
c. Given the string "Hello, World!", write a program to reverse only the
words in the string, not the entire string USING stack implemented using
array. For example, "Hello, World!" should become "olleH, dlroW!".
Also write Algorithm.
_________________________________