Write a program to produce a cross table this table should


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.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program to produce a cross table this table should
Reference No:- TGS02899766

Expected delivery within 24 Hours