Question: Q5: Write a user defined function in C++ which take a variable name as parameter and check if the variable name is according to the

 Q5: Write a user defined function in C++ which take a

Q5: Write a user defined function in C++ which take a variable name as parameter and check if the variable name is according to the variable name convention or not. If the name is correct, then program must display a message that the variable name is correct otherwise suggest variable names to a user (suggest at least three names that are variants of the parameter variable). (5 Marks) Sample Input/Output Enter variable name: The variable name is not correct. Ivar Suggested names are: var1, var_1, VAR1 Enter variable name: The variable name is correct var_1

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!