Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

PROGRAM : Cross Table (HLA) (High Level Assembly Programming)

Write a program to produce a cross table. This table should be built from a single int8 value provided by the user. The program will display a row of four values, separated by | or - characters, as shown below.

The upper left and lower right quadrants will be made up of the value entered by the user. The upper right and lower left quadrant will be made up of successively smaller values from the one entered by the user.

It's much easier to see than describe in english.... . The only thing that will vary is the opening value entered by the user. For example, the following output should be produced when the user inputs the starting value 15:

Gimme a starting value: 15
15 15 | 14 13
15 15 | 12 11
-- -- -- --
14 13 | 15 15
12 11 | 15 15

For example, the following output should be produced when the user inputs the starting value 20:

Gimme a starting value: 20
20 20 | 19 18
20 20 | 17 16
-- -- -- --
19 18 | 20 20
17 16 | 20 20

(Hint: Please don't worry about the formatting of the table, if it doesn't exactly match mine above. The goal is to practice with HLA and we really don't know enough to get the spacing just perfect...)

Do not use if, else, for statements.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M93093780

Have any Question?


Related Questions in Computer Engineering

Question 1in what ways can a hash value be secured so as to

Question: 1. In what ways can a hash value be secured so as to provide message authentication? 2. Elaborate on the applications, weaknesses and limitations of the hashing algorithms The response must be typed, single spa ...

Suppose a coworker approaches you and asks what an ethical

Suppose a coworker approaches you and asks what an ethical hacker does. She does not understand the role that an ethical hacker plays in the security industry and assumes that such a hacker intentionally causes damage. E ...

A supermarket awards coupons depending on how much a

A supermarket awards coupons depending on how much a customer spends on groceries. For example, if you spend $50, you will get a coupon worth eight percent of that amount. The following table shows the percent used to ca ...

Solve the following one 1 self-check problems on paper and

Solve the following one (1) Self-Check problems on paper and bring your sheet of paper to your section on Thursday: Write a function called grades that takes a list of tuples as a parameter. Each tuple in this list conta ...

Explain the risk of having hacking tools installed on your

Explain the risk of having hacking tools installed on your computer and why you should contact local law enforcement agencies before installing those tools.

With more persons working from home how does one separate

With more persons working from home, how does one separate data intended for the employer form what might be considered personal property? What policies could be put in place to ensure employees adhere to safe guidelines ...

What are the two potential souces of inefficiency in the

What are the two potential souces of inefficiency in the health care market?

Is there someone to help me on to write c codea write a

Is there someone to help me on to write c++ code? A) Write a snippet of code to declare ( what would go into the .h file) and then implement(what go into the .cpp file) an exception class called PetBitesException which h ...

Similar to problem 10 on page 282 assume we have an 8g

Similar to problem 10 on page 282, assume we have an 8G times 64 word addressable computer built using 512M times 32 chips. Memory is addressed using low-order interleave. Answer the following questions. a. How many RAM ...

Hemophilia is a hereditary disease for females it is known

Hemophilia is a hereditary disease for females. It is known that any female has 40% chance of being a carrier of hemophilia. If the mother was a carrier, then any daughter of hers has 50% chance of inheriting this diseas ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As