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

  Imagine that the array is unsorted

Write down a method, removeAll, that takes three parameters: an array of integers, the length of the array, and an integer, say, removeItem. The method should find and delete all occurrences of removeItem in the array.

  How looping statements different from selection

define when you would use a while loop rather than a for loop and vice versa. Provide an example of one such instance.how looping statements different from selection.

  Implementing the python atm program

Write down a simple Python ATM program. Ask user to enter their account number, and then print their beginning balance. Then ask them if they wish to make a deposit or a withdrawal.

  Show how to build a j-k flip-flop

express how to build a J-K flip-flop using a T flip-flop with enable and combinational logic.

  Select a product that lends itself to an inventory

select a product that lends itself to an inventory (for example, products at your workplace, office supplies, music CDs, DVD movies, or software).

  What will be the list assumptions for the scope of project

What will be the list assumptions for the scope of project? Give detailed and measurable non functional requirements.

  Build a word document listing the software

The scenario is that you do volunteer work for the small, self-funded community support group. With very little money available, the group has been unable to computerize its operations.

  What aspect of data is problematic

What aspect of data is problematic

  Creating database for company

If you were preparing to create a brand new database for a company, do you think there would be any value in the interviewing the users to determine out what colors and designs they like?

  How to produce a function mult-stream

How to produce a function mult-stream.

  How to write a class named dayofyear that gets an integer

How to write a class named DayOfYear that gets an integer Day 2 would be January 2 Day 32 would be February 1 Day 365 would be December 31

  Make a java application for a mail order company

Write down a Java application for a mail order company that uses a data entry screen in which the user types an item number and a quantity. Write each record to a file named as "MailOrderRecords.txt".

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