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

  Expand your program in part 1 to allow the operand

expand your program in part 1 to allow the operand use the immediate addressing mode. that is the value of

  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

  Questiona distinguish between following object-oriented

questiona distinguish between following object-oriented concepts using suitable examples-i no-argument constructor

  Write a paper on mcdonaldsethics and social responsibility

write a paper on mcdonalds.ethics and social responsibility at mcdonaldspaper includesabout mcdonaldscorporate social

  Design a program that models the worms behavior in the

design a program that models the worms behavior in the subsequent scenarioa worm is moving toward an apple. each time

  In this lab we will use the timer interrupts to coordinate

in this lab we will use the timer interrupts to coordinate peripherals on the microcontroller. we will use code from

  Aussie best car abchas now decided to award an additional

aussie best car abchas now decided to award an additional bonus based on the bonus contributed by the sales of an

  Develop a better understanding of building web applications

develop a better understanding of building web applications using ajax technologies.you are requested to use all ajax

  Tavelling salesman tsp problem on the l1-metric plane

travelling salesman tsp problem on the l1-metric plane problem description a travelling salesman wants to make a tour

  Use ruby on rials to design app video store will be your

use ruby on rials to design app video store will be your project it has to have a database and at least 4 pages style

  Problem1 the fibonacci numbers are defined by the

problem1 the fibonacci numbers are defined by the sequencef1 1 f2 1 fn fn-1 fn-2.reformulate that asfold1 1 fold21

  Produce a project plan and an interim description of the

produce a project plan and an interim description of the project developmentproblem 1. northern lights alert service.

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