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 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
Get step-by-step solutions from verified subject matter experts
