Question: In Carol Code please In this activity, the game you will be working on developing is as follows: Write a program that simulates applying a
In Carol Code please
In this activity, the game you will be working on developing is as follows:
Write a program that simulates applying a 'boost' to a spaceship in a spaceship race game. A spaceship makes progress by getting a
"boost" value between and The boost value is determined from generating a random number between and Assuming the
starting distance of the spaceship is the program will output the boost value and the total distance travelled by the spaceship after
applying the boost. Note: Two newlines are output after the final output of the program
When a random seed value of is used, the output of the program will look like:
Boost:
Distance travelled:
Note: This program uses a pseudorandom number generator. The line SeedRandomNumbers results in a series of pseudorandom
numbers that is reproducible each time the program runs, thus allowing us to test your output. The seed value for this lab is Uncomment
the line SeedRandomNumbers when implementing your program.
LAE
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
