Question: write in c++ program: Input: Read from file Output: output to file A sequence of opening and closing parentheses '(', ')' is given. Create a
write in c++ program:
Input: Read from file Output: output to file A sequence of opening and closing parentheses '(', ')' is given. Create a program that calculates the balance of the opening and closing brackets. Input The text string ending with the symbol '.'. Output: A text string containing TRUE if the bracket balance is respected, and FALSE otherwise. Examples of input and output data: | INPUT.TXT | OUTPUT.TXT |
| () . | TRUE |
| ) ( . | FALSE |
| (() ()) | TRUE |
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
