Calculating Transportation Costs

Let's create and initialize the variables needed for doing the calculations:

Let's review the requirements once again. We need to perform two different block calculations.

By the first set of calculations we must understand what part of the budget has to be spent on transportation. You will notice that the logic for doing these calculations only depends on the number of people in the group. Therefore, we will do a logical breakdown according to the number of football fans.

We will use conditional statement - a sequence of if-else blocks.

results matching ""

    No results matching ""