Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an ASM program that prompts the user to enter a string of at most 128 characters and then displays the string in reverse order,

Write an ASM program that prompts the user to enter a string of at most 128 characters and then displays the string in reverse order, with: each upper-case letter converted to its corresponding lower-case letter, and each lower-case letter converted to its corresponding upper-case letter. The program should also display the number of uppercase letters after displaying the output string, as well as the total number of characters in the string. For instance, a sample execution of Ass2-Q2.exe" with the input string An Input Line! is shown below

C:\Programming\asm>Ass1-Q2

Enter a string of at most 128 characters: An Input Line!

Here it is, with all lowercases and uppercases flipped, and in reverse order:

!ENIl TUPNi Na

There are 8 upper-case letters after conversion.

There are 14 characters in the string.

C:\Programming\asm>

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

Students also viewed these Databases questions

Question

Explain how cultural differences affect business communication.

Answered: 1 week ago

Question

List and explain the goals of business communication.

Answered: 1 week ago