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 0 and 10. The boost value is determined from generating a random number between 0 and 10. Assuming the
starting distance of the spaceship is 0, 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 2 is used, the output of the program will look like:
Boost: 6
Distance travelled: 6
Note: This program uses a pseudo-random number generator. The line SeedRandomNumbers(2) results in a series of pseudo-random
numbers that is reproducible each time the program runs, thus allowing us to test your output. The seed value for this lab is 2. Uncomment
the line SeedRandomNumbers(2) when implementing your program.
LAE
In Carol Code please In this activity, the game

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!