Question
I'm having trouble setting up the text for my mips program in MARS The unformatted string str1 contains a word and a number in no
I'm having trouble setting up the text for my mips program in MARS
The unformatted string str1 contains a
word and a number in no particular order.
Extract each and display them to the output
Identify them as the word or the number.
Ignore any non-letter or non-digit chararacters
Display the number as a string (don't convert to
a value).
Analyze the string chars by displaying
The number of vowels, number of non-vowel letters,
and number of non-letter characters
Analyze the array arr1 by displaying
The number of positive values, zero values
and negative values. The array has 9 values
(for loop structure works)
.data
arr1: .word 7,6,5,4,34,23,12,89,500
#arr1: .word -1,-10,-2,-20,-3,-30,-4,-40,-5
#arr1: .word 0,0,0,0,0,0,0,0,0
#arr1: .word 1,2,3,0,0,0,-3,-4,-5
str1: .asciiz "widget 300"
#str1: .asciiz "100 widgets"
#str1: .asciiz "box+=20;"
#str1: .asciiz "*54car*"
chars: .asciiz "aaeeiouu"
#chars: .asciiz "xxxmmmwwpz"
#chars: .asciiz "\/?;:*$%#@()"
#chars: .asciiz "a%x&ez*\ioco+lu*"
.text
nop
li $v0,10
syscall
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started