Write down the worst cardiac simulator of all time

Assignment Help Computer Engineering
Reference no: EM1331507

Write the worst CARDIAC simulator of all time (in C++) that tells the user how to execute only a single instruction typed as a 3 digit number by the user.

The user should be prompted to type in a 3 digit number. Then print to the screen whatever the CARDIAC Instruction Decoder box would show had that been the instruction. Below are 2 example runs of such a program.

Enter a 3 digit CARDIAC instruction: 493
Shift accumulator left 9 digits, then right 3 digits

Enter a 3 digit CARDIAC instruction: 265
Add the contents of cell 65 to the accumulator

Operation codes are as follows:
Code Abbreviation Meaning
0 INP Copy input to memory.
1 CLA Copy memory to accumulator.
2 ADD Add memory to accumulator.
3 TAC Move bug if accumulator < 0.
4 SFT Shift accumulator left then right.
5 OUT Copy memory to output.
6 STO Copy accumulator to memory.
7 SUB Subtract memory from accumulator.
8 JMP Backup bug to 99 then move bug.
9 HRS move bug and stop computing.

Code must use if statements. Do not use loops and arrays.

Reference no: EM1331507

Questions Cloud

Build a simple airline ticket reservation program : modify a simple airline ticket reservation program in C++ that keeps track of individual passenger names, and their associated flight numbers, departure dates and times, and originating and destination cities.
Nowc and dcf analysis : Calculate the required investment in NOWC for the three years of the project.  Use these estimates of NOWC to calculate the Cash Flow from NOWC.
Explain online marketing- the arrival of the digital age : What additional steps should The Minister of Public Enterprise in Ireland take to ensure that the 'Celtic tiger' economy continues to be successful?
Explain how business demand is derived demand : Explain how business demand is derived demand?
Write down the worst cardiac simulator of all time : make the worst CARDIAC simulator of all time (in C++) that tells the user how to execute only a single instruction typed as a 3 digit number by the user.
Zero sampling risk : Besides the medical and environmental field what other testing issues do we demand 100% accuracy on (zero sampling risk)?
Explaining cross-cultural motivational leadership : Is Hofstede's cultural dimensions model an adequate and thorough paradigm for cross-cultural motivational leadership?
Explain how the below game should be set-up : Explain how the below game should be set-up, played and solved a consumer decide.
Write down a not so bad cardiac simulator : The user has to be prompted to type in a 3 digit number, and then the program should print to the screen whatever the CARDIAC Instruction Decoder box would show had that been the instruction.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write down a simple c++ cash register program

The program must ask for the customer's first name and last name initials. Use 2 different variables, one for the first name and one for the last name.

  How frequently can the stuff bits used

Suppose a multiplexer has two input streams, each at a nominal rate of 1 Mbps. To accommodate deviations from the nominal rate, the multiplexer transmits at a rate of 2.2 Mbps as follows.

  What business applications may find roles useful

What business applications may find roles useful.

  What is an information system

What is an information system and why are they important? Can u please give me some examples. I am totally clueless on this subject. Is it possible to use information technology to gain a competitive advantage.

  Commercial ids systems

Utilizing the Internet, search for the commercial IDS systems. What are the classification systems and descriptions are used.

  Checksum of tcp and udp

UDP and TCP utilize the 1s complement their checksums. Assume that you have following three 8-bit bytes: 01010011, 01010100, and 01110100.

  Make program that creates a tab delimited file

Write down a C++ program that creates a tab delimited file that can be opened by a spreadsheet to graph the altitude and velocity of a balloon as a function of time from the time of release through 48 hrs.

  What is the state of it systems development

What is the current state of IT systems development? How do systems development approaches affect  business?

  Back-propagation neural network

Company hires your team in order to develop the back-propagation neural network(s) for predicting next-week trend of five stocks (that is, go up, go down, or remain same).

  Advantages and disadvantages of moving this functionality

Many of the functions of an adapter could be performed in software that runs on the node's CPU.

  Factors for building a server room

Explain the factors you must consider for each of the following given topics: Walls and doors, Access control

  What is the specialization of Dottie's Tax facility

What is the specialization of Dottie's Tax facility At least 6 returns? (Round z-score computation to 2 decimal places and your final answer to 4 decimal places.)

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