Java slot machine applet: nifty assignment
Thomas Mertz
Abstract
Thomas Mertz
Abstract
This paper describes an assignment in which a student implements a Java applet that simulates a slot machine. The assignment is given in an advanced Java programming course in conjunction with the topic of multithreading. The assignment's student learning objectives include: (1) implement multiple concurrent threads, (2) recognize and use the Java synchronized construct, (3) recognize and use thread states to pause and resume thread execution, (4) use nested panels to construct an attractive GUI. Because most students know what a slot machine is, they immediately understand the requirements of the assignment and most think it is fun.
A significance statement is not available in the OpenAlex record.
A contribution statement is not available in the OpenAlex record.
Method details are not available in the OpenAlex metadata.
Findings are not separately available in the OpenAlex metadata.
Limitations are not available in the OpenAlex metadata.
Application details are not available in the OpenAlex metadata.
This paper describes an assignment in which a student implements a Java applet that simulates a slot machine. The assignment is given in an advanced Java programming course in conjunction with the topic of multithreading. The assignment's student learning objectives include: (1) implement multiple concurrent threads, (2) recognize and use the Java synchronized construct, (3) recognize and use thread states to pause and resume thread execution, (4) use nested panels to construct an attractive GUI. Because most students know what a slot machine is, they immediately understand the requirements of the assignment and most think it is fun.
Key concepts: Java applet, Computer science, Java, Java concurrency, Thread (computing), Programming language, strictfp, Multithreading