CSE115 Lab 8 Fall 2016 DUE DATES: Monday recitations:00 PM on 11/6 Wednesday recitations:00 PM on 11/8 Thursday recitations:00 PM on 11/9 Friday...
This question has been answered
Question

Here you have to write code to build a slot machine simulation and

all the contents of the lab is provided in the attached lab handout.

1 Attachment
CSE115 Lab 8 Fall 2016 DUE DATES: Monday recitations: 9:00 PM on 11/6 Wednesday recitations: 9:00 PM on 11/8 Thursday recitations: 9:00 PM on 11/9 Friday recitations: 9:00 PM on 11/10 Saturday recitations: 9:00 PM on 11/11 Preliminaries This lab is the first of three labs (lab 8, lab 10 and lab 11) that in the end will have you build a single-player matching game like Candy Crush. In lab 8 you will apply what you have learned in lecture to build some elements that we will need for labs 10 and 11. Lab 9 will be an unrelated lab. The due dates for labs 8, 10 and 11 are arranged to that we can provide a solution to lab 8 as a starting point for lab 10, in case you do not complete lab 8 fully. Similarly, we will be able to provide a solution to lab 10 as a starting point for lab 11, in case you do not complete lab 10 fully. Keep in mind that any work you submit must be your own. Submitting work done by someone else as your own is academically dishonest, and will result in immediate failure in the course. We will use software tools to detect inappropriate collaboration. Ready! They say “What happens in Vegas stays in Vegas.” But maybe we can bring some of that excitement to class! In this lab you will build a simple graphical simulation of a slot machine. Of course, it won’t pay out money, but it will display “YOU WIN!” if you match three symbols. And really, what more could you want? You will need to use many concepts that you’ve learned so far to solve this lab. The more important and recent ones are: collections loops conditionals creating a simple graphical user interface (GUI), including a. containers b. components c. event handling This lab will also introduce you to an important design idea,
Background image of page 1
CSE115 Lab 8 Fall 2016 model-view separation Your TAs will give you an overview of the lab and hints of how to proceed in recitation. You should expect to have to put in time outside of recitation to finish this lab. We therefore recommend that you bring your laptop to recitation so you can more easily continue to work outside of Baldy 21. During office hours TAs will give priority to students who have attended recitation. It is not acceptable to skip recitation and then expect one-on-one assistance in office hours. Some aspects of this lab will ONLY be discussed in recitation , and TAs will NOT answer basic questions about these topics during office hours. Because this lab gives you a great deal of freedom in how you write the code there is NO AUTOMATED GRADING. When you submit to Web-CAT the only score you will see is your early bonus or late penalty. The functionality of this lab will be manually graded by the TAs. Set! 1. Log in 2. Start Eclipse 3. Switch to the CVS Repository Exploring perspective 4. Check out the CSE115-Lab8 project from the Labs repository 5. Switch to the Java perspective Go! The CSE115-Lab8 project does not give you any code to start with – you need to write it all yourself. The project does contain three image files in the Images folder: Green.png, Purple.png, and Red.png. The corresponding images are , , and . Your task in this lab is to build a “slot machine” simulation. The finished product should look something like this: There are 3 JLabels, each displaying one of the three images, chosen at random. Clicking on the SPIN JButton randomly selects a new image for each label:
Background image of page 2

End of preview

Answered by Expert Tutors

icitur laoreet. Nam risus ante, dapibus a molestie consequat, ultric

a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam ri
2 Attachments
CSE115-Lab8.zip
zip
ScreenShotOFProgram.docx
docx
The student who asked this rated it
Get unstuck

443,685 students got unstuck by Course
Hero in the last week

step by step solutions

Our Expert Tutors provide step by step solutions to help you excel in your courses