Click here to Skip to main content
15,843,727 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Implement a function called validate that tests whether a number entered from the keyboard is within the range of 0 to 100.the function should display the words: invalid entry and request for a new value for a maximum of three trials. If a valid value is entered, the program should display the word: valid.
Updated 13-Aug-10 22:29pm
Emilio Garavaglia 14-Aug-10 3:45am    
Reason for my vote of 1
Sandeep Mewara 14-Aug-10 3:53am    
Reason for my vote of 1
1. No Effort
2. Homework
Sandeep Mewara 14-Aug-10 3:55am    
Please don't flood with your homework questions here. Providing direct code is not encouraged here. Try and then come.

I hope your professor is not talking about one C++ function? Input and validation should not be implemented in the same function.
Share this answer
It does not work like this here.
Here is what is expected by enquirers:
1. TRY first what you want to do!
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900