ICT104 Program Design and Development Programming Assignment

Assignment Help JAVA Programming
Reference no: EM132428543

ICT104 - Program Design and Development Programming - Kings Own Institute

Programming Assignment

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.

Topic: Develop Java application based on the given scenario: individual assignment

Assignment Details:

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,
- Part 1: A simple console program (no GUI)
- Part 2: The same but wrapped in a GUI

Beer Bottles Game Development

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.

Part 1: Design a Java application, which would display below (Attached) 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

Part 2: Design a UI using Java Swing components, which would look like below (Attached).

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 (Attached).

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: EM132428543

Questions Cloud

Primary characteristic of the new science : Describe a specific aspect of a particular painting by Vermeer or Rembrandt that demonstrates a primary characteristic of the New Science
Effective governance of science and technology : Very few elected officials in America have professional training in science or technology. In a paragraph or two explain what you think?
Consider the role of opec : As we reach a possible peak in oil production, what alternatives are forming? Consider the role of OPEC, perhaps, in reorganizing and monitoring oil production
Interventions in water availability pose serious problems : When do human interventions in water availability pose serious problems to freshwater accessibility? It needs to be at least 150 words in length.
ICT104 Program Design and Development Programming Assignment : ICT104 Program Design and Development Programming Assignment Help and Solution, Kings Own Institute - Assessment Writing Service
Generalized motor program theory or schema theory : The generalized motor program theory (GMP) or schema theory and the dynamical systems theory are the predominant behavior theories
Describe the types of data would collect from claudia : Describe two social issues related to the course-specific case study for Claudia that inform a culturally competent social worker.
Mass media landscape of programming : What are your thoughts? Has reality television been more beneficial or harmful in the mass media landscape of programming.
Factors influence level of identification with a group : What kinds of factors influence level of identification with a group? What kinds of factors make a group membership irrelevant?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Display the program output of the collision results

According to my lecturer, I need the tutor to display the 'program output' of the collision results implemented by BirthdayAttack.java in a output.txt file. Can the tutor do this?

  Integer elements from an array

Suppose this same system has a TLB (Translation Lookaside Buffer) with 32 entries. Furthermore, suppose that a program contains instructions that fit into one page and it sequentially reads long integer elements from an array that spans thou- sand..

  Find specific characters in a string

Course that was entered does not exist an error message will show up. We're supposed to use if statements, for loops, and find specific characters in a string.

  COIT20245 Introduction to Programming Assignment Problem

COIT20245 Introduction to Programming Assignment help and solution - Central Queensland University - Assessment help - Write a java console application

  Loops-for loop, while loop, and do while loop

There are 3 kinds of loops-for loop, while loop, and do while loop. Under which circumstances would each kind of loop be more appropriate

  What are the characterstics of sql

What makes it different than other languages?

  Is it possible to add the database to the executable jar

Is it possible to add the database to the executable jar so it will run on any computer without the need for any installation of any software e.g. MySQL

  Develop and test a small procedural java program

ITECH1000 Programming - develop and test a small application that mimics a fortune teller and tells the user what ‘Federation University' star sign their birth year represents and Identify and use the correct syntax of a common programming language

  Develp a simple model of an object-oriented system

you are going to develp a simple model of an object-oriented system. this model should be able to provide all the working examples of inheritance, encapsulation, and polymorphism through the use of class,. methods, and objects

  Instance methods

instance methods: setWidth(double w), setHeight(double h), double getWidth(), double getHeight() and double getArea() * A triangle's area is calculated by width*height*0.5  * all variables are private and methods public.

  Write methods in java

1. int countVowels (String s) That for a given string s, return number of vowels in s.

  How many bits are needed to represent the index size

How many bits are needed to represent the index size - what would be the index size if 8-way set associative cache were used with the same capacity and block size?

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