ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 24 May 2017 My Price 9.00

Karel the Robot

1411319: “Programming Languages and Paradigms” 

 

                                                                       Program 2                          

(This assignment is based on the book “Karel the Robot: A Gentle Introduction to The Art of Programming” by R. E. Pattis)


                                                            

College of SciencesDepartment of Computer Science1411319: “Programming Languages and Paradigms”Program 2(This assignment is based on the book “Karel the Robot: A Gentle Introduc±on to The Art ofProgramming” by R. E.Pa²s)Your term project is to write a simple but complete compiler for a language that includes most, if not allthe features found in all other well-developed languages. By the end of the semester, you shouldincorporate in this project all the materials we study in this course. The project will be done in stages,star±ng with a very simple and limited commands version and then extending it to include all thefeatures. The list below shows all the available commands in this language that are used to control themovements of a robot called Karel. Karel’s world can be represented as a two dimensional array.Karel is a simple and somewhat a primi±ve robot. He can move in any of the four direc±ons (east, west,north, and south) and can also drop or pick up beepers that he carries in a bag. However, Karel does havesome intelligence since he can recognize the following situa±ons:1.He can’t move if there is an obstacle in the way.2.He can’t drop a beeper if the bag is empty.3.He can’t move west or south if he is at position 1,1 or north or east if he isat 100,100.The project will be implemented in a few stages.You are required to write the Frst phase (stage one) of a project which is a simple program in C++Stage one:Primi±ve instruc±ons only.1.moveKarel moves one block forward.2.turnleftKarel pivots 90 degrees to the left.

Attachments:

Answers

(11)
Status NEW Posted 24 May 2017 04:05 AM My Price 9.00

-----------

Not Rated(0)