Question: Answer: Copy your code in the space given below and insert screenshots of your program output for the following scenario:Problem: The people of ancient land

Answer: Copy your code in the space given below and insert screenshots of your program output for
the following scenario:Problem: The people of ancient land of Pacific Baza had a simple mathematical system that knew only
natural numbers and addition. The genius Bazan scholar, Gringo el Possum, built a computer from
wood and various animal parts. Archeologists have recovered ancient scrolls with enough scraps of
programs to reconstruct the programming language he named, Adder.
The Adder language has only a few simple statements:
quit
input var
print val
var gets val
var adds val
Exit the REPL or terminate a program.
Prompt for and allow the user to enter a value for the variable named var.
Print the value val.
variable var is assigned the value val.
variable var has the value val added to it.
where:
var is always a variable name that contains only letters; and
val can be either:
a variable name that contains only letters; or
a natural number that contains only digits.
The Adder REPL allows the user to enter commands interactively. For example:
Write the program for the Adder REPL. Hints: Make good use of string methods. Can you divide your program
up into smaller pieces by defining functions?
 Answer: Copy your code in the space given below and insert

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!