Please find the code below::::
.data
prompt: .asciiz "Enter hours worked in a week: "
prompt2: .asciiz "Enter hourly wage rate in dollars: "
prompt3: .asciiz "\nThe total wage for the week is $"
.text
.globl main
main:
li $v0,4
la $a0,prompt #it will print prompt
syscall
li $v0,5
syscall
move $s0,$v0 #store worked hours
li $v0,4
la $a0,prompt2 #it will print prompt
syscall
li $v0,5
syscall
move $s1,$v0 #store hour pay
mul $t0,$s0,$s1
li $v0,4
la $a0,prompt3 #it will print prompt
syscall
li $v0,1
move $a0,$t0 #store worked hours
syscall
output:

please write this following in MIPS(Assembly Language) -write hourly program with following -how many hours you...
Please help me with MIPS programming language. Thank you 1) Write MIPS assembly for an array of words: array[12] = h + array[8]; Assume Map: $s2 = h $s3 = base address of array $t1 = temp 2) Write MIPS assembly for an array of words: g = h + array[i]; Assume Map: $s1 = g $s2 = h $s3 = base address of array $s4 = i
Write a program to print out a random number from 1..100. Use MIPS assembly language
CDA-3101 – MIPS Assembly Programming 1. Write the following code segment in MIPS assembly language code: 3. Write a MIPS program to find the sum of squares from 1 to n. Where n=10. For example, the sum of squares for 10 is as follows: 12+22+32+……+n2=385
MIPS ASSEMBLY PROGRAM: PLEASE Write in MIPS Assembly language. Take strings as input and calculate and print a simple checksum for each string. Make your string long enough to hold 50 characters. Don't forget to leave space for the null byte. Our checksum algorithm will produce a value which you can print with the syscall for printing a character. Stop reading strings when the user enters ".". The syscall to read a string (sycall code 8) adds a newline to...
Name B. (7 pts) MIPS short answer 1. (3pt) For the following MIPS assembly language program: loop: addi Sto, $to,-1 bne $to, $zero, loop Translate the second instruction into MIPS machine language and write it in hex. 2. (2 pt) Which best describes the reason that we maintain the stack pointer in a register? (circle one) i. The hardware forces use of a stack pointer. ii. We need a local pointer because we are often limited to relative addressing. ili....
MIPS Programming Assignment 4 (logical operations) Please write a complete MIPS assembly language programs for the following questions and print a hardcopy of your code to submit 1. Swap each pair of elements in the string "chararn be an even number of characters in "chararray". (see loop4.a) 2 "numbers" is an array of five words. Catculate the sum of aftetements in "number muttiples of 4. Use the and instruction, not div or remfor thisquestion(S 3. "number" is a word. Write...
Linear Search: Write a MIPS assembly language program that can search for a number that entered by user in an array with 20 integer numbers and prints the index of the number in the array if it is found and -1 if not found
Write an Assembly language program to: A- Store the following text " Welcome to Assembly Language" in the ROM at 200H B- Find how many e letters in this word and store the count in the RAM in location 40H
Write an Assembly language program to: A- Store the following text " Welcome to Assembly Language" in the ROM at 200H B- Find how many e letters in this word and store the count in the RAM in location 40H
Write a MIPS Assembly language program to request a file name from the user, open the file, read the contents, and write it out to the console.
Write a MIPS Assembly language program to request a file name from the user, open the file, read the contents, and write it out to the console.