Question: Write a Pep / 9 assembly language program that reads an integer value from the keyboard, and displays a table that shows the product when
Write a Pep assembly language program that reads an integer value from the keyboard, and displays a table that shows the product when the input value is multiplied by successive powers of between and In other words, your program should produce exactly the same output as the following C program:
#include #include int inpVal; int multipl; int product; int main printf; scanfd &inpVal; multipl ; product inpVal ; printfd d d
inpVal, multipl, product; multipl ; product ; printfd d d
inpVal, multipl, product; multipl ; product ; printfd d d
inpVal, multipl, product; multipl ; product ; printfd d d
inpVal, multipl, product; multipl ; product ; printfd d d
inpVal, multipl, product; end of main
Example of Input and Output format requirements:
For this example, assume that the keyboard input given to the program is:
For this input data, the output report must look like this:
Notice the spaces around the and symbols. If you run the C program shown on this page with a C compiler, this is the exact output you will obtain go ahead and try it Your task is to write a Pep Assembly Language program that does this.
Notes:
BE SURE TO RUN THE PROGRAM IN "Terminal" MODE IN Pep AND NOT "Batch" MODE SO THAT IT WORKS AS AN INTERACTIVE PROGRAM.
All multiplication operations involve powers of in this problem, so you can use the Pep ASLr instruction to implement these operations you DON'T need loops to complete this assignment
Be sure to adhere to the format example EXACTLY. This means that there should be a space after the in the first line of the output, and that there are two spaces before the when the multiplier is or but only one space before the when the multiplier is or this causes the symbols to be nicely aligned in the output There will be a deduction for misformatted 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
