Demonstrate understanding of java programming

Assignment Help JAVA Programming
Reference no: EM132429055

ICT104 - Program Design and Development Programming - Kings Own Institute

Purpose: This assessment will allow students to demonstrate their understanding of Java programming and object-oriented concepts, the use of list classes in collection framework, and the use of graphical features using swing and applets. This assessment contributes to Learning Outcomes c and d.

Develop Java application based on the given scenario: individual assignment

Assessment

The context for this assignment (Part 1 and Part 2) is a 'Beer Bottles Game Development' for calculating and displaying a LOSER. This assignment will test a student's knowledge of and skills in writing application software for a task, understanding the business rules of a particular problem, coding these in a computer program, developing a graphical user interface.

For this assignment, students will use the Java programming language and development will be on the NetBeans IDE platform.

This assignment consists of 2 stages,

• Stage 1: A simple console program (no GUI)
• Stage 2: The same but wrapped in a GUI

Beer Bottles Game Development

Preamble:

1. In this game, there are 21 Beer bottles and 2 players - You and Computer.
2. You and Computer would pick up the Beer bottles one by one.
3. At a time, any number of beer bottles can be picked up between 1 and 4 (inclusive)
4. The one, who will have to pick up the last bottle, is the loser and will have to pay the bill.

Design and implement a game, making use of Artificially Intelligent algorithm, so that if user is playing first, then the Computer would pick up the bottles intelligently each time, and the Computer would always Win. The Computer would never Lose.

Stage 1: Design a Java application, which would display below message at the start of the game.
There are 21 beer bottles.
Computer and yourself, there are 2 players
At a time, each one can pick up any number of bottles between 1 and 4 (inclusive)
Will you like to play first?

If the User types ‘Yes' and presses ‘Enter' key, the next lines of output would be

Will you like to play first? Yes
How many you would like to pick up?

If you pick up 3 bottles initially and press ‘Enter' to observe how many the Computer picks now, then as per your intelligent algorithm, the Computer needs to pick up any number of bottles between 1 and 4 (inclusive), so that at the end, the Computer would WIN. The next set of output would be.
How many you would like to pick up? 3
Computer has picked 2
The bottles remaining are: 16
How many you would like to pick up?

The User must be able to continue the game with Computer, and at every step the remaining bottles need to be displayed appropriately. The number of remaining bottles would get decreased at each step.
How many you would like to pick up? 2
Computer has picked 3
The bottles remaining are: 11
How many you would like to pick up? 3

Computer has picked 2
The bottles remaining are: 6
How many you would like to pick up? 4
Computer has picked 1

As per this artificially intelligent program, the Computer should always Win and Never Lose. If User will have to pick up the last beer bottle, then User is Loser and would have to pay the bill.

Computer has picked 1
The bottles remaining are: 1
You will have to pick up the last..you are loser

Stage 2: Design a UI using Java Swing components, which would look like below.

If you pick up 3 bottles initially and click the button "Pick" to observe how many the Computer picks now, then as per your intelligent algorithm, the Computer needs to pick up any number of bottles between 1 and 4 (inclusive), so that at the end, the Computer would WIN. The UI would be as below.

The User must be able to continue the game with Computer, and at every step the remaining bottles need to be displayed appropriately. The number of remaining bottles would get decreased at each step.

As per this artificially intelligent program, the Computer should always Win and Never Lose. If User will have to pick up the last beer bottle, then User is Loser and would have to pay the bill.

Attachment:- Program Design and Development.rar

Reference no: EM132429055

Questions Cloud

Prepare a summary that includes the negative effects : Prepare a summary that includes the negative effects on the natural world, how technology was used, and the benefit to the corporation.
What was the purpose of court discussion of healthy diet : What was the purpose of the court's discussion of a healthy diet? What sources does the court rely on for constitutional interpretation?
Why do think books have such a profound effect : What is your perspective on how the reporting should be done? Do you think it is disrespectful to show pictures of the victims of any tragedy?
Film saving private ryan : What would your recommendation and star rating-on a scale of one being bad and four being good-be for the film Saving Private Ryan (1998)?
Demonstrate understanding of java programming : Demonstrate understanding of Java programming and object-oriented concepts, the use of list classes in collection framework, and the use of graphical feat
Research and experience regarding mergers : Based on your research and experience regarding mergers, do you feel they contribute to improved quality of health care? If so why? If not, why?
What is brain-gain and what cities are affected : Do you have a brain gain city in your state?What type of businesses recruit in brain gain cities?What cities are losing because of brain gain?
Possible impacts of current pro-democracy movements : What are possible impacts of the current pro-democracy movements in northern Africa and the Middle East on USA foreign policy
Define and explain the term Orosensory Self-Stimulation : Explain the roles of each of these factors with regard to eating, overeating, and obesity. Explain the relationship between each of these factors and the brain

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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