MITS4002 Object Oriented Software Development
MITS4002
OBJECT-ORIENTED SOFTWARE DEVELOPMENT
Project (25%)
Tattslotto
You will be marked based on your submitted zipped file on Moodle. You are most welcome to check your file with your lab tutor before your submission. No excuse will be accepted due to file corruption, absence from lecture or lab classes where details of lab requirements may be given.
Please make sure that you attend Lecture EVERY WEEK as low attendance may result in academic penalty or failure of this unit.
Programming Project
Part 1: Arrays & Inheritance
Marks: The project is assessment for 25% of final mark for the subject. The project is composed of two parts: Part 1 and Part 2.
Problem Description
This project is based on the design, and implementation in Java, of the seven different Lottery games being Saturday Tattslotto, Oz Lotto and Powerball.
Details of these games can be found at http://www.thelott.com
In Part 1 of the project, you are asked to use arrays and inheritance to code versions of these games and in Part 2 to create an appropriate GUI that writes to a report file.
Note: GAMBLING can be a serious problem for some people. Your lecturer DOES NOT encourage you to gamble.
Summary of Some of the Lottery Games
(From the Help pages of the above web site)
Game |
Day |
Description |
Tattslotto |
Saturday |
45 balls numbered 1 to 45, from which 8 balls are randomly selected. The first 6 balls are the winning numbers and the last two balls drawn are the supplementary numbers. |
Oz Lotto |
Tuesday |
45 balls numbered 1 to 45, from which 9 balls are randomly selected. The first 7 balls are the winning numbers and the last two balls drawn are the supplementary numbers. |
Powerball |
Thursday |
35 balls numbered 1 to 35 from which 7 are randomly selected. An eighth ball, the Powerball, is then drawn from a separate machine containing 20 balls numbered 1 to 20. |
You will notice from your research and examination of the table that all games have several things in common.
All games
- have a name,
- run on a day of the week
- have a set of randomly generated numbers.
Also, each of the randomly generated numbers have a minimum and maximum possible value, for example: For Powerball, the minimum value is 1 and the maximum value is 35.
An abstract class, LuckyGame can be used to represent the generic concept of a game of chance. A suitable partial design is shown in the following UML diagram. In the UML diagram:
- The LuckyGame class represents the generic concept of a game of chance and therefore is to be declared as an abstract class. It contains two abstract methods setNumberOfRandoms( ) and collectUserInput (String input). The LuckyGame class also contains an array of String which is used to record the randomly generated numbers used by each object of LuckyGame
- The class TattslottoGame is a LuckyGame and it thus should implement code for LuckyGame’s two abstract methods as well as its own constructor and any other methods.
- The games SaturdayTattslotto and Oz Lotto are all instances of the class
- You can implement the remaining class games in any manner you believe appropriate. For example, class PowerBallGame can be implemented using either using
- Option 1: the class PowerBallGame is a LuckyGame and thus should implement code for LuckyGame’s two abstract methods as well its own constructor and other methods.
- Option 2: the class PowerBallGame is a TattslottoGame and thus should implement code for its own constructor and other methods.
- You have been provided with some code for the class TestGames, which is a text-based application used to create instances of games and test all of their respective behaviours.
- To collect user input for all games, a class UserInput is needed. It should collect user input and deal with any problems in the input, such as repeat numbers or numbers outside the possible range of values.

UML Diagram
Code for TestGames
// A class that tests the instances of each class of game //************************************************************* ******* class TestGames { public static void main ( String [ ] args ) { final int NO_OF_GAMES = 7 ; LuckyGame [ ] games = new LuckyGame [NO_OF_GAMES]; TattslottoGame myGame = new TattslottoGame ("Tattslotto", "Saturday", 1 , 45 ) ; TattslottoGame OzLotto = new TattslottoGame ( "OZ Lotto", "Tuesday", 1, 45 ) ; TattslottoGame WedsLotto = new TattslottoGame ( "Tattslotto", "Wednesday", 1, 40 ) ; Tatts2Game tatts2 = new Tatts2Game ("Tatts2", "everyday", 1 , 99 ) ; PowerBallGame powerBall = new PowerBallGame ("PowerBall", "Thursday", 1 , 45 ) ; ……………………………………………………………………………………..// Super 66 instance ……………………………………………………………………………..// Pools instance games[0] = myGame ; games[1] = OzLotto ; games[2] = WedsLotto ; games[3] = tatts2 ; games[4] = powerBall ; ……………………………………………………………………………………..// Super 66 instance ……………………………………………………………………………..// Pools instance for (int i = 0 ; i < NO_OF_GAMES ; i++) { System.out.print ("\n\n*******************************************\n" ); System.out.print ("Input your numbers for " + games[i].getDay( ) + " " + games[i].getName( ) + " :- " ) ; String input = Keyboard.readString( ) ; games[i].collectUserInput( input ); System.out.println ( games[i] ) ; }// end for }//end main
Sample output
An example of some output from a run of TestGames. NOTE: ALL OUTPUTS ARE ONLY SUGGESTIONS and should be used as a guide to your implementations.
Input your numbers for Saturday Tattslotto :- 1 2 3 3 4 78 1 5 6 Invalid input Saturday Tattslotto numbers are: 31 29 1 6 10 41 supplementary numbers: 25 38 6 user picks between 1 and 45 are 1 2 3 4 5 6 No. of winners 2 + 0 supps match ******************************************* Input your numbers for Tuesday OZ Lotto :- 1 2 3 4 5 6 7 Tuesday OZ Lotto numbers are: 2 29 19 21 36 31 40 supplementary numbers: 5 35 7 user picks between 1 and 45 are 1 2 3 4 5 6 7 No. of winners 1 + 1 supps match ******************************************* Input your numbers for Thursday PowerBall :- 1 2 2 3 4 5 5 Invalid input The user chosen powerball is 5 Thursday PowerBall numbers are: 1 32 34 5 35 33 and the POWERBALL is:- 5 7 user picks between 1 and 35 are 1 2 3 4 5 6 7 and the user chosen POWERBALL is:- 5 No. of winners 2 and you have the POWERBALL etc…..
Programming Project
Part 2: Graphical User Interfaces/Applets & Files & Exceptions
In Part 1 of the project, you are asked to use arrays and inheritance to code versions of 7 Lottery games. In Part 2, using swing classes wherever possible, you need to create an applet for players. The applet should allow a player to choose and run a game of their choice and find out the results of their game. Each time a game is played, the applet writes information about the game to a file called report.txt. This information would be similar to that shown as sample output for Part 1.
For example,
report.txt
Saturday Tattslotto numbers are: 31 29 1 6 10 41 supplementary numbers: 25 38 6 user picks between 1 and 45 are 1 2 3 4 5 6 No. of winners 2 + 0 supps match
If there are any problems creating this file, then the applet reports the problem to the user.
NOTE: It is not expected that you should need to rewrite any of the classes from Part 1 of the
Project. Rather you will create instances of the relevant classes when you need them for Part 2. The application for this project should create at least one new class LuckyGameApplet, however a good design should divide the computational workload and create/use classes where needed. You may even decide to use Threads and create animation!
Applet Appearance
The design of the applet’s appearance is totally up to you; the more colourful and well organized, the better (use layout managers). Choose components that reduce user error, e.g., use check boxes or radio buttons when asking the user to choose the game they wish to play.
As the designer, the functionality of the applet is also up to you, as long as the basic problem description is covered. Feel free to add any extra features that you feel are useful. For instance, you may want to add a quick pick selection for the player, or continually add data to the file over a number of games, run statistics of the games played, etc., etc.
It is necessary to draw a component hierarchy for your final Applet design.
Submission Details
Attach the following page to the front of your submission and submit all materials to your lecturer.
What You Have to Submit
Each student submits
- A document detailing the design of your solution in as much detail. It should include an updated UML diagram of the inheritance hierarchy as well as the component hierarchy for the applet’s appearance
- The code for each class in your design. Each class listing should be fully documented commencing with a heading that includes your name, student number, date written, and lecturer’s name, along with a brief description of the class. At the start of each method, there should be a comment clearly describing what the method does.
- A readme.doc file with information on how to run your program. Include any extra information about your design and program that you wish the marker to know.
- A word document with evidence of trial runs of your program, i.e. screen printouts of the results where you have tested all the features of your code.
- Put 1, 2 ,3 and 4 together in one zipped folder. Submit this zipped folder to Moodle
Project Grading
Programs are graded on a 100 marks scale. The marks will be assigned as follows:
- 60 marks- Program meets specification and is OOP in design. Extra functionality is encouraged and rewarded in these marks.
- 5 marks – Inheritance hierarchy
- 5 marks – Component hierarchy of the LuckyGameApplet class
- 20 marks – Evidence of error checking in code, trial runs and screen outputs.
- 10 marks - Overall presentation of work and quality of solution.
MITS4002 – Project Student full name:
Student ID:
Markers Guideline
Program meets specification and is OOP in design |
60 marks |
Inheritance hierarchy |
5 marks |
Component hierarchy of the LuckyGameApplet class |
|
Error checking. Evidence of trial runs & output |
20 marks |
Over presentation |
10 marks |
Total |
100 marks |
Assignment Service Australia | CDR Writing Help | TAFE Assignment Help | Perth Assignment Help | Melbourne Assignment Help | Darwin Assignment Help | Adelaide Assignment Help | Assignment Help Victoria | Sydney Assignment Help | Canberra Assignment Help | Brisbane Assignment Help | CDR for Australian immigration | Course For Australian History
Diploma Universities Assignments
- Laureate International Universities Assignment
- Holmes Institute Assignment
- Tafe NSW
- Yes College Australia
- ACC508 Informatics and Financial Applications Task 2 T2, 2019
- ACC512 Accounting
- ACC520 Legal Regulation of Business Structures Semester 2, 2019
- ACCT20074 Contemporary Accounting Theory Term 2 Assessment 3
- AERO2463 Computational Engineering Analysis : Assignment 4
- B01DBFN212 Database Fundamentals Assessment 1
- BE01106 - Business Statistics Assignment
- BFA301 Advanced Financial Accounting
- BFA504 Accounting Systems Assessment 3
- BSB61015 Advanced Diploma of Leadership and Management
- BSBADV602 Develop an Advertising Campaign
- BSBCOM603 Plan and establish compliance management systems case study
- BSBCOM603 Plan and establish compliance management systems Assessment Task 1
- BSBCOM603 Plan and establish compliance management systems Assessment Task 2
- BSBCOM603 Plan and establish compliance management systems Assessment Task 3
- BSBFIM501 Manage Budgets And Financial Plans Assessment Task 1
- BSBHRM602 Manage Human Resources Strategic Planning
- BSBINM601 Manage Knowledge and Information
- BSBWOR501 Assessment Task 3 Plan Personal Development Plan Project
- BSBMGT517 Manage Operational Plan
- BSBWHS521 Ensure a Safe Workplace For a Work Area
- BSBWRK510 Manage employee relations
- BUSS1030 Accounting, Business and Society
- CAB202 Microprocessors and Digital Systems Assignment Help
- CHC40213 Certificate IV in Education Support
- CHCAGE001 Facilitate the empowerment of older people
- CHCAGE005 Provide support to people living with dementia
- CHCCCS023 Support independence and wellbeing
- CHCCCS025 Support relationships with carers and families
- CHCCOM005 Communicate and CHCLEG001 Work Legally Ethically
- CHCDIS002 Follow established person-centred behaviour supports
- CHCECE019 Early Childhood Education and Care
- CHCHCS001 Provide home and community support services
- COMP10002 Foundations of Algorithms
- COMP90038 Algorithms and Complexity
- COSC2633/2637 Big Data Processing
- COSC473 Introduction to Computer Systems
- CPCCBC5011A Manage Environmental Management Practices And Processes In Building And Construction
- CPCCBC5018A Apply structural Principles Medium rise Construction
- CSE3OSA Assignment 2019
- ELEC242 2019 Session 2
- ENN543 Data Analytics and Optimisation
- ENN543 Data Analytics and Optimisation Semester 2, 2019
- FINM202 Financial Management Assessment 3 Group Report
- Forensic Investigation Case Assignment ECU University
- HA2042 Accounting Information Systems T2 2019
- HC1010 Holmes Institute Accounting For Business
- HC2112 Service Marketing and Relationship Marketing Individual Assignment T2 2019
- HC2121 Comparative Business Ethics & Social Responsibility T2 2019
- HI5002 Holmes Institute Finance for Business
- HI5003 Economics for Business Trimester 2 2019
- HI5004 Marketing Management T1 2020 Individual Report
- HI5004 Marketing Management T1 2020 Group Report
- HI5004 Holmes Institute Marketing Management
- HI5014 International Business across Borders Assignment 1
- HI5014 International Business across Borders
- HI5017 Managerial Accounting T2 2019
- HI5017 Managerial Accounting T1 2019
- HI5019 Tutorial Questions 1
- HI5019 Strategic Information Systems for Business and Enterprise T1 2020
- HI5019 Holmes Institute Strategic Information Systems T2
- HI5019 T2 2019
- HI5019 T1 2019
- HI5020 Corporate Accounting T3 2019
- HI5020 Corporate Accounting T2 2019
- HI6005: Management and Organisations in a Global Environment
- HI6006 Tutorial questions
- HI6006 Competitive Strategy Individual T1 2020
- HI6006 Holmes Institute Competitive Strategy
- HI6006 Competitive Strategy T3 2019
- HI6007 Statistics for business decisions
- HI6007 Assessment 2 T1 2020
- HI6007 T1 2019
- HI6008 T2 2019
- HI6008 Holmes Institute Research Project
- HI6025 Accounting Theory and Current Issues
- HI6026 Audit, Assurance and Compliance Assignment Help
- HI6026 Audit, Assurance and Compliance
- HI6027 business and corporate law tutorial Assignment T1 2021
- HI6027 Business and Corporate Law T3 2019
- HI6027 Business and Corporate Law T2 2019
- HI6028 Taxation Theory, Practice and Law T2 2021
- Hi6028 taxation theory, practice and law Final Assessment t1 2021
- HI6028 Taxation Theory, Practice and Law T2 2019
- HI6028 Taxation Theory T1 2019
- HI6028 Taxation Law Holmes
- HLTAAP001 Recognise healthy body systems
- HLTWHS002 Follow safe practices for direct client care
- HOTL5003 Hotel Property and Operations
- HPS771 - Research Methods in Psychology A
- HS2021 Database Design
- ICTICT307 Customise packaged software applications for clients
- IFN619 Data Analytics for Strategic Decision Makers
- INF80028 Business Process Management Swinburne University
- ISY2005 Case Assignment Assessment 2
- ISYS326: Information Systems Security Assignment 2, Semester 2, 2019
- ITAP3010 Developing Data Access Solutions Project
- ITECH1103- Big Data and Analytics – Lab 3 – Working with Data Items
- ITECH1103- Big Data and Analytics Assignment Semester 1, 2020
- ITECH 5500 Professional Research and Communication
- Kent Institute Australia Assignment
- MA5830 Data Visualisation Assignment 2
- MGMT7020 Project Management Plan
- Mgt 301 Assessment 3
- MGT215 Project Management Individual Assignment
- MIS102 Data and Networking Assignment Help
- MITS4002 Object Oriented Software Development
- MITS5002 Software Engineering Methodology
- MKT01760 Tourism Planning Environments Assessment 4
- MKT01760 Tourism Planning Environments
- MKT01906 International Tourism Systems
- MKT5000 Marketing Management S2 2019
- MNG03236 Report Writing SCU
- MRE5003 Industrial Techniques In Maintenance Management Assignment 4
- MRE5003 Industrial Techniques In Maintenance Management Assignment 3
- MRE5003 Industrial Techniques In Maintenance Management
- Network Security and Mitigation Strategies Answers
- NIT2213 Software Engineering Assignment
- NSB231 Integrated Nursing Practice Assessment Task 1
- Science Literacy Assessment 4
- SIT323 Practical Software Development T 2, 2019
- SIT718 Using aggregation functions for data analysis
- SITXCOM002 Show Social and Cultural Sensitivity
- TLIL5055 Manage a supply chain
- TLIR5014 Manage Suppliers
- USQ ACC5502 Accounting and Financial Management
- UTS: 48370 Road and Transport Engineering Assessment 2
- CHCAGE001 Facilitate the empowerment of older people
- CHCAGE005 Provide support to people living with dementia
- CHCCCS011 Meet personal support needs
- CHCCCS015 Provide Individualised Support
- CHCCCS023 Support independence and wellbeing
- CHCCCS025 Support relationships with carers and families
- CHCCOM005 Communicate and work in health or community services
- CHCDIS001 Contribute to ongoing skills development
- CHCDIS002 Follow established person-centred behaviour supports
- CHCDIS003 Support community participation and social inclusion
- CHCDIS005 Develop and provide person-centred service responses
- CHCDIS007 Facilitate the empowerment of people with disability
- CHCDIS008 Facilitate community participation and social inclusion
- CHCDIS009 Facilitate ongoing skills development
- CHCDIS010 Provide person-centred services
- CHCDIV001 Work with diverse people
- CHCHCS001 Provide home and community support services
- CHCLEG001 Work legally and ethically
- CHCLEG003 Manage legal and ethical compliance
- HLTAAP001 Recognise healthy body systems
- HLTAID003 Provide First Aid
- HLTHPS007 Administer and monitor medications
- HLTWHS002 Follow safe work practices for direct client care
- CORPFIN 7101 managerial finance assignment answers
- Assignment 2 Introduction to Digital Forensics
- MGT603 Systems Thinking Assessment 1
- MGT603 Systems Thinking Assessment 2
- Hi5017 Managerial Accounting T1 2021
- HI6028 Taxation Theory, Practice and Law T1 2021
- OODP101 Assessment Task 3 T1 2021
- ITNE2003R Network Configuration and Management Project