Question: Draw a Lozenge ( diamond shape ) in Assembly Language Objective: Write a program in assembly language that takes two inputs from the user: the
Draw a Lozengediamond shape in Assembly Language
Objective: Write a program in assembly language that takes two inputs from the user: the width and the height of a lozenge diamond shape The program should then display the lozenge using asterisks on the console.
Specifications:
Inputs:
Width: The number of asterisks at the widest point middle row
Height: The total number of rows in the lozenge.
Output:
A lozenge diamond shape displayed in text format.
Constraints:
The width must be an odd number prompt the user to reenter if even
The height must be at least the width to form a valid lozenge.
Environment:
Use x assembly language.
Write the program to run on a bit architecture.
Example InputOutput:
Input:
Enter width: Enter height:
Output:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
