Question: ) 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.
  1. Cut and paste you C++ Source Code into your assignment document.
  2. Comment lines of the source code to trace the C++ code. Cut & paste the Assembly Source Code Listing into your assignment document.
  3. 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.
  4. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!