Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a)
- Choose (A: add scores), (R: refresh scores), or (Q: quit)
- Input 0s and 1s in one line, and put * at the end
- Choose (A: add scores), (R: refresh scores), or (Q: quit)
- Invalid command. Try Again
- Choose (A: add scores), (R: refresh scores), or (Q: quit)
- The data is refreshed
- Choose (A: add scores), (R: refresh scores), or (Q: quit)
- *** End of Program ***
- b) line 25
- else if (command == 'D') {
- System.out.printIn("Display the result");
- }
- c)
- num0 counts the amount of times that 0 is entered while num1...
- counts the amount of times that 1 is entered. num0 should...
- equal 3 and num1 should equal 4 after the program is executed.
- d)
- Choose (A: add scores), (R: refresh scores), or (Q: quit)
- Input 0s and 1s in one line, and put * at the end
- Choose (A: add scores), (R: refresh scores), or (Q: quit)
- Display the result
- Num0| ***
- Num1| ****
- Choose (A: add scores), (R: refresh scores), or (Q: quit)
- *** End of Program ***
- e) line 20
- num0 = num1 = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement