Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

* * Must print from memory, memory cannot be modified more than twice for every line of output. * * Must not calculate N in

** Must print from memory, memory cannot be modified more than twice for every line of output. ** Must not calculate N in the program.
Description:
Write a program to print the string "@????????" X times (where @???????? Is your Howard ID), one string in each separate line, where X = ID %9+10. The m-th string is displayed starting at the character at index (m + N)%9(index beginning at 0), where N = ID %7. The last line should NOT be followed by a new line.
For example, if the Howard ID is @12345678, N =12345678%7=2. The first string is displayed starting at the digit 2, as it has the index 2(@ has the index 0). The second starts at the digit 3, third at the digit 4, and so on. The string should be printed for 12345678%9+10=10 times. The 10 strings displayed would be:
2345678@1
345678@12
45678@123
5678@1234
678@12345
78@123456
8@1234567
@12345678
12345678@
2345678@1
In the data section of your program, you are required to have the following content only (replace @12345678 with your own Howard ID):
.data
id: .asciiz @12345678
Requirements:
The program must be able to run correctly under QtSpim.
The program must be named as project_0.s.
The output must have the exact format as specified above. No other messages or prompts should be printed except the ID strings. i have this but its incomplete i need help completing it
image text in transcribed

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

Step: 3

blur-text-image

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

The Power Of Numbers In Health Care A Students Journey In Data Analysis

Authors: Kaiden

1st Edition

8119747887, 978-8119747887

More Books

Students also viewed these Databases questions

Question

=+4. What information remains to be obtained?

Answered: 1 week ago