Okay, I need to do this last thing for my project but I don't fully understand what it wants me to do. 😕 It says:
The program will continue until the user enters N or n. This means that anything other than Y,y,N,n will be invalid and you will notify the user and keep asking until they get it right. You will create a YesNoResponse object to acheive this. This object will have a function that gets the response and validates it and returns a bool. (Hint: create a variable of a YesNoResponse type before the while loop in main(). Then call the function inside the YesNoResponse object to return true to continue, false to stop.)
I'm not totally clear on what the f*** he means but I already have a data validation for my program but he wants one with a bool? Someone explain this to me if you could.
The program will continue until the user enters N or n. This means that anything other than Y,y,N,n will be invalid and you will notify the user and keep asking until they get it right. You will create a YesNoResponse object to acheive this. This object will have a function that gets the response and validates it and returns a bool. (Hint: create a variable of a YesNoResponse type before the while loop in main(). Then call the function inside the YesNoResponse object to return true to continue, false to stop.)
I'm not totally clear on what the f*** he means but I already have a data validation for my program but he wants one with a bool? Someone explain this to me if you could.