Answered step by step
Verified Expert Solution
Link Copied!

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.
  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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Performance Indexing In SQL Server

Authors: Jason Strate, Grant Fritchey

2nd Edition

1484211189, 9781484211182

More Books

Students also viewed these Databases questions