Lab-Final-Question
Lab-Final-Question
0. Write an assembly language program that will take an alphabet as an input (A~Z) or (a~z)
and also take a given value N as input (0 to 9). Now, the output will show/display the N
number character from the alphabet order starting from starting input alphabet (in the
same case upper/lower as the given input).
Sample Input / Output:
Input Alphabet: B
Given Value N: 3
Output: E
1. Write an assembly language program that will accept an input string of 5 (five) letters in
LOWERCASE from the keyboard and displays the string in reverse order in
UPPERCASE in a new line.
2. Write an assembly language program that will accept an input string of 5 (five) letters in
UPPERCASE from the keyboard and displays the string in reverse order in
LOWERCASE in a new line.
4. Write an assembly language program that will accept an input digit N (0 to 9) from the
keyboard and finds the odd digits up to that input and displays those in new lines.
5. Write an assembly language program that will accept an input of 5 (five) digits (0 to 9)
from the keyboard randomly and rearrange them in ascending order.
6. Write an assembly language program that will accept an input of 5 (five) digits (0 to 9)
from the keyboard randomly and rearrange them in descending order.
7. Write an assembly language program that will accept an input of 5 (five) digits (0 to 9)
from the keyboard randomly and sort-out the odd and even digits from them.
8. Write an assembly language program that will accept an input of 8 (eight) digits (0 to 9)
from the keyboard randomly and sort-out the odd digits in ascending order.
9. Write an assembly language program that will accept an input of 8 (eight) digits (0 to 9)
from the keyboard randomly and sort-out the odd digits in descending order.
11. Write an assembly language program that will accept an input of 8 (eight) digits (0 to 9)
from the keyboard randomly and sort-out the even digits in descending order.
12. Write an assembly language program that will accept an input of 8 (eight) digits (0 to 9)
from the keyboard randomly and finds the prime digits in ascending order.
Input: 24756183
Output: Primes Digits Ascending: 2 3 5 7
13. Write an assembly language program that will accept an input of 8 (eight) digits (0 to 9)
from the keyboard randomly and finds the prime digits in descending order.
Input: 24756183
Output: Primes Digits Descending: 7 5 3 2
14. Write an assembly language program that will accept an input of 8 (eight) digits (0 to 9)
from the keyboard randomly and sort-out the odd prime digits in ascending order.
15. Write an assembly language program that will accept an input of 8 (eight) digits (0 to 9)
from the keyboard randomly and sorts them in ascending order.
16. Write an assembly language program that will accept an input of 8 (eight) digits (0 to 9)
from the keyboard randomly and sorts them in descending order.
Input: 23 Input: 24
Output: GCD: 1 Output: GCD: 2
18. Write an assembly language program that will accept an input of 5 (five) digits (0 to 9)
from the keyboard and finds the summation of the digits and displays the result in HEX
digit.
Input: 12345
Output: Sum: F
19. Write an assembly language program that will display an array inputted string “Islamic
University of Technology” and it’s reverse string one after another for 10 times each
(forward and reverse print) in total 20 (twenty times) in different lines with line feed..
20. Write an assembly language program that will display all the ASCII characters at
REVERSE ORDER.
21. Write an assembly language program that will display only the ASCII characters of all
DIGITS, ALPHABETS (upper and lower) at FORWARD and REVERSE ORDER (in
different lines).