Write a program called A2P1 to run in the LC-3 simulator. The program asks for the user to type in his or her UPI. Then the program asks for the age of the user and prints the UPI out that many times. Here is an example of input and what should be produced in the simulator's console window.
For Part I you may assume (in fact you must assume) that the input provided will always match what is expected. i.e. do not consider what would happen if the user makes a mistake entering data.
The program should work exactly like this:
The program displays "Enter your upi: ".
It then waits until the user has typed 7 characters (these get stored by the program). The characters typed by the user are shown on the console as the user types them. After the 7th character the console output goes to the next line automatically without the user having to type return/enter and displays "Enter your age: "
It then waits until the user has typed a number (you may assume it will always be between 0 and 999) and has pressed return/enter.
Once again the characters typed by the user are shown (echoed) on the console as the user types them. Then the program prints the upi the same number of times as the user's entered age. Each upi appears on a separate line.