Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an assembly program which is able to get a text input and find the characters that the indices in the given text and alphabet

Write an assembly program which is able to get a text input and find the characters that the indices in the given text and alphabet match. (You can use English alphabet). Program must be able to run infinitely until user enters EXIT as input. For example, for the given text ANTHEM, the result is A, E > 2:

A index in text:1, index in alphabet:1 match

N index in text:2, index in alphabet:14 no match

T index in text:3, index in alphabet:20 no match

H index in text:4, index in alphabet:8 no match

E index in text:5, index in alphabet:5 match

M index in text:6, index in alphabet:13 no match

1. Get a text as an input using Emulator Screen. The program must only accept capital letters. The program must check whether the entered character is a capital letter and if it is not, it can be neither processed nor printed. For example, if user enters C1E?N+G then the program must not print 1, ?, + and print only CENG. When the Enter key is pressed, the program must get the printed text as input and start processing.

2. When the program gets the input from user, it must check each character if the required match occurs and store the matched characters.

3. Finally, the program prints the matched characters and the count of matched characters on Emulator Screen and waits for the new text until the new text is EXIT.

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