This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void takeQuiz() { | |
| for( Question qtn : questions) { | |
| QtnOutcome outcome = qtn.displayQuestion(); | |
| while (true) { | |
| if(outcome == QtnOutcome.CORRECT) { | |
| AudioClip right = new AudioClip("file:///C://Users/coolm/Documents/NetBeansProjects/Question/Music/jawsofdeath.wav"); | |
| right.play(1.0); | |
| GUIHelper.show("CORRECT"); | |
| score += 5; | |
| break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package loginpageforassignment; | |
| /** | |
| * | |
| * @author kenzewee | |
| */ | |
| import javax.swing.JOptionPane; | |
| import static javax.swing.text.html.HTML.Tag.S; |