Question: Q-1: Write a program in Assembly language using MIPS instruction set that reads a sentence/string and prints the number vowels in the sentence. The

Q-1: Write a program in Assembly language using MIPS instruction set that




Q-1: Write a program in Assembly language using MIPS instruction set that reads a sentence/string and prints the number vowels in the sentence. The program should scan from the beginning to the end of the sentence and calculates the total numbers of vowels (a, e, I, o, u). Both uppercase and lowercase letters are treated equally. The program should also print the number of each vowel character in the sentence. Your sentence should contain at least one character and a maximum of 255 characters. Find below the ASCII values of all the vowel characters: Character ASCII Value Character ASCII Value A 65 97 69 101 73 105 79 111 85 117 Sample Input /Output: Enter a string: A quick brown fox jumps over the lazy dog Number of vowels in the string: 11 Number of A / a in the sentence = 2 Number of E/e in the sentence 2 Number of I/i in the sentence = 1 Number of O/o in the sentence = 4 Number of U /u in the sentence = 2 Sample Input/Output: Enter a string: To be, or not to be, that is the question Number of vowels in the string: 13 Number of A / a in the sentence =1 Number of E/e in the sentence = 4 Number of I /i in the sentence = 2 Number of O/o in the sentence = 5 Number of U /u in the sentence 1 E.

Step by Step Solution

3.38 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Program Data declaration part data Input prompt for stentence input asciiz Enter a string Allocate space for string str space 100 Output messages outp... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!