Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Overview & guidelines: Think about logic & how you are solving problems using limited resources & syntax. That is the assignment objective. The only ASM

Overview & guidelines:
Think about logic & how you are solving problems using limited resources & syntax. That is the assignment objective.
The only ASM you need has already been covered in class. Do not stray far from those constructs, but slight variations & enhancements are fine.
o Do not call any external or additional functions other than those we have been regularly using.
o Work on good program structure. Clear logic. Maybe even comments.
The assignment will consist of 3 distinct programs with 3 due dates.
Instructions:
Coding style is the key objective, follow the instructions & restrictions.
Program 1,2,3 below may ask for variables
o Create initialized variables in the .data section
Note. You may need variables for prompts & output labels
o Reserve space for variables in the .bss section
Your code should do the following 3 tasks:
Program 1:
o Variables, with initial values:
Prompt asking to enter input
dash, number of dashes to put on a line
o Variable, reserved but not initialized
N, the user input value
o Control flow:
Loop: only proper loop loops may be used. Only use loop.
Do not jump out to short-circuit a loop, the proper structure and use of the loop loop much be maintained.
o Comments: use each bullet step to label code sections
o Program will now do the following::
o Print a line of dashes
o Print numbers N to 1 on one line
o Print a line of dashes
o Print number 1 to N on one line
o Print a line of dashes
o Print down triangle, base size N ( for N=3, that is 3,2,1*s )
***
**
*
o Print a line of dashes

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

Beginning Apache Cassandra Development

Authors: Vivek Mishra

1st Edition

1484201426, 9781484201428

More Books

Students also viewed these Databases questions

Question

Why is it a good idea to avoid being judgmental? (p. 177)

Answered: 1 week ago

Question

x-3+1, x23 Let f(x) = -*+3, * Answered: 1 week ago

Answered: 1 week ago