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

1 Expert Approved Answer
Step: 1 Unlock 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!