From ea266a4b6b0a07ff4e0842a9653b1634ac95f8ab Mon Sep 17 00:00:00 2001 From: Joseph Ten Eyck Date: Thu, 11 Nov 2021 00:34:03 -0800 Subject: Figured out what was giving me trouble! This is the completed assignment. --- RUNS.txt | 143 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) (limited to 'RUNS.txt') diff --git a/RUNS.txt b/RUNS.txt index 07afccb..780d6cc 100644 --- a/RUNS.txt +++ b/RUNS.txt @@ -253,3 +253,146 @@ Press any key to close this window . . . + + ============================== + What would you like to do? + ============================== + + 1) Test if a string is a palindrome + 2) Test if a string is all alphabetic characters + 3) Count the number of times a specific character appears in a string + 4) Exit + + Menu choice #: 2 + + --------------------------------------------------- + Enter a string (up to 30 characters, no spaces) + --------------------------------------------------- + Enter string: hello + + All characters are alphabetic! + + ============================== + What would you like to do? + ============================== + + 1) Test if a string is a palindrome + 2) Test if a string is all alphabetic characters + 3) Count the number of times a specific character appears in a string + 4) Exit + + Menu choice #: 2 + + --------------------------------------------------- + Enter a string (up to 30 characters, no spaces) + --------------------------------------------------- + Enter string: again? + + Not all characters are alphabetic. + + ============================== + What would you like to do? + ============================== + + 1) Test if a string is a palindrome + 2) Test if a string is all alphabetic characters + 3) Count the number of times a specific character appears in a string + 4) Exit + + Menu choice #: + + + + + + + + ============================== + What would you like to do? + ============================== + + 1) Test if a string is a palindrome + 2) Test if a string is all alphabetic characters + 3) Count the number of times a specific character appears in a string + 4) Exit + + Menu choice #: 3 + + --------------------------------------------------------- + Enter a string (up to 40 characters, spaces are okay) + --------------------------------------------------------- + Enter string: hello kile! + + ----------------------------------------------- + Enter a character to count the frequency of + ----------------------------------------------- + Character: l + + ~ The frequency of the character 'l' is 3. ~ + + + ============================== + What would you like to do? + ============================== + + 1) Test if a string is a palindrome + 2) Test if a string is all alphabetic characters + 3) Count the number of times a specific character appears in a string + 4) Exit + + Menu choice #: 3 + + --------------------------------------------------------- + Enter a string (up to 40 characters, spaces are okay) + --------------------------------------------------------- + Enter string: dad dude + + ----------------------------------------------- + Enter a character to count the frequency of + ----------------------------------------------- + Character: d + + ~ The frequency of the character 'd' is 4. ~ + + + ============================== + What would you like to do? + ============================== + + 1) Test if a string is a palindrome + 2) Test if a string is all alphabetic characters + 3) Count the number of times a specific character appears in a string + 4) Exit + + Menu choice #: 3 + + --------------------------------------------------------- + Enter a string (up to 40 characters, spaces are okay) + --------------------------------------------------------- + Enter string: hello planet! + + ----------------------------------------------- + Enter a character to count the frequency of + ----------------------------------------------- + Character: x + + ~ The frequency of the character 'x' is 0. ~ + + + ============================== + What would you like to do? + ============================== + + 1) Test if a string is a palindrome + 2) Test if a string is all alphabetic characters + 3) Count the number of times a specific character appears in a string + 4) Exit + + Menu choice #: 4 + + ~ Goodbye! ~ + + +C:\Users\eclip\Source\Repos\cst116-lab6-JosephTenEyck\Debug\CST116F2021-Lab6.exe (process 10696) 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 . . . -- cgit v1.2.3