Using our stack data structure for storing disk objects

Assignment Help Data Structure & Algorithms
Reference no: EM13326493

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 Self AssessmentQuestionsafter theprogram is completed. This should be completed by the expert who writes the program (This is part of my Assignment question):

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


Attachment:- ASSIGNMENT.rar

Reference no: EM13326493

Questions Cloud

Find the position of the particle after this time : A particle moves along the x axis. It is initially at the position 0.130 m, moving with velocity 0.190 m/s and acceleration -0.330 m/s2. FIND the position of the particle after this time
What are the components of the particles veloctiy : Two forces, F1=(-3.0i-4.45j)N and F2=(-2.75-5.50j)N, act on a particle of mass 1.50kg that is initially at rest at coordinates (-2.05m,3.75m). what are the components of the particles veloctiy at t=10 seconds
Determine the magnetic force on an identical particle : A charged particle moving through a magnetic field at right angles to the field with a speed of 22.7 m/s experiences a magnetic force of 2.58 10-4 N. Determine the magnetic force on an identical particle
Determine what is the sex ratios of the f1 and f2 generation : The autosomal recessive gene transformer (tra) mutation converts chromosomal females into sterile males. A female Drosophila that is heterozygous for the tra allele is mated with a normal male homozygous for transformer.
Using our stack data structure for storing disk objects : 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: http://www.mathsisfun.com/games/towerofhanoi.html).
What are the force and angle theta of the rope : Two physicists (on oppisite sides of a cage) are pulling on ropes tied to a lion. What are the force T2 and angle theta 2 of the rope pulled by the physicist 2
When it reaches the end of the ramp : A car sits in an entrance ramp to a freeway, waiting for a break in the traffic. when it reaches the end of the ramp, which has length 118m
How many matings would have to make with parents : If the original black guinea pigs produce an average of 10 offspring per mating, how many matings would you have to make with these same parents before you'd expect to see a white guinea pig
How fast the rock was falling when it hit the water : A rock is dropped into an abandoned mine, and a splash is heard 4s later. how fast the rock was falling when it hit the water

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Give algorithm to find schedule to obtain maximum profit

Give an algorithm to find the schedule that obtains the maximum amount of profit, assuming that all processing times are integers between 1 and n.

  Write a program flowchart

Write a program FLOWCHART that lets the user enter a sequence of numbers. The program should stop when it notices that the last two numbers entered were identical.

  Using a backtracking algorithm

If the backtracking algorithm finds a dead end, it retraces its path until it reaches a position from which there is an untried path. The backtracking algorithm always tries all directions from any position, and always in the same order.

  Cost control techniques

Assume your company has just completed the Initiation Process for implementing an Email System Upgrade. It was identified in a recent meeting with management leaders from the Sales,

  Discuss and define complex data binding

Discuss and define complex data binding and what benefits can this capability lend to a multiple table database application?

  Determine expected number of collisions use hash function

Assume we use hash function h to hash n distinct keys into the array T of length m. Suppose simple uniform hashing, determine the expected number of collisions?

  Decision tree to help someone

Create a decision tree to help someone determine what meal to buy at a fast food restaurant. The structure of your tree should be similar to the one on page 699.

  The greatest common divisor of the fibonacci number

what is the greatest common divisor of the fibonacci numbers f100 and f101 by Euclid algorithm

  Compare and contrast link-state and distance-vector routing

Examine the corresponding ping reply packet. What are the ICMP type and code numbers? What other fields does this ICMP packet have?

  Data structures assignment requiring c++ program

You should build enough new roads such that if City A was reachable from City B via some old roads, City A must be reachable from City B via some new roads.

  How two types of assets are valued for balance sheet purpose

Explain how the 2-types of assets are valued for balance sheet purposes, using the following assets owned by a corporation that writes and sells software packages

  Question about key encryption

Assume Alice wishes to send an e-mail to Bob. Bob has a public private key pair, Alice has Bob's certificate. But Alice does not have a public, private key pair.

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