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

  Identifying the use cases of the system

Identifying the use cases of the system based on the narrative above, and giving a brief description for each of the use cases.

  Designing a visual c-sharp program

Design a Visual C-Sharp program for an Ice Cream Shop. The program will store information about ice cream cones and customers.

  Find cost of sorting the relation

Suppose the cost of seek is 5milliseconds, while the disk transfer rate is 40 mgbytes per second. Find the cost of sorting the relation , in seconds, w/bb = 1 & w/ bb= 100.

  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?

  Write a script that checks the day of the week

Write a script that checks the day of the week, and takes one of two actions depending on the day. If the day is Monday through Friday, print the name of the day.

  Define how to building a binary search tree

Three of these operations (all but add) must visit every node in the tree. One of these must use preorder traversal, one must use inorder traversal, and one must use postorder traversal.

  Explain solution of towers of hanoi problem

Classical Towers of Hanoi problem starts with a stack of n > = 1disks on one of three pegs. Solving problem needs moving stack from peg A to peg B in such a way which only one disc is moved at time and no disc can be placed on top of a disc smalle..

  Analyze a basic set of requirements for a problem

Analyze a basic set of requirements for a problem - compose C language programs and compile a program using Microsoft Visual Studio 2012

  Perform the acyclic-topological sort algorithm

Perform the acyclic-topological sort algorithm on the directed graph having vertex set a-k and edges {(j; a);(j; g);(a; b);(a; e);(b; c);(c; k);(d; e);(e; c);(e; f);(e; i);(f; k); (g; d);(g; e);(g; h);(h; e);(h; i);(i; f);(i; k)} Show the state of th..

  Using command line options in bash shell script

Design a script that will permit the user to enter one of several choices from the command line. The specific requirements are as follows:

  Perform an insertion sort on the file pointed

Using only the local data already supplied in FileSort, perform an insertion sort on the file pointed to by fd. Use lseeks for this; do not try to create any sort of array or list. An array-based version of insertion is supplied for your reference.

  Design a circular double linked list

Design a circular double linked list, for which the following operations should be implemented

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