Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 5.56 KB

readme.md

File metadata and controls

64 lines (41 loc) · 5.56 KB

Microprocessor & Assembly Language Lab

3rd Year 2nd Semester - Computer Science & Engineering, University of Rajshahi

Author

Language

  • Assembly Language

Index

Title: Series Summation & Factorial Calculation Problems

1(a) Series Summation ✓

  • Write an assembly language program to implement a series summation program that will read a number N of single decimal digit [from 1 to 3] as input and then calculate the summation value of the series 1+2+...+N. Your program must contain necessary messages for formatted input and output.

1(b) Factorial Calculation ✓

  • Write an assembly language program to implement a factorial calculation program that will read a number N of single decimal digit [from 0 to 3] as input and then determine the factorial value of N. Your program must contain necessary messages for formatted input and output.

Title: Even-Odd & Prime Number Testing Problems

2(a) Even-Odd Testing Problem ✓

  • Write an assembly language program to implement an even-odd testing program that will read a number N of single decimal digit [from 0 to 9] as input and then determine whether N is an even number or an odd number. Your program must contain necessary messages for formatted input and output.

2(b) Prime Number Testing Problem ✓

  • Write an assembly language program to implement a prime number testing program that will read a number N of single decimal digit [from 0 to 9] as input and then determine whether N is a prime number or not. Your program must contain necessary messages for formatted input and output.

Title: Largest number & Sorting Problems

3(a) Find Largest Number ✓

  • Write an assembly language program to implement a largest number finding program that will read an array of numbers of single decimal digits [from 0 to 9] as input and then find out the largest number among all the numbers as output. Your program must contain necessary messages for formatted input and output.

3(b) Number Sorting ✓

  • Write an assembly language program to implement a sorting program that will read an array of numbers of single decimal digits [from 0 to 9] as input and then sort the numbers in (1) ascending order (ii) descending order as output. Your program must contain necessary messages for formatted input and output.

Title: Case Conversion & String Reversal Problems

1(a) Case Conversion ✓

  • Write an assembly language program to implement a case conversion program that will read a string (a line of characters of letters, digits, punctuation symbols, and others) as input and then convert the letters into its opposite case as output. Here, the characters which are not belonged to letters will remain be unchanged. Your program must contain necessary messages for formatted input and output.

1(b) String Reversal ✓

  • Write an assembly language program to implement a string reversal program that will read a string (a line of characters of letters, digits, punctuation symbols, and others) as input and then make the reverse form of the string as output. You have to solve this problem in two ways such as (i) using array (ii) using stack. Your program must contain necessary messages for formatted input and output.

Title: String Searching Problems

2(a) Find Capital Letter ✓

  • Write an assembly language program to implement a searching program that will read a string (a line of letters of English alphabet) as input and then find out the first capital letter which is occurred first and last capital letter which is occurred last in the alphabetical order as output. Your program will display a message with "No Capitals" when there is no capital letter in the string. Your program must contain necessary messages for formatted input and output.

2(b) Longest Alphabetical Sequence ✓

  • Write an assembly language program to implement a searching program that will read a string (a word of letters of English alphabet either all in uppercase or all in lowercase but not both) as input and then find out the longest sequence of letters in the word in alphabetical order. Your program must contain necessary messages for formatted input and output.

2(c) Check Substring ✓

  • Write an assembly language program to implement a searching program that will read two strings (two words of letters of English alphabet either all in uppercases or all in lowercases but not both) as input and then determine whether a string is a substring of another string or not. Your program must contain necessary messages for formatted input and output.

Title: Counting & Sorting Problems

3(a) Count Vowels, Consonants, Digits & Spaces ✓

  • Write an assembly language program to implement a counting program that will read a string (a line of characters of letters, digits, punctuation symbols, and others) as input and then count the number of Vowels, Consonants, Digits, and Spaces in the string as output. Your program must contain necessary messages for formatted input and output.

3(b) Sorting String ✓

  • Write an assembly language program to implement a sorting program that will read a string (a word of letters of English alphabet either all in uppercase or all in lowercase but not both) as input and then sort the letters in the word in alphabetically (i) ascending order (ii) descending order. Your program must contain necessary messages for formatted input and output.