Question: program then a screenshot 4. Write a program that calculates the area and perimeter of a rectangle given two labels WIDTH and HEIGHT in the

program then a screenshot 4. Write a program that calculates the area and perimeter of a rectangle given two labels WIDTH and HEIGHT in the DATA area. Your program should be written in a table similar to the one below (no screenshot from falcon). .CODE Area = Width x Height LOAD @#HEIGHT Perimeter = 2x( Width + Height) SAVE RO LOAD G#WIDTH SAVE R1 HALT DATA .NUM #2 HEIGHT :WIDTH .NUM #5 .NUM #0 :AREA : PERIM .NUM #0 . END program then a screenshot 4. Write a program that calculates the area and perimeter of a rectangle given two labels WIDTH and HEIGHT in the DATA area. Your program should be written in a table similar to the one below (no screenshot from falcon). .CODE Area = Width x Height LOAD @#HEIGHT Perimeter = 2x( Width + Height) SAVE RO LOAD G#WIDTH SAVE R1 HALT DATA .NUM #2 HEIGHT :WIDTH .NUM #5 .NUM #0 :AREA : PERIM .NUM #0 . END
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
