Mathematics
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?

answer
Answers: 2

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 15:00, Ruby2480
Abiologist is recording the loss of fish in a pond. he notes the number of fish, f, in the pond on june 1. on july 1 there were 63 fish in the pond, which is 52 fewer fish than were in the pond on june 1. which equation represents this situation? a. f – 52 = 63 b. f – 63 = 52 c. 63 – f = 52 d. f – 63 = –52
Answers: 1
image
Mathematics, 21.06.2019 20:00, lexhoangg
Frank owns a $141,000 home, for which he has a 30-year mortgage in the amount of $700 a month. once he has paid off mortgage, how much will he have paid in investment? a. $111,000 b. $109,000 c. $120,000 d. $141,000
Answers: 1
image
Mathematics, 21.06.2019 23:30, cj9508
Hundred and tens tables to make 430 in five different ways
Answers: 1
image
Mathematics, 22.06.2019 00:30, braydenmcd02
Hi i’m not sure how to do question 20 if u could explain how to do it that’d b great
Answers: 1
Do you know the correct answer?
A. Donkey Kong is an arcade game where an animated figure, Mario, jumps over barrels. In the origina...

Questions in other subjects:

Konu
Mathematics, 14.10.2019 07:50
Konu
SAT, 14.10.2019 07:50