Using the stack data structure for storing disk objects

Assignment Help Data Structure & Algorithms
Reference no: EM13326454

Using our Stack Data Structure for storing Disk objects (see attached zip file), implement the game The Towers of Hanoi for 3 disks and 3 columns (as simulated at: https://www.mathsisfun.com/games/towerofhanoi.html). Your program should use the Scanner class for asking the user which column they are taking the disk from and which column they are adding the disk to. It should also enforce the rule that a larger disk can not be placed on top of a smaller disk. Your program should detect when the goal is accomplished and display how many moves it took the user to complete.

Given : entire set of codes (Program is already done 70% by the professor). Read the word file and zip folder Small Questions for the expert after the assignment is completed:

1) Which parts of the assignment were you not able to complete fully? For each, explain why you were unable to complete this part and what steps you took to attempt to complete it. Give me as much detail as possible such that I may award partial credit where it is due

2)what would you do differently if you could do this assignment again?

For the idea check the word file

VIDEO LINK OF CLASS LECTURE:

1)https://www.youtube.com/watch?v=PM66kANyNJg

2)https://www.youtube.com/watch?v=8rsh8PKtaFc

 

Reference no: EM13326454

Questions Cloud

Find linear acceleration of component as it travels down : A robot unloads a finished component from a machine and places it on a gravity convetor, the component accelerates from rest until it reaches the bottom of the conveyor 4.5 seconds later,the component is travelling at a velocity of 1.35m/s
How to write the entropy balance for a closed system : Write the entropy balance for a closed system and an open system and identify the various contributions on an example control mass and control volume, respectively. A drawn example is preferred for the second part.
Calculate the total number of jobs : Write a function that takes the name of a report file as its argument and returns the percentage value from the bottom table in the report - create a data frame with the year-month for each report in one column and the percentage values in another c..
Determine the value of fz is acting through point a : A force F = 200i - 400j + FZ k N, is acting through point A(0,0,0) m. If F creates a moment component of -3000 Nm in the direction of a line passing from point B (2,4,5) m to point C(-3,6,8) m, determine the value of FZ.
Using the stack data structure for storing disk objects : Which parts of the assignment were you not able to complete fully? For each, explain why you were unable to complete this part and what steps you took to attempt to complete it. Give me as much detail as possible such that I may award partial cred..
Determine what kind of atomic bonding exists in glasses : What kind of atomic bonding exists in Glasses, Semiconductors, Thermoplastic Polymers, and Thermoset Polymers
What would expect to happen to the discharge pressure : We are operating a centrifugal compressor. The gas composition does not change during this excursion. While holding suction pressure and flowrate constant, the inlet temperature rises.
What bone was probably fractured and at what site : Mary's grandmother slipped on a scatter rug and fell heavily to the floor. Her left lower limb was laterally rotated and noticeably shorter than her right, and when she attempted to get up, she winced with pain.
Develop and test stand alone java applications : Gain practical skills in Graphical User Interface (GUI) programming by implementing an event driven application.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Write a flowchart to solve any linear equation ax+b=01.

Write a flowchart to solve any linear equation ax+b=01. W Write a flowchart to solve any linear equation ax^2+bx+C=0

  Determine schedule that obtains maximum amount of profit

Assume you have one machine and a set of n jobs a1, a2, ..., an to process on that machine. Determine the schedule that obtains the maximum amount of profit. Compute the running time of your algorithm?

  Creating an asp.net application

Design an ASP.NET application using Visual Studio .NET 2003. Your application with at least one web form and 5-different types of controls.

  Create the entity relationship diagram

Create the entity relationship diagram for your project database based on the initial data requirements.

  Write an algorithm that converts linear measurement in feet

Write an algorithm that converts a linear measurement in feet and inches into meters. One inch is equivalent to 2.54 centimeters.

  High bandwidth network for the multimedia team

Assume you have been assigned to build a network for a multimedia development company that currently uses a 10-Mbps Ethernet network. The corporation requires a high bandwidth network for multimedia team.

  Linear-time algorithm to find odd-length cycle in graph

Give a linear-time algorithm to find an odd-length cycle in a directed graph. You may not suppose that graph is strongly connected.

  Water resources engineering

The current practice of a particular part of water resources engineering is supported through a variety of commercial software. Pick a specific domain within water resources engineering.

  Determine the relative record number in the sector

Assume a direct access file consists of sectors with 1024 byte capacity. Assume also that records are thirty-two bytes long.

  Write algorithm to identify substrings which form numbers

Write the algorithm, by using pseudo code, to do the following task. Given string of numbers, identify all the substrings which form numbers that are divisible by 3.

  A and b, both of which perform the same function

Assume you have two algorithms, A and B, both of which perform the same function,

  Characteristics that influence the buying decision

Purchaser's perceptions of a item and its value are an important influence on pricing. Value consciousness, price consciousness, and prestige sensitivity are three ways of explaining these perceptions.

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