Weight: 15%DUE : Week 6 ASSESSMENT TASK 1 : CREATING BASIC JAVA CLASSES AND METHODS TASK DESCRIPTION This project requires you to write a basic Java classes with attributes and methods. Methods...

Weight: 15%DUE : Week 6 ASSESSMENT TASK 1 : CREATING BASIC JAVA CLASSES AND METHODS TASK DESCRIPTION This project requires you to write a basic Java classes with attributes and methods. Methods required include an alternate constructor, methods to display output and methods to read user input. Code must be written that creates objects and then calls methods for these objects.OBJECTIVES•Demonstrate a working knowledge of the basic constructs in the object-oriented language Java•Use the BlueJ programming environment to build simple software systems•Design and code a software system that correctly implements a solution to a small problem defined by a specification, and follows specific design rules•Comprehend and use basic program control constructs of sequence and selection Page 2 of 6 BRIEFThis is a take home assessment to evaluate your understanding of object oriented concepts taught so far in IPRG001. The assessment will be composed of three (3) parts: the scenario, the code and explanation (including proof of testing).The scenario: You will decide on the scenario and develop a back story for your program – it could be a game of some sort or simply display some information about your chosen things in a specific way.Choose two objects – they could be your favourite things e.g. a book, a game, an animal (real or imaginary), a character (real or imaginary) etc. The code:Create two classes (class1 & class2, one for each thing – choose a good name for each class), for each class: Identify at least 3 attributes – an int/double, a String, a boolean and a constant must be present in at least one of the classes.Design an alternate constructor.Create the accessors and mutators for each attribute.Design a suitable toString()Create a main class (choose a name for it). Create a Scanner object as a local variable in the main class – where ever it is needed. The main class creates an object of class1 and an object of class2 as attributes – choose appropriate names for them. The default constructor should initialise both objects. Each object’s contents should be displayed using the toString().User entry must change both objects in some way (using mutators).User must be presented with a decision and the response processed appropriately using an if statement.Use multiple methods in the main class - where appropriate.The explanation:You will explain the code you wrote and any problems you encountered and how you fixed them. At minimum you need to identify : Basic Class structure – what does a class have Attributes – what attributes did you choose for each class and whyAlternate constructors – what parameters did you chose and whyNon-void and void methods – which methods are void and non-void and why Accessor – which methods are accessors Mutators – which methods are mutatorsAccess modifiers – what modifiers are used in your code and whyConstants – which values are stored as constants, what modifier did you use and whyoString() – what attributes did you include and whyScanner - identify the scanner methods you used and whyif statements – document any if statements you used and how they support decisions.You also need to include at least 1 screen shot of your code being testing on the object bench.Please double check your code compiles and your submission document contains the updated version of all code prior to submission.SUBMISSIONYou will submit your assessment in MS Word document format – yourName-studNo.doc. The document will have 3 sections:The scenario: You will write the back story for your program – this will be assessed using LLO minimum 100 wordsThe Code: You will copy the code from your BlueJ project into this sectionThe explanation: you will explain your code choices and reasoning. You also need to include at least one screenshot of testing your code. Include any issues you had and how you resolved them. Minimum 300 words
Nov 14, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here