I Need Assistance With Using a Bool Type Variable
With the assistance I got on my last post I continued my program, but I would greatly appreciate if anyone viewing this could correct any errors or make suggestions in my format or terminology. As a beginner programmer, I feel as though I have done the whole thing wrong! Although I hope such is not the case..
However, I am lost on my requirement to use a bool type variable to "check for proper states." I dont know what that means!
My instructions were:
I need a H (for Help) option to invoke a function named "help()" which will display a help screen that says "How To Interact WIth This Program?"..the help screen is supposed to remain up until the user strikes any key.
Second I needed an "S" (for SetParams) option that will prompt for the number of students and quizzes (no more than 50 students & no more than 5 quizzes)
Third, i needed an F (for FillArray) option to be invoked after the S option. To enter a student ID made of 5 digits for each student incrementing by 1..Once completed, to display "Data Entry Completed."
Lastly I needed a D (for DisplayResults) to be invoked after the F option. Where the student ID scores and averages will be displayed. (im still figuring out this part)
Even if you cant help with all of this, any small contribution that I can use as a guide is greatly appreciated! Thank you in advance :)
Re: I Need Assistance With Using a Bool Type Variable
Java doesn't have bool type variables. It does have boolean variables that can hold a value of true or false.
requirement to use a bool type variable
They are used to remember one of two states like: found or not found, good data or bad data, valid state or invalid state
I don't know how they would be used to "check for proper states." Their value could be the results of some test.