1.

Create program TestParentheses that will notify user if set of parentheses is incomplete.

Sample Input/Output:

Enter expression: y=(x+1);

Expression is correct;
________________________

Enter expression: x((y-8)*;

1 set(s) of parentheses is/are missing
_______________________

Enter expression: y=(a*(b+(3-b)+(a);

2 set(s) of parentheses is/are missing

Recommended Answers

All 2 Replies

Please can you give me the codes

no ... we're actually waiting for you to give us the codes you've written so far and tell us where you're stuck.

this is a developer forum, not 'developers-for-hire'

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.