Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro PowerShell For Database Developers

Authors: Bryan P Cafferky

1st Edition

1484205413, 9781484205419

More Books

Students also viewed these Databases questions

Question

Why are small businesses important to the U.S. economy?

Answered: 1 week ago

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago