Answered step by step
Verified Expert Solution
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 distinct programs with due dates.
Instructions:
Coding style is the key objective, follow the instructions & restrictions.
Program 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 tasks:
Program :
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 shortcircuit 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 on one line
o Print a line of dashes
o Print number to N on one line
o Print a line of dashes
o Print down triangle, base size N for N that is s
o Print a line of dashes
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