ˇ Write branching statement(s) switch or if will work.
ˇ Work with a loop, build understanding of how it works.
1. Create a .java file and setup your main() method as follows, you can skip comments:
2. Read the comments but the basic idea is that the while loops until "quit" is entered. "Loops" here means that when the closing brace, '}', is reached, the next statement executed is the test at the top of the loop, i.e. !ans.equals("quit"). If ans is actually "quit", this test will fail and we will exit the loop, meaning the next statement will be whatever is after the loop, after the closing '}'.
3. Your program should display questions, wait for the user to press [Enter] (it doesn't need to check for "quit" here), and then display the answer -- like flash cards.
4. You need to have the given if statement, formatted similarly, and the smaller and( &&) question. Use the value of num to control what card is displayed.
5. Add 10 more "flashcards", no more than half boolean operators (and no basic arithmetic not programming related). Two of these should be longer, meaning multiple lines, though not necessarily as long as the if one.
6. All your facts need to be displayed.
1. Give a flowchart for your solution, including the while loop.
2. Brainstorm what one feature you would like to add to this program (no, reasonable, wrong answer).