aboutsummaryrefslogtreecommitdiff
path: root/lab7.txt
blob: 76ccd84a8924fd87b397c09ff3fc1c66faf98df5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
CST116
Module 7: Lab 7
12a
Write a program that includes a function to read (at least 100) strings into an array. Allow the
user to either add a string or print out the contents of the array. Be sure to stop “printing” at the
end of the entered values -- don’t “print” after the end of the user’s entered data. Be sure to give
the user the chance to leave the program.
10 pts
Submit: code & runs
===============================================================================


12b
Add to your program from part 12a:
An option in a function that can find a string or substring in a string in the array. This need just
be the first occurrence of the string or substring.
10 pts
Submit: code & runs

===============================================================================

11c
Add to your program from part 12b:
An option in a function that can remove a string from the array (and compress the array) based
on its location in the array. Make sure that the “print” option reflects the removed string.
10 pts
Submit: code & runs
Total: 30 pts