The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 2 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
C++ console program. The current code is working with exception to one item. When testing, if an 'upper case' capital alpha character is used, it errors out because the  'upper case' letter is not found in the array matrix. I am looking for a solution that does not included adding the entire alphabet, in uppercase, to the matrix. Please do not change my existing code, with exception to the edits or changes to fix the issue. Please provide the edited source code as a solution or answer to this question. The following are test sequences to use for testing:Â
1) Â {#&@Â =Â nice
2) Â [@@, !, (#<@ ][Â =Â meet at five pm
3)Â Y$% -!<@ ${&@ !)!#{ ($#+@* [/ ]+!{:Â =Â You have once again foiled my plans
In test #3, please note that the 'Y' will cause an error during testing because the upper case letter is not recognized in the array matrix. The solution for this is what I am looking for, with out changing the rest of my existing code. #1 and #2 works properly.
{\rtf1\ansi\ansicpg1252\cocoartf1504{\fonttbl\f0\fswiss\fcharset0 Helvetica;}{\colortbl;\red255\green255\blue255;\red44\green44\blue44;\red240\green240\blue240;\red255\green255\blue255;}{\*\expandedcolortbl;\csgray\c100000;\cssrgb\c22745\c22745\c22745;\cssrgb\c95294\c95294\c95294;\csgray\c100000;}\margl1440\margr1440\vieww10800\viewh8400\viewkind0\deftab720\pard\pardeftab720\partightenfactor0\f0\fs28 \cf2 \cb3 \expnd0\expndtw0\kerning0Input:\\cb4 \\cb3 1) \{#&@\cb4 \\cb3 2)\b [@@, !, (#<@ ][\b0 \cb4 \\cb3 3)\b Y$% -!<@ $\{&@ !)!#\{ ($#+@* [/ ]+!\{:\b0 \cb4 \\\cb3 Output:\\cb4 \\cb3 1) nice\cb4 \\cb3 2) meet at five pm\cb4 \\cb3 3) You have once again foiled my plans\}
Attachments: