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 is ASCII value x which is the integer Input integers will have no more than two
digits.
Example with my Net ID:
Input: ;
Output: cid
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:
;
;
;
;
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
