Question: Create a Branflake program that will accept two integers in the form of a string x op y; where op is an operator in {

Create a "Branflake" program that will accept two integers in the form of a string xopy; where op
is an operator in {+,*}. Execute the numeric values represented by the string, then output the sum of the
two values as a string followed by a space then your Net ID (with lowercase letters). Note that the
character 7 is ASCII value 0x37, which is the integer 55. Input integers will have no more than two
digits.
Example with my Net ID:
Input: 12+34;"
Output: "46 cid021000"
Note that you will not use the quotes. They are here to indicate that input and output are strings.
Submit with the file name .bf
Use the following online Branflake interpreter to write your code:
Online interpreter
Be able to accept input for either addition or multiplication.
Fully successful implementations should be able to handle inputs of the following types:
9+17;
82*4;
91+42;
5*8;
Note: Detect the semicolon to know where the expression ends.

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 Programming Questions!