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 16:30
You drop a rubber ball off the roof of a 50 meter high building onto a paved parking lot. it bounces back up with every bounce, but not quite all the way back up to you. after the first bounce it bounces back only 80 percent of the distance it was dropped from. the pattern continues, meaning after every bounce it comes up to just 80 percent of the previous maximum height. so if before the first bounce the height is 50 meters, what height does the ball reach after the fifth bounce? round your answer to one decimal place and chose the correct response from the choices below:
Answers: 1
question
Mathematics, 21.06.2019 18:10
Find the solution set of this inequality. enter your answer in interval notation using grouping symbols. |8x-4| ≤ 12
Answers: 1
question
Mathematics, 21.06.2019 20:00
Suppose you are an avid reader and are looking to save money on the cost of books instead of paying about $20 for each book, you decide to look into purchasing a kindle for $120 you can purchase e-books for about $5 each 1. find the slope-intercept equation for the cost of the hard copy of books using x to represent the number of books 2. find the slope-intercept equation for the cost of the kindle with cost of e-books using x to represent the number of books
Answers: 1
question
Mathematics, 21.06.2019 20:30
Adecorative window is made up of a rectangle with semicircles at either end. the ratio of ad to ab is 3: 2 and ab is 30 inches. what is the ratio of the area of the rectangle to the combined area of the semicircles? possible answers: a. 2: 3 b. 3: 2 c. 6: π d. 9: π e. 30: π
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
History, 28.06.2019 11:30
question
Mathematics, 28.06.2019 11:30
question
English, 28.06.2019 11:30
Questions on the website: 13722359