aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrayyanansari03 <[email protected]>2021-11-16 23:49:08 -0800
committerGitHub <[email protected]>2021-11-16 23:49:08 -0800
commitd67f253d5cdbb3b9943f1ce5978397033a4de1c6 (patch)
tree9f80c484a555ae141443ea5ab139f9ceaeb2ba66
parentLab7 Answer V2 (diff)
downloadcst116-lab7-rayyanansari03-d67f253d5cdbb3b9943f1ce5978397033a4de1c6.tar.xz
cst116-lab7-rayyanansari03-d67f253d5cdbb3b9943f1ce5978397033a4de1c6.zip
Create Lab7 AnswersHEADmaster
-rw-r--r--Lab7 Answers105
1 files changed, 105 insertions, 0 deletions
diff --git a/Lab7 Answers b/Lab7 Answers
new file mode 100644
index 0000000..620c8ba
--- /dev/null
+++ b/Lab7 Answers
@@ -0,0 +1,105 @@
+LAB 7:
+
+NOTE: In this one output, adding strings, printing strings, removing strings, reprinting strings, and finding a string/substring
+in the array was all tested.
+
+OUTPUT:
+
+Please enter 0 to add a value, 1 to print the strings, 2 to remove a string, or any othe rnumber to exit: 0
+
+Enter string you would like to enter: Apple
+
+Please enter 0 to add a value, 1 to print the strings, 2 to remove a string, or any othe rnumber to exit: 0
+
+Enter string you would like to enter: HelloThere
+
+Please enter 0 to add a value, 1 to print the strings, 2 to remove a string, or any othe rnumber to exit: 0
+
+Enter string you would like to enter: Discord
+
+Please enter 0 to add a value, 1 to print the strings, 2 to remove a string, or any othe rnumber to exit: 0
+
+Enter string you would like to enter: Valorant
+
+Please enter 0 to add a value, 1 to print the strings, 2 to remove a string, or any othe rnumber to exit: 0
+
+Enter string you would like to enter: OIT.EDU
+
+Please enter 0 to add a value, 1 to print the strings, 2 to remove a string, or any othe rnumber to exit: 0
+
+Enter string you would like to enter: College
+
+Please enter 0 to add a value, 1 to print the strings, 2 to remove a string, or any othe rnumber to exit: 1
+
+String 1: Apple
+String 2: HelloThere
+String 3: Discord
+String 4: Valorant
+String 5: OIT.EDU
+String 6: College
+Please enter 0 to add a value, 1 to print the strings, 2 to remove a string, or any othe rnumber to exit: 2
+
+
+What number string would you like to remove? : 4
+
+Please enter 0 to add a value, 1 to print the strings, 2 to remove a string, or any othe rnumber to exit: 1
+
+String 1: Apple
+String 2: HelloThere
+String 3: Discord
+String 4: OIT.EDU
+String 5: College
+Please enter 0 to add a value, 1 to print the strings, 2 to remove a string, or any othe rnumber to exit: 7
+
+
+ Enter the string you would like to find: OIT
+
+Substring Found!
+
+C:\Users\ansar\source\repos\Lab7Ansari_VFinal\Debug\Lab7Ansari_VFinal.exe (process 20208) exited with code 0.
+To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
+Press any key to close this window . . .
+
+OUTPUT(2):
+
+Please enter 0 to add a value, 1 to print the strings, 2 to remove a string, or any othe rnumber to exit: 0
+
+Enter string you would like to enter: PSU
+
+Please enter 0 to add a value, 1 to print the strings, 2 to remove a string, or any othe rnumber to exit: 0
+
+Enter string you would like to enter: OIT
+
+Please enter 0 to add a value, 1 to print the strings, 2 to remove a string, or any othe rnumber to exit: 0
+
+Enter string you would like to enter: UP
+
+Please enter 0 to add a value, 1 to print the strings, 2 to remove a string, or any othe rnumber to exit: 0
+
+Enter string you would like to enter: OSU
+
+Please enter 0 to add a value, 1 to print the strings, 2 to remove a string, or any othe rnumber to exit: 0
+
+Enter string you would like to enter: UofO
+
+Please enter 0 to add a value, 1 to print the strings, 2 to remove a string, or any othe rnumber to exit: 2
+
+
+What number string would you like to remove? : 5
+
+Please enter 0 to add a value, 1 to print the strings, 2 to remove a string, or any othe rnumber to exit: 1
+
+String 1: PSU
+String 2: OIT
+String 3: UP
+String 4: OSU
+Please enter 0 to add a value, 1 to print the strings, 2 to remove a string, or any othe rnumber to exit: 8
+
+
+ Enter the string you would like to find: OBT
+
+Substring Not Found!
+
+C:\Users\ansar\Source\Repos\cst116-lab7-rayyanansari03\Debug\CST116F2021-Lab7.exe (process 21728) exited with code 0.
+To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
+Press any key to close this window . . .