subject
Mathematics, 22.11.2021 21:20 lilbit404

A. Donkey Kong is an arcade game where an animated figure, Mario, jumps over barrels. In the original game, it was virtually impossible to get through to Level 22 before Mario was ‘killed’ by the game. This was an unintended consequence of how the number of bonus points was calculated and stored. The number of bonus points a player starts with when they move onto a new level depends on the number of the level that they are moving onto. Behind the scenes, Donkey Kong takes the level that is about to be entered, multiplies it by 10 and adds 40, thus yielding the first two digits of the player’s starting bonus.

So, for example, if a player is about to start Level 2, the bonus number is calculated like this:

2 × 10 + 40 = 60.

This bonus number is stored in a single byte as an unsigned integer. The bonus number will never be 0.

i. Write down and evaluate an expression for the number of different unsigned integers that can be represented in a single byte. Then write down the largest unsigned integer that can be represented if no representation for 0 is required.
ii. Find the bonus number associated with Level 22. Explain why storing this bonus number will cause a problem.
iii. For Level 22, the bonus number actually stored is 4. Give one likely explanation for this.
iv. The bonus number is multiplied by 100 before it is displayed on the screen, so for Level 22 the number displayed on the screen is 400. The displayed number decreases by 100 every 1.75 seconds. When the displayed number reaches 0, Mario is automatically killed. How many seconds does the player have to finish Level 22?

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 20:20
If sin(x) = 0 and cos(x) = 1, what is tan(x)?
Answers: 1
question
Mathematics, 21.06.2019 21:00
Check all that apply. f is a function. f is a one-to-one function. c is a function. c is a one-to-one function.
Answers: 3
question
Mathematics, 21.06.2019 22:00
If the altitude is drawn to the hypotenuse of a right triangle, then the two triangles formed are similar to the original triangle and to each other. which set of triangles shows the similar triangles created by the altitude in the diagram?
Answers: 3
question
Mathematics, 22.06.2019 00:00
Which of the following are arithmetic sequences? check all that apply. a. 0.3, 0.6, 0.9, 1.2, 1.5, b. 2, 3, 6, 11, 18, c. 150, 147, 144, 142, d. 2, 4, 9, 16, 25,
Answers: 1
You know the right answer?
A. Donkey Kong is an arcade game where an animated figure, Mario, jumps over barrels. In the origina...
Questions
question
Mathematics, 10.11.2020 17:00