MITS4002 Object-Oriented Software Development Assignment

Assignment Help Computer Engineering
Reference no: EM132387845

MITS4002 Object-Oriented Software Development

Victorian Institute of Technology

Project - Tattslotto

Programming Project

Part 1: Arrays & Inheritance

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.

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.

Summary of Some of the Lottery Games
(From the Help pages of the above web site)

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 type.
• 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
TattslottoGame.

• You can implement the remaining class games in any manner you believe appropriate.
For example, class PowerBallGame can be implemented using either using

o 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.

o 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.

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.

Attachment:- Object-Oriented Software Development.rar

Verified Expert

This assignment is of Java GUI programming in which we implement 3 different kind of Lottery Game.The program uses the concept of classes, inheritance, abstract classes, and array, array list, and random numbers to implement the GUI for the playing lottery games.

Reference no: EM132387845

Questions Cloud

Discuss the advantages of the tool : Discuss the advantages of the tool. Your research paper should be at least 3 pages (600 words), double-spaced, have at least 3 APA references.
People are the weakest link in an organization network : People are the weakest link in an organization's network. Do you agree that people are the weakest link in the information security chain?
What are your proposed countermeasures : Introduction for your topic. Also, include a few major statistics about related threats. What are your proposed countermeasures to solve the problem?
Discusses decision making using system modeling : discusses decision making using system modeling. The author briefly mentions open source software tool, EMA Workbench, that can perform EMA and ESDMA modelinG
MITS4002 Object-Oriented Software Development Assignment : MITS4002 Object-Oriented Software Development Assignment help and solution, Victorian Institute of Technology, Assessment help-Design and implementation in Java
Despite the alleged importance of scientific advice : We learn from the author's case studies that, despite the alleged importance of scientific advice in the policy-making process, its evident.
Cybersecurity for successful acquisition : Cybersecurity for a Successful Acquisition, Slides to Support Executive Briefing. Knowledge of methods and tools used for risk management and mitigation of risk
Formulate policies associated with climate change : The authors assert that the twentieth century is considered as the century of population explosion and fossil fuels burning, environmental policies.
What are the cloud security myths : Review in 500 words or more the video above called Cloud Security Myths. Cite your sources. Do not copy. Write in essay format not in bulleted, numbered.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Why did at-and-t virtually give away unix to the world

Why did AT&T virtually give away UNIX to the world? What does X/OPEN represent? Who owns the UNIX trademark today?

  After reading about attacks on servers similar to the ones

1.after reading about attacks on servers similar to the ones used in one of your companys departments the cio has asked

  What implications does this present to you as a programmer

It is therefore possible for a program, thinking a memory location holds a piece of data when it actually holds a program instruction, to accidentally (or on purpose) modify itself. What implications does this present to you as a programmer?

  Explain the term cacheable versus noncacheable data

Explain the terms Cacheable versus noncacheable data, Private caches versus shared caches and Cache flushing policies.

  How we will be interacting with technology in 20 years

Examine at the development of technology over the last 10 years. How do you think we will be interacting with technology in 20 years time compared to now. Be imaginative.

  Describe the likelihood and the potential impact of risks

Identify the key risks (both positive and negative) associated with embarking on a graduate program. Describe the likelihood and the potential impact.

  Describe an efficient algorithm that can use rustbucket

Describe an efficient algorithm that can use Rustbucket to sort n music files correctly and show that your algorithm has expected running time that is 0.

  Discuss an interesting example of recursion

Find and discuss an interesting example of recursion - thus, an example other than those presented in the readings.

  Questionconsider a short 10-meter link over which a sender

questionconsider a short 10-meter link over which a sender can transmit at a rate of 150 bitssec in both directions.

  Discuss the single-pass cross-flow arrangement

In the design of an energy-efficient house, a difficulty arises when the house is sealed up so well that various types of air pollution become both unpleasant.

  Analyze the major ethical and social issues raised

Analyze the major ethical and social issues raised by information systems

  Find all the pictures of real weasels

Use FTK to find all the pictures of real weasels and created a bookmark. Using the Report Wizard, create a report containing the bookmark you just created

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd