Write a program called a2p1 to run in the lc-3 simulator

Assignment Help Application Programming
Reference no: EM13380341

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.

1085_Assembly language program.png

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.

Reference no: EM13380341

Questions Cloud

Part 1in your own words answer the following questionswhat : part 1in your own words answer the following questionswhat is network infrastructure management? what are the
Project 1 bull in your own words what rfc gives : project 1 bull in your own words what rfc gives the protocol and specifications a news server must use to
The australian commonwealth government has developed a : the australian commonwealth government has developed a cloud computing strategy and cloud computing policy and you as
You have no guarantees about the accuracy of the input from : you have no guarantees about the accuracy of the input from the user. you have to check all input and give helpful
Write a program called a2p1 to run in the lc-3 simulator : 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
Part 1 you will implement a program where the computer : part 1 you will implement a program where the computer plays against a human opponent. the game will start with a
Proceed according to the following instructionsidentify a : proceed according to the following instructions.identify a recent within the last six 6 months moral dilemma or
Consider the relational schema of part of a firm database : consider the relational schema of part of a firm database below. write a sql query for each of the following
1decryption speeda certain cryptography vendor was : 1.decryption speeda certain cryptography vendor was providing an encryption technology that was breakable within 10

Reviews

Write a Review

Application Programming Questions & Answers

  Statistical calculatortask write a windows application in

statistical calculatortask write a windows application in visual basic to perform functions of standard and statistical

  Imagine that your company has decided to expand to the web

imagine that your company has decided to expand to the web. you want to reuse some data entry code that has been

  Assessmentthe project reports will be evaluated in three

assessmentthe project reports will be evaluated in three areasaccuracy and completeness of computationsyou have to get

  You are to design a small dictionary using the binary

you are to design a small dictionary using the binary search tree data structure. each entry may include a word and its

  Taskyou are to plan and then code the next version of the

taskyou are to plan and then code the next version of the cp1200 catering calculator as described in the following

  Problem 1 write a program that prints a multiplication

problem 1 write a program that prints a multiplication table like this 1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12 14 16 18 20 3

  Part a - state space search using lisp this part of the

part a - state space search using lisp this part of the assignment requires you to solve the following problem using

  Question 1a write an assembly code segment that calls the

question 1a write an assembly code segment that calls the subroutinenew functionif bits 5 and 6 of portd equal 1.b

  Convolving with user defined kernelsas described previously

convolving with user defined kernelsas described previously the smooth function gives equal weight to the neighbouring

  The file below this drop winetxt contains the records from

the file below this drop wine.txt contains the records from a wine data file.the 5 fields in each row arethe wine

  Hubspot is currently at a crossroads with management

hubspot is currently at a crossroads with management looking for rapid acceleration of sales and profits. in their

  1 design and draw a ladder diagram circuit suitable for a

1. design and draw a ladder diagram circuit suitable for a plc which will fulfil the following control requirementa

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd