Examlex

Solved

A Boat on a River Travels 50 Miles Downstream in Only

question 195

Short Answer

A boat on a river travels 50 miles downstream in only 5 hours. It takes the same boat 9 hours to travel 18 miles upstream. What are the speed of the boat and the speed of the current? Speed of boat: __________ miles per hour Speed of current: __________ miles per hour


Definitions:

Conditional Operator

A ternary operator in programming that evaluates a condition and returns one of two values depending on whether the condition is true or false.

Arguments

Values passed to a function or method when it is called, which are used within the function to perform operations or calculations.

Switch Statement

A control statement in programming that allows the execution of different parts of code based on the value of a variable.

If Statement

A conditional statement in programming that executes a block of code only if a specified condition is true.

Related Questions