Answered step by step
Verified Expert Solution
Question
1 Approved Answer
) Write a C++ program that inputs a lower-case character, and converts it according the following: A character that is not a letter should be
) Write a C++ program that inputs a lower-case character, and converts it
according the following:
- A character that is not a letter should be returned as is
- A lower case character is converted to an upper case character using the function below. It also increments it to the next character (b is changed to C, z is changed to A, etc.)
- Character variables will need character trace tags.
- Hint: characters only use one byte of storage and should be manipulated with byte instructions.
- Add something to the output that makes this program uniquely yours.
- Then translate it to Assembly language.
- Cut and paste you C++ Source Code into your assignment document.
- Comment lines of the source code to trace the C++ code. Cut & paste the Assembly Source Code Listing into your assignment document.
- Run for 4 inputs: one uppercase, one lowercase, one non-letter, and one for capital Z. Paste a screen shot of each in the Output area of the PEP/8.
- Step thru & Cut and paste the memory trace at a point when in uppercase subroutine.
char uppercase (char ch) {if ((ch >=
'a') && (ch <= 'z')) {return ch
- 'a' + 'A'; } else {
return ch;
}
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started