Question
Complete the following program so that it will take in a number from the user and then delete that many letters from the word epithet
Complete the following program so that it will take in a number from the user and then delete that many letters from the word epithet provided in the .data section. For full credit, your program should output an error message if the user tries to delete more letters than are in the word epithet. Example output is provided below the code.
.data toErase: .asciiz "Epithet" prompt: .asciiz "Please enter the number of letters to erase: " errorMsg: .asciiz "You cannot delete that many letters " .text #prompt user li $v0 4 la $a0 prompt syscall #your code starts here
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