Write a program to move the stack of blocks

Assignment Help JAVA Programming
Reference no: EM131902948

Programming Techniques Assignment - Robot

Assignment Objective - The objective of this assignment is to develop your programming and problem solving skills in a step-by-step manner, assisted with visualization.

Visualization helps you to easily identify any problems with your algorithm.

What you need to do -

Write a program to move the stack of blocks from source to a specified target location.

Movement of Robot arms, picking and dropping are controlled using the Robot methods described below.

For all sections below you are required to complete the control() method of the RobotControl class shown below.

The control() method will be automatically called when the program is run. RobotControl class has a reference r set to refer to the Robot object.

Requirements -

Your solution must use Java 1.7 or above and be compatible with the environment supplied in the computer laboratories.

You should make sure that your solution includes examples of constants to represent fixed values in your program.

You should NOT use streams from Java 1.8. This assignment is geared at assessing your ability to work with developing an algorithm for working with arrays via the use of loops and if/else statements.

The specification for each task is set out below. Note these are cumulative so that a requirement set for Part C also includes the previous requirements from Parts A - B except where the new requirement contradicts the older one. This means that any code that your write for Part B should also complete the Part A scenario. Any code that your write for Part C must also successfully compete the scenarios in Parts A & B.

Part A: There are six bars are of height (7) and four blocks are of height (3).

Complete the control() method of the RobotControl class to move all the blocks to the respective targets as indicated in the screen shot below.

The target is determined by the height of the block being moved.

  • All blocks of size 3 must be placed on top of the bars.
  • Blocks of size 3 should be placed on top of the bars beginning with column 3.
  • Only one block can be placed on a bar, so after a block has been placed on column 3, then the next block should be place on column 4 etc.

Part B: There are six bars of varying height and there are four blocks height 3.

Complete the control() method of the RobotControl class to move all the blocks to the respective targets.

Allow the user to supply the heights of the 6 bars as command line arguments.

There are four blocks of height (3).

The target is determined by the height of the block being moved.

  • All blocks of size 3 must be placed on top of the bars.
  • Blocks of size 3 should be placed on top of the bars beginning with column 3.
  • Only one block can be placed on a bar, so after a block has been placed on column 3, then the next block should be place on column 4 etc.

Part C: There are six bars of varying height and the number of blocks as well as the heights of each block may vary.

Complete the control() method of the RobotControl class to move all the blocks to the respective targets.

Allow the user to supply the heights of the 6 bars as well as the number and height of the blocks as command line arguments.

Individual block heights may vary but must lie within the range of 1 - 3.

The total block heights must not exceed 12.

The target is determined by the height of the block being moved.

  • All blocks of size 1 must be placed in column 1 labelled Target 1
  • All blocks of size 2 must be placed in column 2 labelled Target 2
  • All blocks of size 3 must be placed on top of the bars.
  • Blocks of size 3 should be placed on top of the bars beginning with column 3.

Only one block can be placed on a bar, so after a block has been placed on column 3, then the next block of size 3 should be place on column 4 etc.

Assessment -

The assignment is designed to test multiple competencies required for successful software development. The assessment evaluates all skills required not just the code itself. You will be assessed on your ability to comply with requirements as set out in this document.

The assessment will include competencies in:

1. Business Requirements: such as adherence to a style guide, documentation of your program and compliance with processes such as submission of your work prior to assessment.

2. Java Programming: in Java demonstrating a mastery of the language and the accepted conventions for developing applications.

3. Software Development Lifecycle: practices such as an iterative approach to development that includes thorough testing of your solution.

4. Algorithm Development: that demonstrates that you have a clear idea of the logic required to complete the necessary tasks.

The algorithm should aim to be efficient. For example the blocks should be moved to their respective targets in the minimum number of moves.

Note: You are expected to use loops and nested loops to avoid repeating the code for moving each single block for all parts of the specification.

Attachment:- Assignment Files.rar

Reference no: EM131902948

Questions Cloud

How ada impact multimedia technology : How ADA, UDL, Copyright, creative commons impact multimedia technology using in classroom?
What are the legal and ethical concerns : What would a developmentally savvy counselor need to take into consideration when planning assessment and interventions for those in mid-adolescence?
Describe your unique economic value proposition : Describe your Unique Economic Value Proposition (UEVP), an analysis or statement of the combination of goods and services offered.
Explain impact media and social networking have on consumers : Explain the impact media and social networking have on consumers when choosing the most appropriate managed care health insurance plans.
Write a program to move the stack of blocks : COSC1284 Programming Techniques Assignment - Robot. Write a program to move the stack of blocks from source to a specified target location
Explain the importance of interpersonal skills in workplace : Explain the importance of interpersonal skills in the workplace. Examine how workplace discrimination undermines organizational effectiveness.
Percent strength and grams of juice a : For the second solution take 27mL of the first solution and add 28mL of juice b. Now what is the percent strength and grams of juice A?
Discuss what your community would need to do to be prepared : Discuss what your community would need to do to be prepared for any future disasters, man-made or natural. Identify specific resources that would be needed.
Design a series of three activities for parents and students : Design a series of three activities for parents and students at your school that honor and respect cultural diversity.

Reviews

len1902948

3/15/2018 3:58:16 AM

I am a Software Engineering student at RMIT. I have a RobotControl Assignment on java. I am sending a pdf file and a zip file(to be opened in eclipse). You can use your own computers to develop your assignment, but you must make sure that your assignment can be compiled and run on the environment supplied by RMIT My Desktop. Note: You are expected to use loops and nested loops to avoid repeating the code for moving each single block for all parts of the specification.

len1902948

3/15/2018 3:58:10 AM

Due Date - You must submit your solution to Canvas by the due date. This due date of the assignment is listed on the first page of this specification. You must submit your final version prior to this date/time to avoid incurring late penalties. Any late submissions will attract a 10% penalty per day. If you are unable to submit by the due date you ARE REQUIRED to provide additional documentation such as a medical certificate as per university policies. Extensions WILL NOT BE GRANTED without supporting documentation.

len1902948

3/15/2018 3:58:04 AM

Late Submission Period - There is a late submission period of 5 days for this assignment. Late submissions that are received before the end of this late submission period will attract a late penalty of 10% per day (or part thereof) of the total marks awarded on the assignment, unless an extension has been granted by the school or as part of an existing EAA provision (see below for details).

len1902948

3/15/2018 3:57:58 AM

You are required to adhere to all standard java coding conventions, which include correct and consistent indentation of code, use of appropriate identifiers for variables and comments describing the main logic program. Your code should include examples of: variables to represent the changing state of the program whilst it is running. constants to represent fixed values that do not change throughout the running of the program. code blocks refactored into methods to reduce code repetition. commenting that contributes to an understanding of the code. unused code should be removed and not just commented out in your final submission.

len1902948

3/15/2018 3:57:53 AM

Marking Guide - Please review this carefully as this will be used by the marker when marking your assignment. Please ensure that the code you submit does not contain any compilation errors Code submitted with compilation errors will incur a marking penalty of 2 marks. The marking guide can be found in the assignment section of Canvas.

len1902948

3/15/2018 3:57:47 AM

Submission Instructions - Where you do make use of other references, please cite them in your work. Note that you will only be assessed on your own work so the use of third party code or packages is not permitted. You should submit a single Java file (RobotContro.java) that contains your code for controling the Robot. This is the file that is provided in the startup project to which you will have added your programming logic. You may submit your assignment more than once, the last submission will be the one used for assessment. You should submit your assignment each time you complete a major section of the assignment. This will make sure that you are familiar with the process and don't have any last minute issues with your final submission.

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