Matlab
YOUR ASSIGNMENT
Your assignment consists of three components:
A coded solution to your particular assignment problem.
A document describing your program
A presentation about your program (5-7 minutes plus answering questions) .
Your final submission:
- A 3 page REPORT document in IEEE Format – YOU MUST USE THE TEMPLATE ON THE PORTAL. You cannot use any other template.
- ALL Matlab Code, data and images used to implement your program.
- You WILL submit a paper copy of your Report AND a paper copy of ALL your code.
- You WILL submit an electronic copy of :
- Your REPORT (IEEE format Microsoft docx file). (NOT PDF)
- ALL Matlab Files.
- Any data or image files that you use.
- Your presentation files.
YOUR FINAL ELECTRONIC SUBMISSION:
You should compress all the files and submit the compressed file.
To make sure you have included all required files: create a new directory (folder)
copy your matlab .m files to that directory copy any data or images to that directory copy your report to that directory
copy your presentation to that directory
Restart Matlab and switch to that directory. Make sure you can run your program. If your program will not run check that you have not left out files.
Once you are sure that ALL the required files (Report, presentation, *.m and data/images) are together in the one directory, compress that directory (using zip, rar, etc. In Windows you can right click and select compress folder)
2014 S2 Assignment
This assignment requires a variety of programming tasks including the writing of functions, looping code and decision making. Depending on your task you will have a requirement to display images and create interactive activities.
SCENARIO:
There are many “games-of-chance” in existence in the world and they can be found just about anywhere. From children playing snakes and ladders to multi-billion dollar casino operations. Your assignment requires you to simulate, using Matlab, a casino style game of chance. In theory these games are completely governed by the rules of probability and should be able to be simulated by the use of random number generators.
Your program should allow the user to enter an amount of money that they are going to “gamble”, then based on the rules of probability and the rules of the game, their account should go up or down. The game continues until they run out of money or they quit.
Some games to consider:
Roulette
Poker
Fruit Machine / Slot Machine / One Armed Bandit.
Keno
Blackjack
Your game should include some kind of feedback so the player is encouraged to continue, for instance, if the game is poker, cards played to the player should appear on the screen at a speed similar to the normal dealing of cards (they don't need to be the actual image of a card – they could be, for example, the letters H-3 on a white tile indicating three of hearts). You could allow the user to arrange the cards they have been dealt.
Whichever game you choose, there needs to be a way to place a bet, the game should execute and the pay-off should match the normal rules of the game. If, for example, you choose roulette, the placing of bets is complex and requires a table. An image of the table could be displayed and the user can click on the location of the bet. The image should then reflect the location and amount of the bet.
Start your development by working out what you can do and what you cannot yet do. The generation of the random number for roulette and the payout decision is very simple but placing the bet is more complicated. Playing cards seems simple but each time you deal a card – it is no longer available to be dealt.
You will need to read up on the rules of your chosen game and understand how the game works and the probabilities of the various outcomes. You should “prove” the correct operation of your implementation of the game by running it a few thousand, or tens of thousands of times and recording the results for comparison against the expected probabilities. (do this bit automatically using a loop and variables to capture results)
Your program should interact with the user mainly through Matlab figures but the code does most of the work.
Your REPORT
You must create your program and present your results in a written document using the IEEE template on the portal*. Your report should follow the IEEE format. There is a dummy version of how your assignment might be put together and two actual IEEE conference papers that you can use as models.
*You will download the template and edit it. Delete the existing text as you write your own text. The template on the portal is a Microsoft Word docx file with track-changes turned on. When you submit your electronic file, it will be checked for the changes and the author. You can hide the tracked changes so they do not distract you (use the appropriate menu button from the toolbar).
Your report will be an absolute minimum of three complete pages long (not including appendices).
You Must Have (in your report):
Your report WILL include a flowchart and a structure chart describing the core of your programming solution.
Your report will include
- Saved figures that show the operation of the program (maximum 3 together, taking up no more space than in the example or 2 individual figures).
- A key summary of the rules of the game and a table of the rules that are implemented and not implemented.
- Statistical results from simulated games showing the results match the expected results.
Your report will not discuss Matlab or its history. Your references will not include Matlab or Matlab functions. You can have a maximum of 6 references.
Any large figure such as a screen capture must be attached as an appendix and will not count in the minimum 3 pages. For the some games the table of the rules themselves may need several pages. In these cases they must appear as an appendix.
Your presentation:
Your presentation should not be difficult to prepare once you have the skeleton of your report prepared. Images such as screen shots, structure charts and flowcharts can be used to make talking points. You can create an imaginary company and present your report as if this was new technology or new digital technology replacing mechanical technology. Imagine your audience are gaming industry experts and you need to convince them of the reliability of your machine. This does not mean sales talk, this means your report and testing results should be comprehensive and convincing.
Maybe in your program you only managed to get the basic functionality operational. In this case you should explain that this is your Mark-I model and the next software release will include the next set of features. Explain your proposed method of implementing the new features.
ISSUES:
Some activities will be beyond your immediate imagination but simple solutions are often available. Treat your lecturer / lab supervisors as specialist technical assistance and sounding boards. Work out what you think is beyond you, work out where it is beyond you – exactly where your limit is, then ask for advice. If your have an idea on how your solution will work but there is a gap between your knowledge and your solution, ask for advice.
DO NOT go to other students for assistance. Particularly do not go to students in later year levels at university. These students often choose extremely complex methods to solve simple problems and these complex methods are beyond the comprehension of 1st year students. This results in low marks since 1st year students do not understand the solution, how it works, or how to interface with the solution.