Math Problem Statement

Below is a segment of code from a video game:   Let x = player's roll,

Let y = opponent's roll   If x>2y,

          Then player moves forward 2xspaces;

Else If x>y,

          Then player moves forward xspaces;

Else player does not move.   What is the result if the player rolls 4 and the opponent rolls 6?

Solution

Ask a new question for Free

By Image

Drop file here or Click Here to upload

Math Problem Analysis

Mathematical Concepts

Inequalities
Conditionals in programming

Formulas

-

Theorems

-

Suitable Grade Level

Grades 6-8