Write the program that helps the Starship escape the Wormhole. Of course, you will need to use a LOOP.
The Starship starts at Point 5 (shown above the picture) and escapes the Wormhole at Point 14. Use a random number similar to the Heads / Tails program that generates two random numbers. One random number will have the Starship move One Point to the Left, while the other random number will have the Starship move One Point to the Right. As you can imagine, wormholes are very difficult to navigate in, meaning you (the program) does not really know which direction is out to escape.
The Starship can move only 1 Position (number) at a time, either Left or Right.
Inside a loop a new Random number is generated to determine the direction of the next move (left or right). This continues (Loop) until the Starship escapes. If the Starship arrives at Point 2 an anomaly sends the Starship back to the starting Point 5. This counts as ONE move.
The Form should include the above picture, a Start Button and a LISTBOX telling how long it took the Starship to escape (IN MINUTES) if it takes TWENTY FIVE (25) SECONDS to move between EACH Point. The Start button only needs to be pressed ONE time and the simulation continues until the ship escapes at Point 14.
Wormhole Part 2
Modify Part 1 to have 5,000 Starships traverse the wormhole. Display inThe LISTBOX the average time (in minutes) for the 5000 starships to escape the wormhole. It still takes 25 Seconds for each move. When the Starship arrives at Point 12, there is a 25% chance that the Starship will hit a group of Antimatter particles and DISINTEGRATE. Count the actual number of ships that exploded and display the percentage in the LISTBOX of the total number of Starships that Disintegrated and Exploded. I just really need help with this problem.
DescriptionIn this final assignment, the students will demonstrate their ability to apply two majorconstructs of the C programming language – Fu
Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t
Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th
1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of
1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of