How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask teknosof Your Own Question
teknosof
teknosof, Computer Software Engineer
Category: Programming
Satisfied Customers: 22
Experience:  I have worked in the computer field as a Technician, Software Engineer and Reliability Engineer for the last 20 years.
56840055
Type Your Programming Question Here...
teknosof is online now

Write, in assembly language, a program to display a triangle

Customer Question

Write, in assembly language, a program to display a triangle of dots.

- You need to allow the user to type in the number of lines in the triangle.
(Single digit is OK)

Show evidence with source code and comments.
Submitted: 3 years ago.
Category: Programming
Expert:  teknosof replied 3 years ago.

teknosof :

Can you tell me what assembler you are using?

Customer: replied 3 years ago.

im using putty ssh client

Expert:  teknosof replied 3 years ago.
Ok, can you give me a list of your assembly commands - they are a little different depending on your environment.
Customer: replied 3 years ago.

is there a different command list for putty?

Expert:  teknosof replied 3 years ago.
#!/bin/sh

echo enter the number of lines in your triangle
read text
echo "You entered: $text"
number=0
symbol="*"
while [ $number -lt $text ]; do
echo "$symbol"
symbol+="*"
number=$((number + 1))
done
Customer: replied 3 years ago.
Relist: Inaccurate answer.
Expert:  teknosof replied 3 years ago.
Can you give me any more information about what you specifically need?