The authors of the book do a very thorough job explaining

Assignment Help C/C++ Programming
Reference no: EM13350615

The authors of the book do a very thorough job explaining Simpleton's operation, and encourage you to take a look at what they have written before you read any further.

For the most part, your objective in this assignment is the same as what is listed in the book with the following exceptions:

1. For this assignment, it is okay to ignore the sign of the instruction.

2. The interactive console's operation has been altered from what is listed in the book. After receiving a complete program from the user, you will iterate over each instruction.

Prior to executing a given instruction, you must do a memory dump. In other words, display the accumulator, the current instruction, and the values in each memory location (see screenshots).

3. Section occurs before the authors introduce C++. Because we have moved onto C++, your solution must be written in C++, contain one or more classes, and use data structures when appropriate. At minimum, your program must contain a "Simpletron" class that will be used to represent the state of the Simpletron machine.

Sample Implementation

Implementation contains a Simpletron class and several supporting Instruction classes (one for each instruction supported by the Simpletron).

Instruction to represent an instruction supported by Simpletron. As such, create a child class for each instruction (approximately 13 sub classes) and a factory to handle new object creation. Also note that create an enum called Operation_t that acts as an easier way to work with operations (i.e. using Read, Write, Load, etc. instead of 10, 11, etc.). Other than that, it's mostly getters and setters with the exception of the virtual execute method.

Reference no: EM13350615

Questions Cloud

Question1a rigid uniform horizontal bar of mass m1 8000 kg : question1a rigid uniform horizontal bar of mass m1 80.00 kg and length l 5.200 m is supported by two vertical mass
Backgroundkennedy power solutions ltd kps was incorporated : backgroundkennedy power solutions ltd. kps was incorporated in january 2001 in sudbury ontario. kps is a private
You are required to submit a written assignment relating to : you are required to submit a written assignment relating to new product development. in it you will show a new product
The problems of parking on campussuppose you come to your : the problems of parking on campussuppose you come to your class a half an hour before class start and you search a full
The authors of the book do a very thorough job explaining : the authors of the book do a very thorough job explaining simpletons operation and encourage you to take a look at what
Patricia hampl daniel schacter and memory and imagination : patricia hampl daniel schacter and memory and imagination of time and autobiographyq. hampls essay focuses on the
Case study online educationintroductionas the internet had : case study online educationintroductionas the internet had become yet another arrow in the quiver of educational
Hospital-acquired infection and outbreakshospital-acquired : hospital-acquired infection and outbreakshospital-acquired nosocomial or infection infection is not a new concept.
Metropolis toys metropolis toys is an independent : metropolis toys metropolis toys is an independent family-owned manufacturer of wooden toys. the toys are designed by

Reviews

Write a Review

 

C/C++ Programming Questions & Answers

  Write the code to exchange the values of these two variables

Write the code to exchange the values of these two variables (so that after the swap xp points to what yp originally pointed to and vice-versa.

  Create class that allows you to generate number of plants

In your driver, you should create at least 2 different plants, after you instantiate a plant, you should print out the information about the plant, then water the plant at least three times and then print out the plant again.

  Consider the subsequent selection statement where x is an

consider the subsequent selection statement where x is an integer test score between 0 and 100.input xif 0 lt x and x

  Function declare that it can throw an ioexception

Every C++ function that performs file I/O will thus need to either declare that it can throw an IOException, or contain a try-catch-finally block to deal with it. Response?

  Write application which ask user to input grades of students

Write C++ application which asks user to input grades for 5 student (3 grades each) save them in five double one dimensional arrays (one array for each student),

  Prepare a businesspartner

Prepare a BusinessPartner class that contains a company name, first name and a telephone number.

  Write c program to read one ip address

Write a C or C++ program which Read one IP address at a time from Dec_IPAddresses.txt and convert it into Hex. Store converted values stored in another file (e.g. HEX_IPAddresses.txt).

  Squares, triangles, circles and ellipses

write a program which will answer a pair of questions for squares, triangles, circles and ellipses. A square is defined by its lower left corner ( S L L x , S L L y ), and the length of one side  S W .

  What information do you need to find the selling price

To make a profit, the prices of the items sold in a furniture store are marked up by 60%. Design an algorithm to find the selling price of an item sold at the furniture store. What information do you need to find the selling price?

  Write a program to simulate tossing a fair coin

Print the number of tosses that yield heads and the number of tosses that yield tails. What should be the percentage distribution of heads and tails?

  Create an array of objects from the provided code

Create an array of objects from the provided code and run a for loop to assign strings and numbers. In this assignment, I will need to see the main function. Make sure there is a default constructor.

  Write a c++ program that asks the user for a radius r

Write a c++ program that asks the user for a radius r. The program must include a function called calcwradius that accepts the value of the radius r, and calls the function pi shown below.

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