Write a python program that reads a dumbbasic program

Assignment Help Python Programming
Reference no: EM131004113

Complete assignment in python 2.7

Your task

You should write a Python program that reads a DUMBBASIC program from standard input1, and prints the results of executing that program to standard output.

Your code is intended as a "proof­of­concept­prototype", so your code does not have to be robust against invalid input. However, it should be properly commented so as to serve as a reference for when you implement a production­quality version.

Reuse

In the course of your assignments throughout the semester, you will implement an interpreter for a related language. While you may not directly reuse this code, you should design your prototype in such a way that it would be easy to extend.

Incremental development

You should develop your program incrementally, getting a intermediate parts working and tested before going on to the next. You should implement the PRINT statement first. You will be given partial marks for each of the commands you do successfully implement.

Efficiency

Correctness and a clean design are more important than fast performance for this assignment; however, you should choose your data structures and algorithms to avoid obvious bottlenecks (for instance, searching through a list one­by­one repeatedly rather than using a dictionary).

Submitting

If your code is in a single Python source file, you need only submit that (appropriately commented) file. Please call this file dumbbasic.py. Header comments should include your name, a brief description of what has been implemented, and any known bugs.

If your code is in multiple source files, you should submit a ZIP file containing those ­ not a rar, gzipped tar, or any other archiving format. The file that I should run to interpret a DUMBBASIC program should be called dumbbasic.py

Attachment:- Assignment.rar

Reference no: EM131004113

Questions Cloud

How us attorneys roles may influence judicial policymaking : Explain in a paragraph the doctrine of stare decisis as distinguished from civil-law systems. Review how U.S attorneys roles may influence judicial policymaking
Selected financial data for squid company : Selected financial data for Squid Company are as follows:
Identify the optimal level of water quality : In the diagram draw the marginal social cost line that illustrates this. Add a marginal social benefit line that shows how the additional benefits of control decrease. Identify the optimal level of water quality. Suppose the government mandates co..
Find the equation to the graph : Let f (x) = 2x3/ (3 - 3x)3. Find the equation of line tangent to the graph of f at x = 2. Let f (x) = 6x√(4 - 2x). Find the equation to the graph of f at x = -2.
Write a python program that reads a dumbbasic program : You should write a Python program that reads a DUMBBASIC program from standard input1, and prints the results of executing that program to standard output.
Are businesses taking steps to internalize externalities : The Marketplace section of the Wall Street Journal is a good place to look for information re- lated to externalities. On a given day, see how many sto- ries you can find that deal with externalities-positive or negative. Are businesses taking ste..
Postretirement commitments retirement restoration plan : The Retirement Restoration Plan provides death benefits and supplemental income payments for senior executives after retirement. The Company recognized expense of $5.2 million in 2006, $6.4 million in 2005 and $7.1 million in 2004.
When is a profitability index used : How can we compare projects in the case where they have different life-spans?
Consolidated statement of earnings of anonymous corporation : The consolidated statement of earnings of Anonymous Corporation for the year ended December 31, 2007, is as follows:

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program that computes the mean, median, mode

How to write a python program that computes the mean, median, and mode?

  Integration of mnch commodities supply chain management

Objective of the study is to examine the outcome of integration of logistic and supply chain management of MNCH commodities on service delivery, specific objectives have been set to achieve the aim of the study.

  The block of statements below the line of stars

The block of statements below the line of stars is where I need help correcting. The true line that needs to be corrected is p = add((getX(k),getY(r))), it needs to give points of the path using the block of information. I have somthing which I kn..

  Implements authentication using needham-schroeder protocol

Write a small project which implements authentication using Needham-Schroeder protocol. Alice connects to Bob using a trusted third party.

  Write a program using the ''requetinteger''

using python/jython programming write a program using the 'requetInteger' function that will ask the user to type a value that will draw a line from one point on a picture to another. I don't need specific help just a gerneral idea.

  Two-dimensional word puzzle

Write a python function called find_words that finds and prints the list of valid words in a two-dimensional word puzzle

  Write a program that opens an encrypted file

Write a second program that opens an encrypted file and display its decrypted contents on the screen.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Without using the system function to call any bash commands

without using the system function to call any bash commands write a python program that will implement a simple version

  Assignment brief you are tasked with improving the code for

assignment brief you are tasked with improving the code for the haunted house game. please read the associated hand-out

  Create a cheat commands in the game so player can teleport

Create a cheat commands in the game so player can teleport to any location in the map - The first four tasks in this section can be completed by modifying only the code within the ProcessStatement() and Game() functions. This section typically requ..

  Fill in the python code

Fill in the Python code to play Tic Tac Toe. I won't award points unless it runs succesfully. # Tic-Tac-Toe Game def drawBoard(board): # Draws the board using the list of numbers print(" ") print(" ",board[0]," | ",board[1]," | ", board[2]) print("--..

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